You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/contribute/linter.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,19 @@ Or test and filter against the rule:
23
23
just watch "cargo test -p oxc_linter -- rule-name"
24
24
```
25
25
26
+
### Testing oxlint against a full codebase
27
+
28
+
To test oxlint on a full codebase, for example to test your changes with a large JavaScript/TypeScript project, you can build the `oxlint` CLI and run it against that codebase.
29
+
30
+
```bash
31
+
# build the oxlint cli in the oxc repo
32
+
just oxlint-node
33
+
# and then in the directory of the codebase you want to test with, run oxlint with node:
34
+
node <path-to-oxc-repo>/apps/oxlint/dist/cli.js
35
+
# You can also pass flags to it, like -D to enable a specific rule, and --disable-x-plugin to turn off default plugins:
0 commit comments