Skip to content

Commit 667e36f

Browse files
Docs: add directive comment to no-useless-token-range docs
1 parent 6cef769 commit 667e36f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: docs/rules/no-useless-token-range.md

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ This rule aims to avoid unnecessary calls to `sourceCode.getFirstToken` and `sou
99
Examples of **incorrect** code for this rule:
1010

1111
```js
12+
/* eslint eslint-plugin/no-useless-token-range: error */
13+
1214
module.exports = {
1315
create(context) {
1416
const sourceCode = context.getSourceCode();
@@ -22,6 +24,8 @@ module.exports = {
2224
Examples of **correct** code for this rule:
2325

2426
```js
27+
/* eslint eslint-plugin/no-useless-token-range: error */
28+
2529
module.exports = {
2630
create(context) {
2731
const sourceCode = context.getSourceCode();

0 commit comments

Comments
 (0)