0.0.4 • Published 2 years ago
@venable/eslint-config v0.0.4
@venable/eslint-config
ESLint config for JavaScript, TypeScript, Vue 2, Vue 3, Prettier.
Usage
Install
pnpm add -D eslint @venable/eslint-config
Config .eslintrc
You don't need
.eslintignore
normally as it has been provided by the preset.
{
"extends": "@venable"
}
Config .prettierrc
For example:
{
"semi": false,
"singleQuote": true
}
Add script for package.json
For example:
{
"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
}
}