π Pluggable and configurable JavaScript Linter, code transformer and formatter with built-in ESLint and Babel support for js, jsx typescript, flow, markdown, yaml and json. Write declarative codemods in a simplest possible way π
MIT License
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
Thanks a lot to @Hans5958 for fixing spelling issues (#101) π!
Published by coderaiser over 2 years ago
βYou must understand that there is more than one path to the top of the mountainβ
β Miyamoto Musashi, A Book of Five Rings
Hi folks!
The time is came for a new major release. It contains a couple breaking changes related to rules.
If you disabled some of rules most likely you need to update .putout.json
.
If you using defaults, as always you can do nothing π.
strict-mode
has internal changesWe just adding a bit more details to avoid confusion with both rules add
and remove
enabled in the same time:
{
"rules": {
- "strict-mode/add": "off",
- "strict-mode/remove": "off",
+ "strict-mode/add-missing": "off",
+ "strict-mode/remove-useless": "off",
}
}
new
pluginFrom now on rules related to operator new
:
remove-useless-new
;add-missing-new
;Are merged to a new
plugin.
const a = new Boolean(); // useless new
const b = Map(); // missing new
const a = Boolean();
const b = new Map();
{
"rules": {
- "remove-useless-new": "off",
- "add-missing-new": "off",
+ "new/add-missing": "off",
+ "new/remove-useless": "off",
}
}
That's all for today! Have a clear sky and fertile fields πΊπ¦!
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
--fix
-> 'fix'Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago
Published by coderaiser over 2 years ago