@evan-yang/eslint-config
My ESLint config preset.
Usage
install
pnpm add -D eslint @evan-yang/eslint-config
Config .eslintrc
{
"extends":"@evan-yang",
"rules": {}
}
Add script for package.json
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
Auto Fix
.vscode/settings.json
{
"prettier.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
Packages
- eslint-config: default config preset
- eslint-plugin:
- esnext: basic config
- vue: vue support
- react: react support
- next: default config + next eslint config
- json: parse json + package.json sort
- yml: parse yml
- typescript: typescript support
- typescript-type-checking: typescript type checking
Development
npm i -g pnpm
pnpm i
pnpm release
pnpm lint
pnpm lint:fix
License
MIT License © 2022 mohen