Closed lastnamearya closed 4 years ago
I also configured two additional scripts in the package.json file for auto-formatting the codebase and lint errors.
"format": "prettier --write \"src/**/*.{js,jsx,css,json}\"",
"lint": "eslint --fix \"src/**/*.{js,jsx}\""
@lastnamearya Hi, it seems to be that both npm format & npm lint are reformatting the code (as lint executes eslint --fix), so which is preferable to use, please?
npm format
npm lint
lint
eslint --fix
Hi @Strajk I'll suggest to use lint
I also configured two additional scripts in the package.json file for auto-formatting the codebase and lint errors.
"format": "prettier --write \"src/**/*.{js,jsx,css,json}\"",
"lint": "eslint --fix \"src/**/*.{js,jsx}\""