@brucesong/eslint-config-basic
Features
- [x] Based on Airbnb JavaScript Style
- [x]
import
、export
auto sort - [x] Resolving conflicts between
ESLint
andPrettier
Usage
Install
pnpm add -D eslint @brucesong/eslint-config-basic
.eslintrc.json
Config {
"extends": "@brucesong/eslint-config-basic"
}
package.json
Add script for {
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
Config VSCode auto fix
{
"editor.codeActionsOnSave": {
"source.fixAll": false,
"source.fixAll.eslint": true,
"source.organizeImports": false
}
}
License
MIT License © 2023 Bruce Song