Skip to content

Commit 345dd2a

Browse files
authored
Update docs to clarify rules that extend ESlint core rules. (#1174)
1 parent 7fd2e42 commit 345dd2a

32 files changed

+149
-35
lines changed

docs/.vuepress/config.js

+20-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@
77
const rules = require('../../tools/lib/rules')
88

99
const uncategorizedRules = rules.filter(
10-
(rule) => !rule.meta.docs.categories && !rule.meta.deprecated
10+
(rule) =>
11+
!rule.meta.docs.categories &&
12+
!rule.meta.docs.extensionRule &&
13+
!rule.meta.deprecated
14+
)
15+
const uncategorizedExtensionRule = rules.filter(
16+
(rule) =>
17+
!rule.meta.docs.categories &&
18+
rule.meta.docs.extensionRule &&
19+
!rule.meta.deprecated
1120
)
1221
const deprecatedRules = rules.filter((rule) => rule.meta.deprecated)
1322

@@ -87,6 +96,16 @@ if (uncategorizedRules.length > 0) {
8796
])
8897
})
8998
}
99+
if (uncategorizedExtensionRule.length > 0) {
100+
extraCategories.push({
101+
title: 'Extension Rules',
102+
collapsable: false,
103+
children: uncategorizedExtensionRule.map(({ ruleId, name }) => [
104+
`/rules/${name}`,
105+
ruleId
106+
])
107+
})
108+
}
90109
if (deprecatedRules.length > 0) {
91110
extraCategories.push({
92111
title: 'Deprecated',

docs/rules/README.md

+30-23
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,40 @@ For example:
266266
```json
267267
{
268268
"rules": {
269-
"vue/array-bracket-spacing": "error"
269+
"vue/component-name-in-template-casing": "error"
270270
}
271271
}
272272
```
273273

274+
| Rule ID | Description | |
275+
|:--------|:------------|:---|
276+
| [vue/component-name-in-template-casing](./component-name-in-template-casing.md) | enforce specific casing for the component naming style in template | :wrench: |
277+
| [vue/html-comment-content-newline](./html-comment-content-newline.md) | enforce unified line brake in HTML comments | :wrench: |
278+
| [vue/html-comment-content-spacing](./html-comment-content-spacing.md) | enforce unified spacing in HTML comments | :wrench: |
279+
| [vue/html-comment-indent](./html-comment-indent.md) | enforce consistent indentation in HTML comments | :wrench: |
280+
| [vue/match-component-file-name](./match-component-file-name.md) | require component name property to match its file name | |
281+
| [vue/no-boolean-default](./no-boolean-default.md) | disallow boolean defaults | :wrench: |
282+
| [vue/no-duplicate-attr-inheritance](./no-duplicate-attr-inheritance.md) | enforce `inheritAttrs` to be set to `false` when using `v-bind="$attrs"` | |
283+
| [vue/no-potential-component-option-typo](./no-potential-component-option-typo.md) | disallow a potential typo in your component property | |
284+
| [vue/no-reserved-component-names](./no-reserved-component-names.md) | disallow the use of reserved names in component definitions | |
285+
| [vue/no-static-inline-styles](./no-static-inline-styles.md) | disallow static inline `style` attributes | |
286+
| [vue/no-template-target-blank](./no-template-target-blank.md) | disallow target="_blank" attribute without rel="noopener noreferrer" | |
287+
| [vue/no-unregistered-components](./no-unregistered-components.md) | disallow using components that are not registered inside templates | |
288+
| [vue/no-unsupported-features](./no-unsupported-features.md) | disallow unsupported Vue.js syntax on the specified version | :wrench: |
289+
| [vue/no-unused-properties](./no-unused-properties.md) | disallow unused properties | |
290+
| [vue/padding-line-between-blocks](./padding-line-between-blocks.md) | require or disallow padding lines between blocks | :wrench: |
291+
| [vue/require-direct-export](./require-direct-export.md) | require the component to be directly exported | |
292+
| [vue/require-explicit-emits](./require-explicit-emits.md) | require `emits` option with name triggered by `$emit()` | |
293+
| [vue/require-name-property](./require-name-property.md) | require a name property in Vue components | |
294+
| [vue/script-indent](./script-indent.md) | enforce consistent indentation in `<script>` | :wrench: |
295+
| [vue/sort-keys](./sort-keys.md) | enforce sort-keys in a manner that is compatible with order-in-components | |
296+
| [vue/static-class-names-order](./static-class-names-order.md) | enforce static class names order | :wrench: |
297+
| [vue/v-on-function-call](./v-on-function-call.md) | enforce or forbid parentheses after method calls without arguments in `v-on` directives | :wrench: |
298+
299+
### Extension Rules
300+
301+
The following rules extend the rules provided by ESLint itself and apply them to the expressions in the `<template>`.
302+
274303
| Rule ID | Description | |
275304
|:--------|:------------|:---|
276305
| [vue/array-bracket-spacing](./array-bracket-spacing.md) | enforce consistent spacing inside array brackets | :wrench: |
@@ -281,45 +310,23 @@ For example:
281310
| [vue/comma-dangle](./comma-dangle.md) | require or disallow trailing commas | :wrench: |
282311
| [vue/comma-spacing](./comma-spacing.md) | enforce consistent spacing before and after commas | :wrench: |
283312
| [vue/comma-style](./comma-style.md) | enforce consistent comma style | :wrench: |
284-
| [vue/component-name-in-template-casing](./component-name-in-template-casing.md) | enforce specific casing for the component naming style in template | :wrench: |
285313
| [vue/dot-location](./dot-location.md) | enforce consistent newlines before and after dots | :wrench: |
286314
| [vue/dot-notation](./dot-notation.md) | enforce dot notation whenever possible | :wrench: |
287315
| [vue/eqeqeq](./eqeqeq.md) | require the use of `===` and `!==` | :wrench: |
288-
| [vue/html-comment-content-newline](./html-comment-content-newline.md) | enforce unified line brake in HTML comments | :wrench: |
289-
| [vue/html-comment-content-spacing](./html-comment-content-spacing.md) | enforce unified spacing in HTML comments | :wrench: |
290-
| [vue/html-comment-indent](./html-comment-indent.md) | enforce consistent indentation in HTML comments | :wrench: |
291316
| [vue/key-spacing](./key-spacing.md) | enforce consistent spacing between keys and values in object literal properties | :wrench: |
292317
| [vue/keyword-spacing](./keyword-spacing.md) | enforce consistent spacing before and after keywords | :wrench: |
293-
| [vue/match-component-file-name](./match-component-file-name.md) | require component name property to match its file name | |
294318
| [vue/max-len](./max-len.md) | enforce a maximum line length | |
295-
| [vue/no-boolean-default](./no-boolean-default.md) | disallow boolean defaults | :wrench: |
296-
| [vue/no-duplicate-attr-inheritance](./no-duplicate-attr-inheritance.md) | enforce `inheritAttrs` to be set to `false` when using `v-bind="$attrs"` | |
297319
| [vue/no-empty-pattern](./no-empty-pattern.md) | disallow empty destructuring patterns | |
298320
| [vue/no-extra-parens](./no-extra-parens.md) | disallow unnecessary parentheses | :wrench: |
299321
| [vue/no-irregular-whitespace](./no-irregular-whitespace.md) | disallow irregular whitespace | |
300-
| [vue/no-potential-component-option-typo](./no-potential-component-option-typo.md) | disallow a potential typo in your component property | |
301-
| [vue/no-reserved-component-names](./no-reserved-component-names.md) | disallow the use of reserved names in component definitions | |
302322
| [vue/no-restricted-syntax](./no-restricted-syntax.md) | disallow specified syntax | |
303-
| [vue/no-static-inline-styles](./no-static-inline-styles.md) | disallow static inline `style` attributes | |
304-
| [vue/no-template-target-blank](./no-template-target-blank.md) | disallow target="_blank" attribute without rel="noopener noreferrer" | |
305-
| [vue/no-unregistered-components](./no-unregistered-components.md) | disallow using components that are not registered inside templates | |
306-
| [vue/no-unsupported-features](./no-unsupported-features.md) | disallow unsupported Vue.js syntax on the specified version | :wrench: |
307-
| [vue/no-unused-properties](./no-unused-properties.md) | disallow unused properties | |
308323
| [vue/no-useless-concat](./no-useless-concat.md) | disallow unnecessary concatenation of literals or template literals | |
309324
| [vue/object-curly-spacing](./object-curly-spacing.md) | enforce consistent spacing inside braces | :wrench: |
310-
| [vue/padding-line-between-blocks](./padding-line-between-blocks.md) | require or disallow padding lines between blocks | :wrench: |
311325
| [vue/prefer-template](./prefer-template.md) | require template literals instead of string concatenation | :wrench: |
312-
| [vue/require-direct-export](./require-direct-export.md) | require the component to be directly exported | |
313-
| [vue/require-explicit-emits](./require-explicit-emits.md) | require `emits` option with name triggered by `$emit()` | |
314-
| [vue/require-name-property](./require-name-property.md) | require a name property in Vue components | |
315-
| [vue/script-indent](./script-indent.md) | enforce consistent indentation in `<script>` | :wrench: |
316-
| [vue/sort-keys](./sort-keys.md) | enforce sort-keys in a manner that is compatible with order-in-components | |
317326
| [vue/space-in-parens](./space-in-parens.md) | enforce consistent spacing inside parentheses | :wrench: |
318327
| [vue/space-infix-ops](./space-infix-ops.md) | require spacing around infix operators | :wrench: |
319328
| [vue/space-unary-ops](./space-unary-ops.md) | enforce consistent spacing before or after unary operators | :wrench: |
320-
| [vue/static-class-names-order](./static-class-names-order.md) | enforce static class names order | :wrench: |
321329
| [vue/template-curly-spacing](./template-curly-spacing.md) | require or disallow spacing around embedded expressions of template strings | :wrench: |
322-
| [vue/v-on-function-call](./v-on-function-call.md) | enforce or forbid parentheses after method calls without arguments in `v-on` directives | :wrench: |
323330

324331
## Deprecated
325332

docs/rules/array-bracket-spacing.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [array-bracket-spacing] rule but it applies t
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/array-bracket-spacing.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/array-bracket-spacing.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/array-bracket-spacing)</sup>

docs/rules/arrow-spacing.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [arrow-spacing] rule but it applies to the ex
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/arrow-spacing.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/arrow-spacing.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/arrow-spacing)</sup>

docs/rules/block-spacing.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [block-spacing] rule but it applies to the ex
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/block-spacing.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/block-spacing.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/block-spacing)</sup>

