eslint-config-sashapop10
v1.0.0
Published
My ESlint config
Downloads
7
Maintainers
Readme
1. Install required packages:
npm i -D eslint prettier eslint-plugin-import eslint-config-sashapop10 eslint-config-prettier eslint-plugin-prettier
2. Add "extends": ["sashapop10"]
to your .eslintrc
.
3. (optional) Add following scripts
// package.json
{
"scripts": {
"lint": "eslint . && prettier --check \"**/*.js\" \"**/*.json\" \"**/*.md\" \".*rc\" \"**/*.yml\"",
"fmt": "prettier --write \"**/*.js\" \"**/*.json\" \"**/*.md\" \".*rc\" \"**/*.yml\"",
"test": "npm run -s lint"
//...
}
//...
}