Skip to content

Commit

Permalink
Update default config and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsnik committed Aug 13, 2018
1 parent 47cc8d3 commit ab624da
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -156,10 +156,11 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
| | [vue/no-side-effects-in-computed-properties](./docs/rules/no-side-effects-in-computed-properties.md) | disallow side effects in computed properties |
| | [vue/no-template-key](./docs/rules/no-template-key.md) | disallow `key` attribute on `<template>` |
| | [vue/no-textarea-mustache](./docs/rules/no-textarea-mustache.md) | disallow mustaches in `<textarea>` |
| | [vue/no-unused-components](./docs/rules/no-unused-components.md) | disallow unused components |
| | [vue/no-unused-components](./docs/rules/no-unused-components.md) | disallow registering components that are not used inside templates |
| | [vue/no-unused-vars](./docs/rules/no-unused-vars.md) | disallow unused variable definitions of v-for directives or scope attributes |
| | [vue/no-use-v-if-with-v-for](./docs/rules/no-use-v-if-with-v-for.md) | disallow use v-if on the same element as v-for |
| | [vue/require-component-is](./docs/rules/require-component-is.md) | require `v-bind:is` of `<component>` elements |
| :wrench: | [vue/require-prop-type-constructor](./docs/rules/require-prop-type-constructor.md) | require prop type to be a constructor |
| | [vue/require-render-return](./docs/rules/require-render-return.md) | enforce render function to always return value |
| | [vue/require-v-for-key](./docs/rules/require-v-for-key.md) | require `v-bind:key` with `v-for` directives |
| | [vue/require-valid-default-prop](./docs/rules/require-valid-default-prop.md) | enforce props default values to be valid |
Expand Down Expand Up @@ -231,7 +232,6 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
| | Rule ID | Description |
|:---|:--------|:------------|
| :wrench: | [vue/component-name-in-template-casing](./docs/rules/component-name-in-template-casing.md) | enforce specific casing for the component naming style in template |
| :wrench: | [vue/require-prop-type-constructor](./docs/rules/require-prop-type-constructor.md) | require prop type to be a constructor |
| :wrench: | [vue/script-indent](./docs/rules/script-indent.md) | enforce consistent indentation in `<script>` |

### Deprecated
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-unused-components.md
@@ -1,4 +1,4 @@
# disallow unused components (vue/no-unused-components)
# disallow registering components that are not used inside templates (vue/no-unused-components)

- :gear: This rule is included in all of `"plugin:vue/essential"`, `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.

Expand Down
1 change: 1 addition & 0 deletions docs/rules/require-prop-type-constructor.md
@@ -1,5 +1,6 @@
# require prop type to be a constructor (vue/require-prop-type-constructor)

- :gear: This rule is included in all of `"plugin:vue/essential"`, `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.

This rule reports prop types that can't be presumed as constructors.
Expand Down
1 change: 1 addition & 0 deletions lib/configs/essential.js
Expand Up @@ -19,6 +19,7 @@ module.exports = {
'vue/no-unused-vars': 'error',
'vue/no-use-v-if-with-v-for': 'error',
'vue/require-component-is': 'error',
'vue/require-prop-type-constructor': 'error',
'vue/require-render-return': 'error',
'vue/require-v-for-key': 'error',
'vue/require-valid-default-prop': 'error',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-unused-components.js
Expand Up @@ -20,7 +20,7 @@ module.exports = {
docs: {
description: 'disallow registering components that are not used inside templates',
category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.1/docs/rules/no-unused-components.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.2/docs/rules/no-unused-components.md'
},
fixable: null,
schema: []
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/require-prop-type-constructor.js
Expand Up @@ -25,8 +25,8 @@ module.exports = {
meta: {
docs: {
description: 'require prop type to be a constructor',
category: undefined, // essential
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.1/docs/rules/require-prop-type-constructor.md'
category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.2/docs/rules/require-prop-type-constructor.md'
},
fixable: 'code', // or "code" or "whitespace"
schema: []
Expand Down

0 comments on commit ab624da

Please sign in to comment.