0.0.4 • Published 2 years ago

@venable/eslint-config v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@venable/eslint-config

npm

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
  }
}

License

MIT License © 2022-PRESENT xbmlz