@zaihui/eslint-plugin-vue
v2.1.2
Published
vue eslint rules
Downloads
4
Readme
@zaihui/eslint-plugin-vue
base eslint rules
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install @zaihui/eslint-plugin-vue
:
$ npm install @zaihui/eslint-plugin-vue --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install @zaihui/eslint-plugin-vue
globally.
Usage
Add @zaihui/vue
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"@zaihui/vue"
]
}
Choose suitable configuration.
{
"extends": [
"plugin:@zaihui/vue/base", // or
"plugin:@zaihui/vue/with-ts
]
}