🐊Putout config for ESLint. If 🐊Putout brakes formatting ESLint will fix it back 😉.
npm i @putout/eslint-config eslint madrun -D
Create file .eslintrc.json
in root of your project with content:
{
"extends": ["@putout"]
}
Add scripts
section to package.json
:
{
"scripts": {
"lint": "madrun lint",
"fix:lint": "madrun fix:lint"
}
}
And create .madrun.mjs
:
import {series} from 'madrun';
export default {
'lint': () => 'putout lib test',
'fix:lint': () => run('lint', '--fix'),
};
$ npm run lint
$ npm run fix:lint
MIT