diff --git a/docs/.vitepress/vite-plugin.mts b/docs/.vitepress/vite-plugin.mts index fd0644ed5..ba1ca7db0 100644 --- a/docs/.vitepress/vite-plugin.mts +++ b/docs/.vitepress/vite-plugin.mts @@ -65,7 +65,7 @@ function transformRequire(code: string) { id += Math.random().toString(32).substring(2) } modules.set(id, moduleString) - return id + return id + '()' } ) @@ -73,7 +73,7 @@ function transformRequire(code: string) { [...modules] .map(([id, moduleString]) => { return `import * as __temp_${id} from ${moduleString}; -const ${id} = __temp_${id}.default || __temp_${id}; +const ${id} = () => __temp_${id}.default || __temp_${id}; ` }) .join('') + diff --git a/docs/rules/attribute-hyphenation.md b/docs/rules/attribute-hyphenation.md index 5c2de0027..d5fba2e31 100644 --- a/docs/rules/attribute-hyphenation.md +++ b/docs/rules/attribute-hyphenation.md @@ -10,7 +10,7 @@ since: v3.9.0 > enforce attribute naming style on custom components in template -- :gear: This rule is included in all of `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`. +- :gear: This rule is included in all of `"plugin:vue/vue3-strongly-recommended"`, `*.configs["flat/strongly-recommended"]`, `"plugin:vue/strongly-recommended"`, `*.configs["flat/vue2-strongly-recommended"]`, `"plugin:vue/vue3-recommended"`, `*.configs["flat/recommended"]`, `"plugin:vue/recommended"` and `*.configs["flat/vue2-recommended"]`. - :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. ## :book: Rule Details diff --git a/docs/rules/attributes-order.md b/docs/rules/attributes-order.md index a9cf47288..366f134b8 100644 --- a/docs/rules/attributes-order.md +++ b/docs/rules/attributes-order.md @@ -10,7 +10,7 @@ since: v4.3.0 > enforce order of attributes -- :gear: This rule is included in `"plugin:vue/vue3-recommended"` and `"plugin:vue/recommended"`. +- :gear: This rule is included in all of `"plugin:vue/vue3-recommended"`, `*.configs["flat/recommended"]`, `"plugin:vue/recommended"` and `*.configs["flat/vue2-recommended"]`. - :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. ## :book: Rule Details diff --git a/docs/rules/comment-directive.md b/docs/rules/comment-directive.md index b95f31668..9bc227a6f 100644 --- a/docs/rules/comment-directive.md +++ b/docs/rules/comment-directive.md @@ -10,7 +10,7 @@ since: v4.1.0 > support comment-directives in `