Vue eslint plugin with rules to make you code stricter: enforce jsdoc, restrict rootGetters, rootState and more.
Various ESLint rules to make you Vue(x) code a bit stricter
$ npm i eslint eslint-plugin-strict-vue --save-dev
Configure it in .eslintrc
or package.json
:
{
"name": "my-awesome-project",
"eslintConfig": {
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"strict-vue"
],
"rules": {
"strict-vue/require-jsdoc": "error",
"strict-vue/no-root-store-calls": "error",
"strict-vue/no-root-store-assets": "error",
}
}
}
MIT