@andyluo/eslint-config
v1.1.4
Published
[![npm](https://img.shields.io/npm/v/@andyluo/eslint-config)](https://www.npmjs.com/package/@andyluo/eslint-config)
Downloads
11
Readme
@andyluo/eslint-config
Extends @antfu/eslint-config
Usage
Install
npm install eslint @andyluo/eslint-config -D
pnpm add -D eslint @andyluo/eslint-config
Config .eslint.config.js
import andyluo from '@andyluo/eslint-config'
export default [
andyluo,
]
Config .eslintignore
dist
node_modules
package.json
For example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
Config VS Code auto fix
Install VS Code ESLint extension and create .vscode/settings.json
{
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}