1.0.10 • Published 3 years ago
@404web/eslint-config v1.0.10
1- Run yarn add -D @404web/eslint-config eslint prettier
2- Run yarn global add eslint
3- Add this to the package.json
in the project's root
"eslintConfig": { "extends": "@404web/eslint-config" }
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": ["javascript", "typescript", "javascriptreact", "typescriptreact"]
Note: To lint all the project files, run eslint . --ext .ts --ext .tsx --fix