@wzh994/eslint-config
Usage
Install
pnpm add -D eslint @wzh994/eslint-config
.eslintrc
Config {
"extends": "@wzh994"
}
Add script for package.json
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
Config VS Code auto fix
Create .vscode/settings.json
{
"prettier.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}