@@ -19,7 +19,7 @@ catch a context-specific problem or enforce company-wide conventions.
19
19
20
20
This is where the lint plugin API comes into play.
21
21
22
- The lint plugin API is intentionally modelled after the
22
+ The lint plugin API is intentionally modeled after the
23
23
[ ESLint API] ( https://eslint.org/docs/latest/extend/custom-rules ) . While this API
24
24
doesn't provide 100% compatibility, the existing knowledge of authoring ESLint
25
25
plugins can be mostly reused if you happen to have written custom
@@ -90,7 +90,7 @@ export default {
90
90
91
91
Writing code to match a specific node can sometimes become a bit tedious if you
92
92
write it in plain JavaScript. Sometimes this matching logic would be easier to
93
- express via a selector, similar to CSS selectors. The using a string as the
93
+ express via a selector, similar to CSS selectors. By using a string as the
94
94
property name in the returned visitor object, we can specify a custom selector.
95
95
96
96
``` ts title="my-plugin.ts"
@@ -248,7 +248,7 @@ custom lint rule is always `<plugin-name>/<rule-name>`.
248
248
249
249
## Testing plugins
250
250
251
- ` Deno.lint.runPlugin ` API provides a convenient way to test your plugins. It
251
+ The ` Deno.lint.runPlugin ` API provides a convenient way to test your plugins. It
252
252
allows you to assert that the plugin produces expected diagnostics given the
253
253
particular input.
254
254
@@ -271,10 +271,10 @@ Deno.test("my-plugin", () => {
271
271
272
272
::: info
273
273
274
- ` Deno.lint.runPlugin ` API is only available in ` deno test ` and ` deno bench `
275
- subcommands.
274
+ The ` Deno.lint.runPlugin ` API is only available in the ` deno test ` and
275
+ ` deno bench ` subcommands.
276
276
277
- Trying to use it with any other subcommand will result in an error thrown .
277
+ Trying to use it with any other subcommand will throw an error.
278
278
279
279
:::
280
280
0 commit comments