❗️ This plugin has been merged to the official eslint-plugin-vue as 3.0.0. Please use that. ❗️
Experimental ESLint plugin for Vue.js.
Use npm.
> npm install --save-dev eslint @mysticatea/eslint-plugin-vue
^4.0.0 || >=6.0.0>=3.18.0Write .eslintrc.* file to configure rules. See also: http://eslint.org/docs/user-guide/configuring
.eslintrc.json (An example)
{
"plugins": ["@mysticatea/vue"],
"extends": ["eslint:recommended", "plugin:@mysticatea/vue/recommended"],
"rules": {
"@mysticatea/vue/html-quotes": ["error", "double"],
"@mysticatea/vue/v-bind-style": ["error", "shorthand"],
"@mysticatea/vue/v-on-style": ["error", "shorthand"]
}
}
| Rule ID | Description | |
|---|---|---|
| ⭐️ | no-invalid-template-root | disallow invalid template root. |
| ⭐️ | no-invalid-v-bind | disallow invalid v-bind directives. |
| ⭐️ | no-invalid-v-cloak | disallow invalid v-cloak directives. |
| ⭐️ | no-invalid-v-else-if | disallow invalid v-else-if directives. |
| ⭐️ | no-invalid-v-else | disallow invalid v-else directives. |
| ⭐️ | no-invalid-v-for | disallow invalid v-for directives. |
| ⭐️ | no-invalid-v-html | disallow invalid v-html directives. |
| ⭐️ | no-invalid-v-if | disallow invalid v-if directives. |
| ⭐️ | no-invalid-v-model | disallow invalid v-model directives. |
| ⭐️ | no-invalid-v-on | disallow invalid v-on directives. |
| ⭐️ | no-invalid-v-once | disallow invalid v-once directives. |
| ⭐️ | no-invalid-v-pre | disallow invalid v-pre directives. |
| ⭐️ | no-invalid-v-show | disallow invalid v-show directives. |
| ⭐️ | no-invalid-v-text | disallow invalid v-text directives. |
| ⭐️ | no-parsing-error | disallow parsing errors in <template>. |
| Rule ID | Description | |
|---|---|---|
| ⭐️✒️ | html-end-tags | enforce end tag style. |
| ⭐️✒️ | html-no-self-closing | disallow self-closing elements. |
| ⭐️ | no-confusing-v-for-v-if | disallow confusing v-for and v-if on the same element. |
| ⭐️ | no-duplicate-attributes | disallow duplicate arguments. |
| ⭐️ | no-textarea-mustache | disallow mustaches in <textarea>. |
| ⭐️ | require-component-is | require v-bind:is of <component> elements. |
| ⭐️ | require-v-for-key | require v-bind:key with v-for directives. |
| Rule ID | Description | |
|---|---|---|
| html-quotes | enforce quotes style of HTML attributes. | |
| ✒️ | v-bind-style | enforce v-bind directive style. |
| ✒️ | v-on-style | enforce v-on directive style. |
This plugin provides plugin:@mysticatea/vue/recommended preset config.
This preset config:
parser: "vue-eslint-parser"@mysticatea/eslint-plugin-vue follows semantic versioning and ESLint's Semantic Versioning Policy.
Welcome contributing!
Please use GitHub's Issues/PRs.
npm test runs tests and measures coverage.npm run coverage shows the coverage result of npm test command.npm run clean removes the coverage result of npm test command.45 commits
1 commits
JavaScript
100.0%
❗️ This plugin has been merged to the official eslint-plugin-vue as 3.0.0. Please use that. ❗️
Experimental ESLint plugin for Vue.js.
Use npm.
> npm install --save-dev eslint @mysticatea/eslint-plugin-vue
^4.0.0 || >=6.0.0>=3.18.0Write .eslintrc.* file to configure rules. See also: http://eslint.org/docs/user-guide/configuring
.eslintrc.json (An example)
{
"plugins": ["@mysticatea/vue"],
"extends": ["eslint:recommended", "plugin:@mysticatea/vue/recommended"],
"rules": {
"@mysticatea/vue/html-quotes": ["error", "double"],
"@mysticatea/vue/v-bind-style": ["error", "shorthand"],
"@mysticatea/vue/v-on-style": ["error", "shorthand"]
}
}
| Rule ID | Description | |
|---|---|---|
| ⭐️ | no-invalid-template-root | disallow invalid template root. |
| ⭐️ | no-invalid-v-bind | disallow invalid v-bind directives. |
| ⭐️ | no-invalid-v-cloak | disallow invalid v-cloak directives. |
| ⭐️ | no-invalid-v-else-if | disallow invalid v-else-if directives. |
| ⭐️ | no-invalid-v-else | disallow invalid v-else directives. |
| ⭐️ | no-invalid-v-for | disallow invalid v-for directives. |
| ⭐️ | no-invalid-v-html | disallow invalid v-html directives. |
| ⭐️ | no-invalid-v-if | disallow invalid v-if directives. |
| ⭐️ | no-invalid-v-model | disallow invalid v-model directives. |
| ⭐️ | no-invalid-v-on | disallow invalid v-on directives. |
| ⭐️ | no-invalid-v-once | disallow invalid v-once directives. |
| ⭐️ | no-invalid-v-pre | disallow invalid v-pre directives. |
| ⭐️ | no-invalid-v-show | disallow invalid v-show directives. |
| ⭐️ | no-invalid-v-text | disallow invalid v-text directives. |
| ⭐️ | no-parsing-error | disallow parsing errors in <template>. |
| Rule ID | Description | |
|---|---|---|
| ⭐️✒️ | html-end-tags | enforce end tag style. |
| ⭐️✒️ | html-no-self-closing | disallow self-closing elements. |
| ⭐️ | no-confusing-v-for-v-if | disallow confusing v-for and v-if on the same element. |
| ⭐️ | no-duplicate-attributes | disallow duplicate arguments. |
| ⭐️ | no-textarea-mustache | disallow mustaches in <textarea>. |
| ⭐️ | require-component-is | require v-bind:is of <component> elements. |
| ⭐️ | require-v-for-key | require v-bind:key with v-for directives. |
| Rule ID | Description | |
|---|---|---|
| html-quotes | enforce quotes style of HTML attributes. | |
| ✒️ | v-bind-style | enforce v-bind directive style. |
| ✒️ | v-on-style | enforce v-on directive style. |
This plugin provides plugin:@mysticatea/vue/recommended preset config.
This preset config:
parser: "vue-eslint-parser"@mysticatea/eslint-plugin-vue follows semantic versioning and ESLint's Semantic Versioning Policy.
Welcome contributing!
Please use GitHub's Issues/PRs.
npm test runs tests and measures coverage.npm run coverage shows the coverage result of npm test command.npm run clean removes the coverage result of npm test command.45 commits
1 commits
JavaScript
100.0%