@@ -15,7 +15,7 @@ yarn add @eslint/plugin-kit
1515# or
1616pnpm install @eslint/plugin-kit
1717# or
18- bun install @eslint/plugin-kit
18+ bun add @eslint/plugin-kit
1919```
2020
2121For Deno:
@@ -28,10 +28,10 @@ deno add @eslint/plugin-kit
2828
2929This package exports the following utilities:
3030
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
3535
3636### ` ConfigCommentParser `
3737
@@ -52,7 +52,7 @@ const directive = commentParser.parseDirective(
5252if (directive) {
5353 console .log (directive .label ); // "eslint-disable"
5454 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. "
5656}
5757```
5858
@@ -124,9 +124,7 @@ For example:
124124import { VisitNodeStep , CallMethodStep } from " @eslint/plugin-kit" ;
125125
126126class MySourceCode {
127-
128127 traverse () {
129-
130128 const steps = [];
131129
132130 for (const { node , parent , phase } of iterator (this .ast )) {
0 commit comments