VBS's ESLint config preset.
pnpm add -D eslint @vbs/eslint-config
{
"extends":"@vbs",
"rules": {}
}
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
.vscode/settings.json
{
"prettier.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
- 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
# install pnpm
npm i -g pnpm
# install deps
pnpm i
# run release script
pnpm release
# lint
pnpm lint
pnpm lint:fix
MIT License © 2022 vbs-plus