fixture | ||
packages | ||
.eslintrc.json | ||
.gitignore | ||
CHANGELOG.md | ||
lerna.json | ||
LICENSE | ||
package.json | ||
pnpm-lock.yaml | ||
pnpm-workspace.yaml | ||
README.md |
@antfu/eslint-config
Usage
Install
pnpm add -D eslint @antfu/eslint-config
Config .eslintrc
{
"extends": "@antfu"
}
Add script for package.json
For example:
{
"scripts": {
"lint": "eslint ."
}
}
Config VSCode auto fix
Create .vscode/settings.json
{
"prettier.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}