Skip to content

Commit a429e6d

Browse files
committed
small tweaks
1 parent b5a2da4 commit a429e6d

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

docs/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Official ESLint plugin for Vue.js.
44

5-
## 🏁 Goal
6-
75
This plugin allows us to check the `<template>` and `<script>` of `.vue` files with ESLint.
86

97
- Finds syntax errors.

docs/rules/README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
4141
| [vue/no-template-key](./no-template-key.md) | disallow `key` attribute on `<template>` | |
4242
| [vue/no-textarea-mustache](./no-textarea-mustache.md) | disallow mustaches in `<textarea>` | |
4343
| [vue/no-unused-vars](./no-unused-vars.md) | disallow unused variable definitions of v-for directives or scope attributes | |
44+
| [vue/no-use-v-if-with-v-for](./no-use-v-if-with-v-for.md) | disallow use v-if on the same element as v-for | |
4445
| [vue/require-component-is](./require-component-is.md) | require `v-bind:is` of `<component>` elements | |
4546
| [vue/require-render-return](./require-render-return.md) | enforce render function to always return value | |
4647
| [vue/require-v-for-key](./require-v-for-key.md) | require `v-bind:key` with `v-for` directives | |
@@ -74,13 +75,17 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
7475
| Rule ID | Description | |
7576
|:--------|:------------|:---|
7677
| [vue/attribute-hyphenation](./attribute-hyphenation.md) | enforce attribute naming style on custom components in template | :wrench: |
78+
| [vue/html-closing-bracket-newline](./html-closing-bracket-newline.md) | require or disallow a line break before tag's closing brackets | :wrench: |
79+
| [vue/html-closing-bracket-spacing](./html-closing-bracket-spacing.md) | require or disallow a space before tag's closing brackets | :wrench: |
7780
| [vue/html-end-tags](./html-end-tags.md) | enforce end tag style | :wrench: |
7881
| [vue/html-indent](./html-indent.md) | enforce consistent indentation in `<template>` | :wrench: |
7982
| [vue/html-self-closing](./html-self-closing.md) | enforce self-closing style | :wrench: |
8083
| [vue/max-attributes-per-line](./max-attributes-per-line.md) | enforce the maximum number of attributes per line | :wrench: |
8184
| [vue/mustache-interpolation-spacing](./mustache-interpolation-spacing.md) | enforce unified spacing in mustache interpolations | :wrench: |
8285
| [vue/name-property-casing](./name-property-casing.md) | enforce specific casing for the name property in Vue components | :wrench: |
8386
| [vue/no-multi-spaces](./no-multi-spaces.md) | disallow multiple spaces | :wrench: |
87+
| [vue/no-template-shadow](./no-template-shadow.md) | disallow variable declarations from shadowing variables declared in the outer scope | |
88+
| [vue/prop-name-casing](./prop-name-casing.md) | enforce specific casing for the Prop name in Vue components | :wrench: |
8489
| [vue/require-default-prop](./require-default-prop.md) | require default value for props | |
8590
| [vue/require-prop-types](./require-prop-types.md) | require type definitions in props | |
8691
| [vue/v-bind-style](./v-bind-style.md) | enforce `v-bind` directive style | :wrench: |
@@ -100,7 +105,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
100105
|:--------|:------------|:---|
101106
| [vue/attributes-order](./attributes-order.md) | enforce order of attributes | :wrench: |
102107
| [vue/html-quotes](./html-quotes.md) | enforce quotes style of HTML attributes | :wrench: |
103-
| [vue/no-confusing-v-for-v-if](./no-confusing-v-for-v-if.md) | disallow confusing `v-for` and `v-if` on the same element | |
108+
| [vue/no-v-html](./no-v-html.md) | disallow use of v-html to prevent XSS attack | |
104109
| [vue/order-in-components](./order-in-components.md) | enforce order of properties in components | :wrench: |
105110
| [vue/this-in-template](./this-in-template.md) | enforce usage of `this` in template | |
106111

@@ -114,16 +119,21 @@ For example:
114119
```json
115120
{
116121
"rules": {
117-
"vue/html-closing-bracket-newline": "error"
122+
"vue/component-name-in-template-casing": "error"
118123
}
119124
}
120125
```
121126

122127
| Rule ID | Description | |
123128
|:--------|:------------|:---|
124-
| [vue/html-closing-bracket-newline](./html-closing-bracket-newline.md) | require or disallow a line break before tag's closing brackets | :wrench: |
125-
| [vue/html-closing-bracket-spacing](./html-closing-bracket-spacing.md) | require or disallow a space before tag's closing brackets | :wrench: |
126-
| [vue/no-use-v-if-with-v-for](./no-use-v-if-with-v-for.md) | disallow use v-if on the same element as v-for | |
127-
| [vue/no-v-html](./no-v-html.md) | disallow use of v-html to prevent XSS attack | |
128-
| [vue/prop-name-casing](./prop-name-casing.md) | enforce specific casing for the Prop name in Vue components | :wrench: |
129+
| [vue/component-name-in-template-casing](./component-name-in-template-casing.md) | enforce specific casing for the component naming style in template | :wrench: |
129130
| [vue/script-indent](./script-indent.md) | enforce consistent indentation in `<script>` | :wrench: |
131+
132+
## Deprecated
133+
134+
- :warning: We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.
135+
- :innocent: We don't fix bugs which are in deprecated rules since we don't have enough resources.
136+
137+
| Rule ID | Replaced by |
138+
|:--------|:------------|
139+
| [vue/no-confusing-v-for-v-if](./no-confusing-v-for-v-if.md) | [vue/no-use-v-if-with-v-for](./no-use-v-if-with-v-for.md) |

tools/update-docs-rules-index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ if (deprecatedRules.length >= 1) {
7777
rulesTableContent += `
7878
## Deprecated
7979
80-
> - :warning: We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.
81-
> - :innocent: We don't fix bugs which are in deprecated rules since we don't have enough resources.
80+
- :warning: We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.
81+
- :innocent: We don't fix bugs which are in deprecated rules since we don't have enough resources.
8282
8383
| Rule ID | Replaced by |
8484
|:--------|:------------|

0 commit comments

Comments
 (0)