@vta/eslint-config-vue v2.0.0
@vta/eslint-config-vue
An eslint config set working with @vta/eslint-config, add support for Vue project
Install
yarn add @vta/eslint-config-vue --devUsage
{
"extends": ["@vta/vue"]
}Vscode Vetur Notice
In order to use prettier,please set Script Initial Indent and Style Initial Indent to false, and format all use prettier, and disable Validation: Script.
Babel Support
If you want to use Babel to compile your code, you should firstly install @vta/eslint-config-babel, then extends @vta/babel in your .eslintrc file. additional usage please see @vta/eslint-config-babel.
yarn add @vta/eslint-config-babel --dev{
"extends": ["@vta/babel", "@vta/vue"]
}NOTE: @vta/vue must list after @vta/babel
Typescript Support
If you want to use Typescript to write your code, you should firstly install @vta/eslint-config-typescript, then extends @vta/vue/typescript in your .eslintrc file. additional usage please see @vta/eslint-config-typescript.
yarn add @vta/eslint-config-typescript --dev{
"extends": ["@vta/typescript", "@vta/vue/typescript"]
}NOTE: @vta/vue/typescript must list after @vta/typescript