Extends @antfu/eslint-config
npm install eslint @andyluo/eslint-config -D
pnpm add -D eslint @andyluo/eslint-configimport andyluo from '@andyluo/eslint-config'
export default [
andyluo,
]dist
node_modulesFor example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}Install VS Code ESLint extension and create .vscode/settings.json
{
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}