@putout/eslint-config
v9.4.0
Published
🐊Putout config for ESLint
Downloads
40,481
Maintainers
Readme
@putout/eslint-config
🐊Putout config for ESLint. If 🐊Putout brakes formatting ESLint will fix it back 😉.
Install
npm i @putout/eslint-config eslint madrun -D
Usage
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
License
MIT