Skip to content

Commit ab624da

Browse files
committed
Update default config and docs
1 parent 47cc8d3 commit ab624da

6 files changed

+8
-6
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,11 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
156156
| | [vue/no-side-effects-in-computed-properties](./docs/rules/no-side-effects-in-computed-properties.md) | disallow side effects in computed properties |
157157
| | [vue/no-template-key](./docs/rules/no-template-key.md) | disallow `key` attribute on `<template>` |
158158
| | [vue/no-textarea-mustache](./docs/rules/no-textarea-mustache.md) | disallow mustaches in `<textarea>` |
159-
| | [vue/no-unused-components](./docs/rules/no-unused-components.md) | disallow unused components |
159+
| | [vue/no-unused-components](./docs/rules/no-unused-components.md) | disallow registering components that are not used inside templates |
160160
| | [vue/no-unused-vars](./docs/rules/no-unused-vars.md) | disallow unused variable definitions of v-for directives or scope attributes |
161161
| | [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 |
162162
| | [vue/require-component-is](./docs/rules/require-component-is.md) | require `v-bind:is` of `<component>` elements |
163+
| :wrench: | [vue/require-prop-type-constructor](./docs/rules/require-prop-type-constructor.md) | require prop type to be a constructor |
163164
| | [vue/require-render-return](./docs/rules/require-render-return.md) | enforce render function to always return value |
164165
| | [vue/require-v-for-key](./docs/rules/require-v-for-key.md) | require `v-bind:key` with `v-for` directives |
165166
| | [vue/require-valid-default-prop](./docs/rules/require-valid-default-prop.md) | enforce props default values to be valid |
@@ -231,7 +232,6 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
231232
| | Rule ID | Description |
232233
|:---|:--------|:------------|
233234
| :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 |
234-
| :wrench: | [vue/require-prop-type-constructor](./docs/rules/require-prop-type-constructor.md) | require prop type to be a constructor |
235235
| :wrench: | [vue/script-indent](./docs/rules/script-indent.md) | enforce consistent indentation in `<script>` |
236236

237237
### Deprecated

Diff for: docs/rules/no-unused-components.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# disallow unused components (vue/no-unused-components)
1+
# disallow registering components that are not used inside templates (vue/no-unused-components)
22

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

Diff for: docs/rules/require-prop-type-constructor.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# require prop type to be a constructor (vue/require-prop-type-constructor)
22

3+
- :gear: This rule is included in all of `"plugin:vue/essential"`, `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
34
- :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.
45

56
This rule reports prop types that can't be presumed as constructors.

Diff for: lib/configs/essential.js

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = {
1919
'vue/no-unused-vars': 'error',
2020
'vue/no-use-v-if-with-v-for': 'error',
2121
'vue/require-component-is': 'error',
22+
'vue/require-prop-type-constructor': 'error',
2223
'vue/require-render-return': 'error',
2324
'vue/require-v-for-key': 'error',
2425
'vue/require-valid-default-prop': 'error',

Diff for: lib/rules/no-unused-components.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
docs: {
2121
description: 'disallow registering components that are not used inside templates',
2222
category: 'essential',
23-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.1/docs/rules/no-unused-components.md'
23+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.2/docs/rules/no-unused-components.md'
2424
},
2525
fixable: null,
2626
schema: []

Diff for: lib/rules/require-prop-type-constructor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ module.exports = {
2525
meta: {
2626
docs: {
2727
description: 'require prop type to be a constructor',
28-
category: undefined, // essential
29-
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.1/docs/rules/require-prop-type-constructor.md'
28+
category: 'essential',
29+
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.2/docs/rules/require-prop-type-constructor.md'
3030
},
3131
fixable: 'code', // or "code" or "whitespace"
3232
schema: []

0 commit comments

Comments
 (0)