Skip to content

Commit 74f7dc6

Browse files
committed
Update README & configs
1 parent 8d20409 commit 74f7dc6

8 files changed

+11
-8
lines changed

Diff for: README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
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>` |
159159
| | [vue/no-unused-vars](./docs/rules/no-unused-vars.md) | disallow unused variable definitions of v-for directives or scope attributes |
160+
| | [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 |
160161
| | [vue/require-component-is](./docs/rules/require-component-is.md) | require `v-bind:is` of `<component>` elements |
161162
| | [vue/require-render-return](./docs/rules/require-render-return.md) | enforce render function to always return value |
162163
| | [vue/require-v-for-key](./docs/rules/require-v-for-key.md) | require `v-bind:key` with `v-for` directives |
@@ -190,7 +191,6 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
190191
| | Rule ID | Description |
191192
|:---|:--------|:------------|
192193
| :wrench: | [vue/attribute-hyphenation](./docs/rules/attribute-hyphenation.md) | enforce attribute naming style on custom components in template |
193-
| :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 |
194194
| :wrench: | [vue/html-closing-bracket-newline](./docs/rules/html-closing-bracket-newline.md) | require or disallow a line break before tag's closing brackets |
195195
| :wrench: | [vue/html-closing-bracket-spacing](./docs/rules/html-closing-bracket-spacing.md) | require or disallow a space before tag's closing brackets |
196196
| :wrench: | [vue/html-end-tags](./docs/rules/html-end-tags.md) | enforce end tag style |
@@ -200,6 +200,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
200200
| :wrench: | [vue/mustache-interpolation-spacing](./docs/rules/mustache-interpolation-spacing.md) | enforce unified spacing in mustache interpolations |
201201
| :wrench: | [vue/name-property-casing](./docs/rules/name-property-casing.md) | enforce specific casing for the name property in Vue components |
202202
| :wrench: | [vue/no-multi-spaces](./docs/rules/no-multi-spaces.md) | disallow multiple spaces |
203+
| | [vue/no-template-shadow](./docs/rules/no-template-shadow.md) | disallow variable declarations from shadowing variables declared in the outer scope |
203204
| :wrench: | [vue/prop-name-casing](./docs/rules/prop-name-casing.md) | enforce specific casing for the Prop name in Vue components |
204205
| | [vue/require-default-prop](./docs/rules/require-default-prop.md) | require default value for props |
205206
| | [vue/require-prop-types](./docs/rules/require-prop-types.md) | require type definitions in props |
@@ -220,7 +221,6 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
220221
|:---|:--------|:------------|
221222
| :wrench: | [vue/attributes-order](./docs/rules/attributes-order.md) | enforce order of attributes |
222223
| :wrench: | [vue/html-quotes](./docs/rules/html-quotes.md) | enforce quotes style of HTML attributes |
223-
| | [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 |
224224
| | [vue/no-v-html](./docs/rules/no-v-html.md) | disallow use of v-html to prevent XSS attack |
225225
| :wrench: | [vue/order-in-components](./docs/rules/order-in-components.md) | enforce order of properties in components |
226226
| | [vue/this-in-template](./docs/rules/this-in-template.md) | enforce usage of `this` in template |
@@ -229,6 +229,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
229229

230230
| | Rule ID | Description |
231231
|:---|:--------|:------------|
232+
| :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 |
232233
| :wrench: | [vue/script-indent](./docs/rules/script-indent.md) | enforce consistent indentation in `<script>` |
233234

234235
### Deprecated

Diff for: docs/rules/component-name-in-template-casing.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# enforce specific casing for the component naming style in template (vue/component-name-in-template-casing)
22

3-
- :gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
4-
- :wrench: The `--fix` option on the [command line](http://eslint.org/docs/user-guide/command-line-interface#fix) can automatically fix some of the problems reported by this rule.
3+
- :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.
54

65
Define a style for the component name in template casing for consistency purposes.
76

Diff for: docs/rules/no-template-shadow.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Disallow variable declarations from shadowing variables declared in the outer scope. (no-template-shadow)
1+
# disallow variable declarations from shadowing variables declared in the outer scope (vue/no-template-shadow)
2+
3+
- :gear: This rule is included in `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
24

35
`no-template-shadow` should report variable definitions of v-for directives or scope attributes if those shadows the variables in parent scopes.
46

Diff for: docs/rules/no-use-v-if-with-v-for.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# disallow use v-if on the same element as v-for (vue/no-use-v-if-with-v-for)
22

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

55
> Never use `v-if` on the same element as `v-for`.
66
>

Diff for: lib/configs/essential.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ module.exports = {
1616
'vue/no-template-key': 'error',
1717
'vue/no-textarea-mustache': 'error',
1818
'vue/no-unused-vars': 'error',
19+
'vue/no-use-v-if-with-v-for': 'error',
1920
'vue/require-component-is': 'error',
2021
'vue/require-render-return': 'error',
2122
'vue/require-v-for-key': 'error',

Diff for: lib/configs/recommended.js

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ module.exports = {
88
rules: {
99
'vue/attributes-order': 'error',
1010
'vue/html-quotes': 'error',
11-
'vue/no-use-v-if-with-v-for': 'error',
1211
'vue/no-v-html': 'error',
1312
'vue/order-in-components': 'error',
1413
'vue/this-in-template': 'error'

Diff for: lib/configs/strongly-recommended.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module.exports = {
77
extends: require.resolve('./essential'),
88
rules: {
99
'vue/attribute-hyphenation': 'error',
10-
'vue/component-name-in-template-casing': 'error',
1110
'vue/html-closing-bracket-newline': 'error',
1211
'vue/html-closing-bracket-spacing': 'error',
1312
'vue/html-end-tags': 'error',
@@ -17,6 +16,7 @@ module.exports = {
1716
'vue/mustache-interpolation-spacing': 'error',
1817
'vue/name-property-casing': 'error',
1918
'vue/no-multi-spaces': 'error',
19+
'vue/no-template-shadow': 'error',
2020
'vue/prop-name-casing': 'error',
2121
'vue/require-default-prop': 'error',
2222
'vue/require-prop-types': 'error',

Diff for: lib/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = {
3131
'no-shared-component-data': require('./rules/no-shared-component-data'),
3232
'no-side-effects-in-computed-properties': require('./rules/no-side-effects-in-computed-properties'),
3333
'no-template-key': require('./rules/no-template-key'),
34+
'no-template-shadow': require('./rules/no-template-shadow'),
3435
'no-textarea-mustache': require('./rules/no-textarea-mustache'),
3536
'no-unused-vars': require('./rules/no-unused-vars'),
3637
'no-use-v-if-with-v-for': require('./rules/no-use-v-if-with-v-for'),

0 commit comments

Comments
 (0)