1.0.20 • Published 12 months ago

@404-software/eslint-config v1.0.20

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

1- Run

yarn add -D @404-software/eslint-config eslint@8.18.0 prettier@2.7.1

OR

npm i @404-software/eslint-config eslint@8.18.0 prettier@2.7.1 --save-dev

2- Add this to the package.json in the project's root

"eslintConfig": { "extends": "@404-software/eslint-config" }

3- Install eslint and prettier VS Code Extentions

4- Open VS Code user settings and add the following

"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