-
Install the package
npm i -D eslint-config-gbrachetta
-
Add "gbrachetta" to
.eslintrc.json
{ "extends": [ // [other extends] "gbrachetta" ] }
-
If on VSCode, intall the estension Error Lens to display errors.
-
If you use VSCode and want to lint and format on save, add the following values to
settings.json
{ "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, "editor.formatOnSave": true, }