This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
My ESlint config
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"
//...
}
//...
}
Copyright & contributors
Copyright © 2023 sashapop10.
eslint-config-sashapop10 is MIT licensed license.