diff --git a/docs/.vuepress/components/eslint-code-block.vue b/docs/.vuepress/components/eslint-code-block.vue index 00b694825..381d9985f 100644 --- a/docs/.vuepress/components/eslint-code-block.vue +++ b/docs/.vuepress/components/eslint-code-block.vue @@ -122,15 +122,12 @@ export default { async mounted() { // Load linter. - const [ - { default: Linter }, - { default: coreRules }, - { parseForESLint } - ] = await Promise.all([ - import('eslint4b/dist/linter'), - import('eslint4b/dist/core-rules'), - import('espree').then(() => import('vue-eslint-parser')) - ]) + const [{ default: Linter }, { default: coreRules }, { parseForESLint }] = + await Promise.all([ + import('eslint4b/dist/linter'), + import('eslint4b/dist/core-rules'), + import('espree').then(() => import('vue-eslint-parser')) + ]) const linter = (this.linter = new Linter()) diff --git a/docs/rules/README.md b/docs/rules/README.md index e34e4ca2b..9717d49ae 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -157,7 +157,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi | [vue/no-multiple-slot-args](./no-multiple-slot-args.md) | disallow to pass multiple arguments to scoped slots | | | [vue/no-v-html](./no-v-html.md) | disallow use of v-html to prevent XSS attack | | | [vue/order-in-components](./order-in-components.md) | enforce order of properties in components | :wrench: | -| [vue/this-in-template](./this-in-template.md) | disallow usage of `this` in template | | +| [vue/this-in-template](./this-in-template.md) | disallow usage of `this` in template | :wrench: | ## Priority A: Essential (Error Prevention) for Vue.js 2.x @@ -267,7 +267,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi | [vue/no-multiple-slot-args](./no-multiple-slot-args.md) | disallow to pass multiple arguments to scoped slots | | | [vue/no-v-html](./no-v-html.md) | disallow use of v-html to prevent XSS attack | | | [vue/order-in-components](./order-in-components.md) | enforce order of properties in components | :wrench: | -| [vue/this-in-template](./this-in-template.md) | disallow usage of `this` in template | | +| [vue/this-in-template](./this-in-template.md) | disallow usage of `this` in template | :wrench: | ## Uncategorized diff --git a/docs/rules/this-in-template.md b/docs/rules/this-in-template.md index 7924ad3b5..f193e7e37 100644 --- a/docs/rules/this-in-template.md +++ b/docs/rules/this-in-template.md @@ -10,12 +10,13 @@ since: v3.13.0 > disallow usage of `this` in template - :gear: This rule is included in `"plugin:vue/vue3-recommended"` and `"plugin:vue/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 This rule aims at preventing usage of `this` in Vue templates. - + ```vue