@diff-cov/oxlint 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
# @diff-cov/oxlint
|
|
2
2
|
|
|
3
|
-
Oxlint adapter for [
|
|
3
|
+
Oxlint adapter for [diff-cov](https://github.com/aprilandjan/diff-cov).
|
|
4
|
+
|
|
5
|
+
This package is installed with `@diff-cov/cli`; you do not add it separately. The
|
|
6
|
+
project still needs its own `oxlint` binary.
|
|
4
7
|
|
|
5
8
|
```bash
|
|
6
|
-
pnpm add -D @diff-cov/cli
|
|
9
|
+
pnpm add -D @diff-cov/cli oxlint
|
|
7
10
|
pnpm exec diff-cov oxlint --base stable --fail-on error
|
|
8
11
|
```
|
|
9
12
|
|
|
10
13
|
The adapter runs `oxlint <args> . --format sarif`, parses the SARIF regions, and
|
|
11
|
-
returns `Finding[]` with paths relative to the working directory. The CLI
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
returns `Finding[]` with paths relative to the working directory. The CLI makes
|
|
15
|
+
them repository-relative and keeps only findings whose range intersects a changed
|
|
16
|
+
line.
|
|
14
17
|
|
|
15
18
|
`parse` and `collect` are exported for programmatic use. `--input report.sarif`
|
|
16
19
|
reads an existing report without spawning oxlint.
|
|
17
20
|
|
|
21
|
+
See the [lint guide](https://github.com/aprilandjan/diff-cov/blob/main/docs/lint.md).
|
|
22
|
+
|
|
18
23
|
MIT licensed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diff-cov/oxlint",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Oxlint adapter for diff-scoped lint checks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"node": ">=20"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@diff-cov/core": "0.3.
|
|
42
|
+
"@diff-cov/core": "0.3.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"tsup": "^9.0.0",
|