docs/rules/brace-style.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [brace-style] rule but it applies to the expr
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/brace-style.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/brace-style.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/brace-style)</sup>

docs/rules/camelcase.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ This rule is the same rule as core [camelcase] rule but it applies to the expres
1919

2020
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/camelcase.js)
2121
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/camelcase.js)
22+
23+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/camelcase)</sup>

docs/rules/comma-dangle.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [comma-dangle] rule but it applies to the exp
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/comma-dangle.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/comma-dangle.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/comma-dangle)</sup>

docs/rules/comma-spacing.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [comma-spacing] rule but it applies to the ex
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/comma-spacing.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/comma-spacing.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/comma-spacing)</sup>

docs/rules/comma-style.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [comma-style] rule but it applies to the expr
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/comma-style.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/comma-style.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/comma-style)</sup>

docs/rules/dot-location.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [dot-location] rule but it applies to the exp
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/dot-location.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/dot-location.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/dot-location)</sup>

docs/rules/dot-notation.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [dot-notation] rule but it applies to the exp
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/dot-notation.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/dot-notation.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/dot-notation)</sup>

docs/rules/eqeqeq.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [eqeqeq] rule but it applies to the expressio
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/eqeqeq.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/eqeqeq.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/eqeqeq)</sup>

docs/rules/key-spacing.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [key-spacing] rule but it applies to the expr
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/key-spacing.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/key-spacing.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/key-spacing)</sup>

