You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Improve HTML comment directives.
- Add the support of descriptions in directive comments.
- Add the support for block-level directive comments.
* Fixed docs
Copy file name to clipboardExpand all lines: docs/rules/comment-directive.md
+50-3Lines changed: 50 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ description: support comment-directives in `<template>`
9
9
10
10
-:gear: This rule is included in all of `"plugin:vue/base"`, `"plugin:vue/essential"`, `"plugin:vue/vue3-essential"`, `"plugin:vue/strongly-recommended"`, `"plugin:vue/vue3-strongly-recommended"`, `"plugin:vue/recommended"` and `"plugin:vue/vue3-recommended"`.
11
11
12
-
Sole purpose of this rule is to provide `eslint-disable` functionality in `<template>`.
12
+
Sole purpose of this rule is to provide `eslint-disable` functionality in the `<template>` and in the block level.
13
13
It supports usage of the following comments:
14
14
15
15
-`eslint-disable`
@@ -34,8 +34,55 @@ This rule sends all `eslint-disable`-like comments as errors to the post-process
The `eslint-disable`-like comments can include descriptions to explain why the comment is necessary. The description must occur after the directive and is separated from the directive by two or more consecutive `-` characters. For example:
You can use `<!-- eslint-disable -->`-like HTML comments in the `<template>` of `.vue` files to disable a certain rule temporarily.
117
+
You can use `<!-- eslint-disable -->`-like HTML comments in the `<template>`and in the block level of `.vue` files to disable a certain rule temporarily.
0 commit comments