npm install -D eslint @1024pix/eslint-config
{
"extends": "@1024pix"
}
You don't need
.eslintignore
normally as it has been provided by the preset.
For example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --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
}
}
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.