docs/rules/keyword-spacing.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [keyword-spacing] rule but it applies to the
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/keyword-spacing.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/keyword-spacing.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/keyword-spacing)</sup>

docs/rules/max-len.md

+2
Original file line numberDiff line numberDiff line change
@@ -327,3 +327,5 @@ var longRegExpLiteral = /this is a really really really really really long regul
327327

328328
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/max-len.js)
329329
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/max-len.js)
330+
331+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/max-len)</sup>

docs/rules/no-empty-pattern.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ This rule is the same rule as core [no-empty-pattern] rule but it applies to the
1919

2020
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-empty-pattern.js)
2121
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/no-empty-pattern.js)
22+
23+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/no-empty-pattern)</sup>

docs/rules/no-extra-parens.md

+2
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ This rule extends the core [no-extra-parens] rule and applies it to the `<templa
4343

4444
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-extra-parens.js)
4545
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/no-extra-parens.js)
46+
47+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/no-extra-parens)</sup>

docs/rules/no-irregular-whitespace.md

+2
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,5 @@ var foo = ` `
167167

168168
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-irregular-whitespace.js)
169169
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/no-irregular-whitespace.js)
170+
171+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/no-irregular-whitespace)</sup>

docs/rules/no-restricted-syntax.md

+2
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,5 @@ Forbids call expressions inside mustache interpolation.
5353

5454
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-restricted-syntax.js)
5555
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/no-restricted-syntax.js)
56+
57+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/no-restricted-syntax)</sup>

docs/rules/no-useless-concat.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ This rule is the same rule as core [no-useless-concat] rule but it applies to th
1919

2020
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-useless-concat.js)
2121
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/no-useless-concat.js)
22+
23+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/no-useless-concat)</sup>

docs/rules/object-curly-spacing.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [object-curly-spacing] rule but it applies to
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/object-curly-spacing.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/object-curly-spacing.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/object-curly-spacing)</sup>

docs/rules/prefer-template.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [prefer-template] rule but it applies to the
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/prefer-template.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/prefer-template.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/prefer-template)</sup>

docs/rules/space-in-parens.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [space-in-parens] rule but it applies to the
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/space-in-parens.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/space-in-parens.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/space-in-parens)</sup>

docs/rules/space-infix-ops.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [space-infix-ops] rule but it applies to the
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/space-infix-ops.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/space-infix-ops.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/space-infix-ops)</sup>

docs/rules/space-unary-ops.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [space-unary-ops] rule but it applies to the
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/space-unary-ops.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/space-unary-ops.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/space-unary-ops)</sup>

docs/rules/template-curly-spacing.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ This rule is the same rule as core [template-curly-spacing] rule but it applies
2121

2222
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/template-curly-spacing.js)
2323
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/template-curly-spacing.js)
24+
25+
<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/rules/template-curly-spacing)</sup>

lib/rules/max-len.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ module.exports = {
192192
docs: {
193193
description: 'enforce a maximum line length',
194194
categories: undefined,
195-
url: 'https://eslint.vuejs.org/rules/max-len.html'
195+
url: 'https://eslint.vuejs.org/rules/max-len.html',
196+
extensionRule: true,
197+
coreRuleUrl: 'https://eslint.org/docs/rules/max-len'
196198
},
197199

198200
schema: [

lib/rules/no-irregular-whitespace.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ module.exports = {
3030
docs: {
3131
description: 'disallow irregular whitespace',
3232
categories: undefined,
33-
url: 'https://eslint.vuejs.org/rules/no-irregular-whitespace.html'
33+
url: 'https://eslint.vuejs.org/rules/no-irregular-whitespace.html',
34+
extensionRule: true,
35+
coreRuleUrl: 'https://eslint.org/docs/rules/no-irregular-whitespace'
3436
},
3537

3638
schema: [

0 commit comments

Comments
 (0)