Skip to content

Opinionated eslint set of rules with support for Vue

License

Notifications You must be signed in to change notification settings

clickbar/eslint-config

Repository files navigation

eslint-config-clickbar

Opinionated eslint set of rules with support for Vue and Typescript.

Usage

Install dependencies.

pnpm add -D eslint @clickbar/eslint-config

Add the scripts to your package.json scripts:

"scripts": {
  "fix": "pnpm lint --fix",
  "lint": "eslint .",
},

Edit eslint.config.js:

/* eslint-env node */
import clickbar from '@clickbar/eslint-config'

export default clickbar()

VS Code config for auto fixing

Add the following to your settings.json:

"editor.codeActionsOnSave": {
  "source.fixAll.eslint": true
},

License

MIT

About

Opinionated eslint set of rules with support for Vue

Resources

License

Stars

Watchers

Forks