Skip to content

Commit aed5bc4

Browse files
authored
docs: improve English in lint_plugins.md (#1478)
1 parent 81449ce commit aed5bc4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

runtime/reference/lint_plugins.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ catch a context-specific problem or enforce company-wide conventions.
1919

2020
This is where the lint plugin API comes into play.
2121

22-
The lint plugin API is intentionally modelled after the
22+
The lint plugin API is intentionally modeled after the
2323
[ESLint API](https://eslint.org/docs/latest/extend/custom-rules). While this API
2424
doesn't provide 100% compatibility, the existing knowledge of authoring ESLint
2525
plugins can be mostly reused if you happen to have written custom
@@ -90,7 +90,7 @@ export default {
9090

9191
Writing code to match a specific node can sometimes become a bit tedious if you
9292
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
9494
property name in the returned visitor object, we can specify a custom selector.
9595

9696
```ts title="my-plugin.ts"
@@ -248,7 +248,7 @@ custom lint rule is always `<plugin-name>/<rule-name>`.
248248

249249
## Testing plugins
250250

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
252252
allows you to assert that the plugin produces expected diagnostics given the
253253
particular input.
254254

@@ -271,10 +271,10 @@ Deno.test("my-plugin", () => {
271271

272272
:::info
273273

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.
276276

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.
278278

279279
:::
280280

0 commit comments

Comments
 (0)