@diff-cov/eslint 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 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
# @diff-cov/eslint
|
|
2
2
|
|
|
3
|
-
ESLint adapter for [
|
|
3
|
+
ESLint 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 `eslint` binary.
|
|
4
7
|
|
|
5
8
|
```bash
|
|
6
|
-
pnpm add -D @diff-cov/cli
|
|
9
|
+
pnpm add -D @diff-cov/cli eslint
|
|
7
10
|
pnpm exec diff-cov eslint --base stable --fail-on error
|
|
8
11
|
```
|
|
9
12
|
|
|
10
|
-
The adapter runs `eslint <args> . --format json`, parses the messages, and
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
intersects a changed line.
|
|
13
|
+
The adapter runs `eslint <args> . --format json`, parses the messages, and returns
|
|
14
|
+
`Finding[]` with paths relative to the working directory. The CLI makes them
|
|
15
|
+
repository-relative and keeps only findings whose range intersects a changed line.
|
|
14
16
|
|
|
15
17
|
`parse` and `collect` are exported for programmatic use. `--input report.json`
|
|
16
18
|
reads an existing report without spawning ESLint. Plugins such as
|
|
17
19
|
`eslint-plugin-boundaries` are covered automatically because their diagnostics
|
|
18
20
|
travel through ESLint's JSON output.
|
|
19
21
|
|
|
22
|
+
See the [lint guide](https://github.com/aprilandjan/diff-cov/blob/main/docs/lint.md).
|
|
23
|
+
|
|
20
24
|
MIT licensed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diff-cov/eslint",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "ESLint 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",
|