From ec6ab0155362c0329eea47a276c02c0d9f732dcc Mon Sep 17 00:00:00 2001 From: ntnyq Date: Sat, 30 Nov 2024 16:01:08 +0800 Subject: [PATCH 01/24] docs: fix missing options `allow` value (#2631) --- docs/rules/restricted-component-names.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/restricted-component-names.md b/docs/rules/restricted-component-names.md index 55e9883b8..1d707baf3 100644 --- a/docs/rules/restricted-component-names.md +++ b/docs/rules/restricted-component-names.md @@ -39,7 +39,7 @@ This rule enforces consistency in component names. } ``` -### `"allow"` +### `"allow: ['/^custom-/']"` From a2abbf010cf475d2c1bf2ebd6bfa41dd6296ff6a Mon Sep 17 00:00:00 2001 From: Wayne Zhang Date: Sat, 30 Nov 2024 23:15:27 +0800 Subject: [PATCH 02/24] docs: align example variable name (#2633) --- docs/user-guide/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-guide/index.md b/docs/user-guide/index.md index 4cf65c928..9634145cc 100644 --- a/docs/user-guide/index.md +++ b/docs/user-guide/index.md @@ -80,7 +80,7 @@ import eslintPluginVue from 'eslint-plugin-vue'; import globals from 'globals'; import typescriptEslint from 'typescript-eslint'; -export default tseslint.config( +export default typescriptEslint.config( { ignores: ['*.d.ts', '**/coverage', '**/dist'] }, { extends: [ From dfb5e067917402d6c401ae92df66f3290b62c3fd Mon Sep 17 00:00:00 2001 From: Daniel Rentz Date: Sun, 8 Dec 2024 13:35:07 +0100 Subject: [PATCH 03/24] fix typo in rule description (#2642) --- docs/rules/html-comment-content-newline.md | 4 ++-- docs/rules/index.md | 2 +- lib/rules/html-comment-content-newline.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/rules/html-comment-content-newline.md b/docs/rules/html-comment-content-newline.md index 43ea00d4c..3a979623c 100644 --- a/docs/rules/html-comment-content-newline.md +++ b/docs/rules/html-comment-content-newline.md @@ -2,13 +2,13 @@ pageClass: rule-details sidebarDepth: 0 title: vue/html-comment-content-newline -description: enforce unified line brake in HTML comments +description: enforce unified line break in HTML comments since: v7.0.0 --- # vue/html-comment-content-newline -> enforce unified line brake in HTML comments +> enforce unified line break in HTML comments - :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. diff --git a/docs/rules/index.md b/docs/rules/index.md index 074f4bd46..2acb765aa 100644 --- a/docs/rules/index.md +++ b/docs/rules/index.md @@ -217,7 +217,7 @@ For example: | [vue/define-props-declaration](./define-props-declaration.md) | enforce declaration style of `defineProps` | | :hammer: | | [vue/enforce-style-attribute](./enforce-style-attribute.md) | enforce or forbid the use of the `scoped` and `module` attributes in SFC top level style tags | | :hammer: | | [vue/html-button-has-type](./html-button-has-type.md) | disallow usage of button without an explicit type attribute | | :hammer: | -| [vue/html-comment-content-newline](./html-comment-content-newline.md) | enforce unified line brake in HTML comments | :wrench: | :lipstick: | +| [vue/html-comment-content-newline](./html-comment-content-newline.md) | enforce unified line break in HTML comments | :wrench: | :lipstick: | | [vue/html-comment-content-spacing](./html-comment-content-spacing.md) | enforce unified spacing in HTML comments | :wrench: | :lipstick: | | [vue/html-comment-indent](./html-comment-indent.md) | enforce consistent indentation in HTML comments | :wrench: | :lipstick: | | [vue/match-component-file-name](./match-component-file-name.md) | require component name property to match its file name | :bulb: | :hammer: | diff --git a/lib/rules/html-comment-content-newline.js b/lib/rules/html-comment-content-newline.js index 170b2bfb4..590ec9fc1 100644 --- a/lib/rules/html-comment-content-newline.js +++ b/lib/rules/html-comment-content-newline.js @@ -34,7 +34,7 @@ module.exports = { type: 'layout', docs: { - description: 'enforce unified line brake in HTML comments', + description: 'enforce unified line break in HTML comments', categories: undefined, url: 'https://eslint.vuejs.org/rules/html-comment-content-newline.html' }, From 8d35f1400c07cd6bb05ed89cf11a51c0d1aed2d5 Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Thu, 12 Dec 2024 14:57:51 +0100 Subject: [PATCH 04/24] Update @stylistic/eslint-plugin to v2.12.0 (#2643) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 18d136ea5..0c75e65c7 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ }, "devDependencies": { "@ota-meshi/site-kit-eslint-editor-vue": "^0.2.4", - "@stylistic/eslint-plugin": "~2.10.0", + "@stylistic/eslint-plugin": "^2.12.0", "@types/eslint": "^8.56.2", "@types/eslint-visitor-keys": "^3.3.2", "@types/natural-compare": "^1.4.3", From 0a92a5694d080780c015de2c6a17b7a3348accbe Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Fri, 13 Dec 2024 08:54:54 +0100 Subject: [PATCH 05/24] Improve rules docs source readability (#2641) --- docs/rules/index.md | 772 +++++++++++++++++++++---------- tools/update-docs-rules-index.js | 49 +- 2 files changed, 558 insertions(+), 263 deletions(-) diff --git a/docs/rules/index.md b/docs/rules/index.md index 2acb765aa..188a9668a 100644 --- a/docs/rules/index.md +++ b/docs/rules/index.md @@ -27,8 +27,8 @@ Rules in this category are enabled for all presets provided by eslint-plugin-vue | Rule ID | Description | | | |:--------|:------------|:--:|:--:| -| [vue/comment-directive](./comment-directive.md) | support comment-directives in `