@evan-yang/eslint-plugin
v1.0.9
Published
My eslint plugin
Downloads
1,624
Readme
@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
# install pnpm
npm i -g pnpm
# install deps
pnpm i
# run release script
pnpm release
# lint
pnpm lint
pnpm lint:fix
License
MIT License © 2022 mohen