Srinjoy Santra
1 min readAug 21, 2020

--

Great article. But some updates needed,

"eslint.autoFixOnSave": true

has been changed a bit. According to https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint,

Auto Fix on Save is now part of VS Code’s Code Action on Save infrastructure and computes all possible fixes in one round.

"editor.codeActionsOnSave": {"source.fixAll.eslint": true},

2. As pointed out by @Nathaniel Johnson, changes to package.json will be, beware of quotation marks while copying.

"husky": { "hooks": {  "pre-commit": "lint-staged" }},"lint-staged": { "src/**/*.{js,jsx}": [  "eslint",  "pretty-quick —staged",  "git add" ]}

--

--

Srinjoy Santra
Srinjoy Santra

No responses yet