1.0.1 • Published 3 years ago
@potoio/eslint-config v1.0.1
Eslint Config of potoio
Install
# with npm
npm i @potoio/eslint-config -D
# with yarn
yarn add @potoio/eslint-config -D
# with pnpm
pnpm add @potoio/eslint-config -D
Usage
Config .eslintrc
{
"extends": ["@potoio/eslint-config"]
}
Config .eslintignore
dist
public
Add script for package.json
{
"scripts": {
"lint": "eslint \"**/*.{vue,ts,js}\""
"lint:fix": "eslint --fix \"**/*.{vue,ts,js}\""
}
}
Config VSCode auto fix
Create or update .vscode/settings.json
{
"prettier.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}