🐊 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
Bot releases are hidden (Show)
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
“You are only entitled to the action, never to its fruits.”
(c) Bhagavad Gita
Hi folks 🎈!
The time is come for a new big release of 🐊Putout .
It has a couple major changes related to plugins.
remove-useless-else
to conditions
{
"rules": {
- "remove-useless-else": "off"
+ "conditions/remove-useless-else": "off"
}
}
merge-if-statements
to conditions
{
"rules": {
- "merge-if-statements": "off"
+ "conditions/merge-if-statements": "off"
}
}
EcmaScript module syntax is the standard way to import and export values between files in JavaScript. The import statement can be used to reference a value exposed by the export statement in another file.
(c) parceljs
Thanks to @putout/plugin-convert-commonjs-to-esm, for a long time 🐊Putout has formatters and processors in ESM.
From now, you can also write plugins in ESM.
All you should do is using async version of 🐊Putout:
await putoutAsync(`const a = 'hello'`, {
plugins: [
'apply-shorthand-properties'
]
});
Or in case of no loading needed just use:
import * as applyShorthandProperties from '@putout/plugin-apply-shorthand-properties';
putout(`const a = 'hello'`, {
plugins: [
['apply-shorthand-properties', applyShorthandProperties]
]
});
It just works in CLI (also with rules
), nothing need to be configured 😏.
When using ESM in ESLint just use esm
preset:
{
"extends": [
"plugin:putout/esm"
],
"plugins": [
"putout"
]
}
That's all for now, have a good day!
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago
Published by coderaiser about 1 year ago