Kuzzle Coding Standard for Vue.js.
This plugin is standalone, meaning that eslint
and prettier
are included in the package so you don't need to install them yourself.
- Install the plugin
npm i eslint-plugin-vue-kuzzle --save-dev
- Add
kuzzle
to the plugins section of your.eslintrc
configuration file and select the default rule set:
{
"extends": [
"plugin:vue-kuzzle/defaultt",
"plugin:vue-kuzzle/base",
"plugin:vue-kuzzle/typescript"
]
}
-
Remove unused eslint-related dependencies (such as
@vue/eslint-config-standard
,eslint
etc) -
Commit relevant files
plugin:vue-kuzzle/default
: default combines base and typecript rules setsplugin:vue-kuzzle/base
: rules for only Javascript projectsplugin:vue-kuzzle/typescript
: rules for Typescript projects
You can disable the import/order
rule on project that are not libraries:
{
"extends": [
"plugin:vue-kuzzle/default",
],
"rules": {
"import/order": ["off"]
}
}