@@ -15,7 +15,7 @@ yarn add @eslint/plugin-kit
15
15
# or
16
16
pnpm install @eslint/plugin-kit
17
17
# or
18
- bun install @eslint/plugin-kit
18
+ bun add @eslint/plugin-kit
19
19
```
20
20
21
21
For Deno:
@@ -28,10 +28,10 @@ deno add @eslint/plugin-kit
28
28
29
29
This package exports the following utilities:
30
30
31
- - ` ConfigCommentParser ` - used to parse ESLint configuration comments (i.e., ` /* eslint-disable rule */ ` )
32
- - ` VisitNodeStep ` and ` CallMethodStep ` - used to help implement ` SourceCode#traverse() `
33
- - ` Directive ` - used to help implement ` SourceCode#getDisableDirectives() `
34
- - ` TextSourceCodeBase ` - base class to help implement the ` SourceCode ` interface
31
+ - [ ` ConfigCommentParser ` ] ( #configcommentparser ) - used to parse ESLint configuration comments (i.e., ` /* eslint-disable rule */ ` )
32
+ - [ ` VisitNodeStep ` and ` CallMethodStep ` ] ( #visitnodestep-and-callmethodstep ) - used to help implement ` SourceCode#traverse() `
33
+ - [ ` Directive ` ] ( #directive ) - used to help implement ` SourceCode#getDisableDirectives() `
34
+ - [ ` TextSourceCodeBase ` ] ( #textsourcecodebase ) - base class to help implement the ` SourceCode ` interface
35
35
36
36
### ` ConfigCommentParser `
37
37
@@ -52,7 +52,7 @@ const directive = commentParser.parseDirective(
52
52
if (directive) {
53
53
console .log (directive .label ); // "eslint-disable"
54
54
console .log (directive .value ); // "prefer-const, semi"
55
- console .log (directive .justification ); // "I don't want to use these"
55
+ console .log (directive .justification ); // "I don't want to use these. "
56
56
}
57
57
```
58
58
@@ -124,9 +124,7 @@ For example:
124
124
import { VisitNodeStep , CallMethodStep } from " @eslint/plugin-kit" ;
125
125
126
126
class MySourceCode {
127
-
128
127
traverse () {
129
-
130
128
const steps = [];
131
129
132
130
for (const { node , parent , phase } of iterator (this .ast )) {
0 commit comments