@eslint-config-snapshot/cli 0.1.0 → 0.1.5
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/CHANGELOG.md +41 -0
- package/README.md +59 -0
- package/package.json +10 -2
- package/project.json +2 -2
- package/src/index.ts +467 -467
- package/test/cli.integration.test.ts +167 -167
- package/test/cli.npm-isolated.integration.test.ts +76 -76
- package/test/cli.pnpm-isolated.integration.test.ts +49 -49
- package/test/cli.terminal.integration.test.ts +197 -197
- package/test/fixtures/npm-isolated-template/package.json +7 -7
- package/test/fixtures/npm-isolated-template/packages/ws-a/.eslintrc.cjs +1 -1
- package/test/fixtures/npm-isolated-template/packages/ws-a/src/index.ts +1 -1
- package/test/fixtures/npm-isolated-template/packages/ws-b/.eslintrc.cjs +1 -1
- package/test/fixtures/npm-isolated-template/packages/ws-b/src/index.ts +1 -1
- package/test/fixtures/repo/eslint-config-snapshot.config.mjs +1 -1
- package/test/fixtures/repo/package.json +1 -1
- package/test/fixtures/repo/packages/ws-a/package.json +1 -1
- package/test/fixtures/repo/packages/ws-a/src/index.ts +1 -1
- package/test/fixtures/repo/packages/ws-b/package.json +1 -1
- package/test/fixtures/repo/packages/ws-b/src/index.ts +1 -1
- package/tsconfig.json +12 -12
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# @eslint-config-snapshot/cli
|
|
2
|
+
|
|
3
|
+
## 0.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add package-level README files for npm pages with cross-links between CLI and API docs.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @eslint-config-snapshot/api@0.1.5
|
|
10
|
+
|
|
11
|
+
## 0.1.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Fix npm trusted publishing provenance metadata by adding repository/homepage/bugs fields to package manifests.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @eslint-config-snapshot/api@0.1.4
|
|
18
|
+
|
|
19
|
+
## 0.1.3
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Release patch version to validate trusted publishing flow with protected release environment.
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
- @eslint-config-snapshot/api@0.1.3
|
|
26
|
+
|
|
27
|
+
## 0.1.2
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Test release bump to validate automated publish flow with aligned package versions and tag.
|
|
32
|
+
- Updated dependencies
|
|
33
|
+
- @eslint-config-snapshot/api@0.1.2
|
|
34
|
+
|
|
35
|
+
## 0.1.1
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Release patch version for API and CLI packages using the new Changesets workflow.
|
|
40
|
+
- Updated dependencies
|
|
41
|
+
- @eslint-config-snapshot/api@0.1.1
|
package/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# @eslint-config-snapshot/cli
|
|
2
|
+
|
|
3
|
+
Deterministic ESLint config drift checker for workspaces.
|
|
4
|
+
|
|
5
|
+
`@eslint-config-snapshot/cli` snapshots effective ESLint rule state and reports drift after dependency or config changes.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm i -D @eslint-config-snapshot/cli
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or run without install:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx @eslint-config-snapshot/cli@latest --update
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Quick Start
|
|
20
|
+
|
|
21
|
+
Create baseline:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
eslint-config-snapshot --update
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Check drift:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
eslint-config-snapshot
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Commands
|
|
34
|
+
|
|
35
|
+
- `check`
|
|
36
|
+
- `update`
|
|
37
|
+
- `print`
|
|
38
|
+
- `init`
|
|
39
|
+
|
|
40
|
+
Compatibility aliases:
|
|
41
|
+
|
|
42
|
+
- `snapshot` => `update`
|
|
43
|
+
- `compare` => `check --format diff`
|
|
44
|
+
- `status` => `check --format status`
|
|
45
|
+
- `what-changed` => `check --format summary`
|
|
46
|
+
|
|
47
|
+
## Notes
|
|
48
|
+
|
|
49
|
+
- Node.js `>=20` required.
|
|
50
|
+
- If no config is found, built-in defaults are used.
|
|
51
|
+
- Snapshots are stored under `.eslint-config-snapshot/`.
|
|
52
|
+
|
|
53
|
+
## Related Packages
|
|
54
|
+
|
|
55
|
+
- API engine: [`@eslint-config-snapshot/api`](https://www.npmjs.com/package/@eslint-config-snapshot/api)
|
|
56
|
+
|
|
57
|
+
## More Docs
|
|
58
|
+
|
|
59
|
+
- Project overview and full guides: [root README](https://github.com/gabrielmoreira/eslint-config-snapshot#readme)
|
package/package.json
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-config-snapshot/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/gabrielmoreira/eslint-config-snapshot"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/gabrielmoreira/eslint-config-snapshot#readme",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/gabrielmoreira/eslint-config-snapshot/issues"
|
|
12
|
+
},
|
|
5
13
|
"engines": {
|
|
6
14
|
"node": ">=20.0.0"
|
|
7
15
|
},
|
|
@@ -21,6 +29,6 @@
|
|
|
21
29
|
"dependencies": {
|
|
22
30
|
"commander": "^14.0.3",
|
|
23
31
|
"fast-glob": "^3.3.3",
|
|
24
|
-
"@eslint-config-snapshot/api": "0.1.
|
|
32
|
+
"@eslint-config-snapshot/api": "0.1.5"
|
|
25
33
|
}
|
|
26
34
|
}
|
package/project.json
CHANGED