A carefully curated subset of JavaScript that focuses on coherence and elegance.
npm i grules
Create .eslintrc.json
at the root of the project:
{
"root": true,
"env": { "node": true },
"extends": ["plugin:grules/all"]
}
Add the following to package.json
:
"scripts": {
"lint": "eslint . && prettier --check .",
"lint:fix": "eslint --fix . && prettier --write ."
}