eslint-config-wzx-vue
The custom vue eslint rules based on eslint-config-wzx. (Follow airbnb-base and Support Typescript Eslint)
:cd: Installation
npm install --save-dev eslint-config-wzx-vue
:bulb: Typescript eslint needs to install typescript, @typescript-eslint/parser, @typescript-eslint/eslint-plugin.
npm install --save-dev typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin
:rocket: Usage
Add eslint-config-wzx-vue to the "extends" in your .eslintrc.* file
.
{
"extends": "wzx-vue"
}
:bulb: Typescript eslint needs tsconfig.json
in your project root directory. And the config will select the rules of vue2
or vue3
according to the vue version installed in your project.
:lock: License
MIT.