Install the package with
npm install eslint-config-obytes --save-dev
or
yarn add eslint-config-obytes -D
Now add the config to either the package.json:
{
"eslintConfig": {
"extends": "obytes"
}
}
or to the .eslintrc or .eslintrc.js:
{
"extends": "obytes"
}
Make sure to remove the
.prettierrc
file since we're handling prettier inside the eslint config.
- Install VSCode ESLint package
- Setup some VS Code settings (Workspace)
{
"editor.formatOnSave": true,
"javascript.format.enable": false,
"prettier.eslintIntegration": true,
"[javascript]": {
"editor.formatOnSave": false
},
"[javascriptreact]": {
"editor.formatOnSave": false
},
"eslint.autoFixOnSave": true,
"prettier.disableLanguages": ["javascript", "javascriptreact"]
}