552 B
552 B
@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 VS Code auto fix
Create .vscode/settings.json
{
"prettier.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}