@1024pix/eslint-config
v1.2.8
Published
Shared Pix ESLint config
Downloads
4,551
Keywords
Readme
@1024pix/eslint-config
Usage
Install
npm install -D eslint @1024pix/eslint-config
Config .eslintrc
{
"extends": "@1024pix"
}
You don't need
.eslintignore
normally as it has been provided by the preset.
Add script for package.json
For example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
Config VS Code auto fix
Install VS Code ESLint extension and create .vscode/settings.json
{
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.organizeImports": false
}
}
FAQ
I prefer XXX...
Sure, you can override the rules in your .eslintrc
file.
{
"extends": "@1024pix",
"rules": {
// your rules...
}
}
Or you can always fork this repo and make your own.