0.1.2-alpha.1 • Published 1 year ago
@avolantis/eslint-config-vue v0.1.2-alpha.1
@avolantis/eslint-config-vue
Extends the typescript configuration with support for vue.js 3 projects, using eslint-plugin-vue. Use this preset as a base for vue 3 typescript projects.
Install
Make sure that typescript@^4.6.3
is installed in the project.\
Run the following commands using pnpm
at your project root:
pnpm add -D eslint prettier @avolantis/eslint-config-vue @avolantis/prettier-config
Use
-WD
instead, if running in a workspace root
Create an .eslintrc.{js,json,yml,yaml}
file (preferably at workspace root):
# .eslintrc.yaml
root: true
extends: "@avolantis/eslint-config-typescript"
parserOptions:
project: path/to/tsconfig.json
overrides:
- files: ["**/*.vue"]
extends: "@avolantis/eslint-config-vue"
Then modify your package.json
(at workspace root):
{
"scrips": {
"lint": "eslint --fix ."
},
"prettier": "@avolantis/prettier-config"
}