@book000/eslint-config 1.17.3 → 1.17.4

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.
@@ -0,0 +1,70 @@
1
+ # Verify the supported ESLint peer range: the minimum and the latest 10.x.
2
+
3
+ name: Peer range
4
+
5
+ on:
6
+ push:
7
+ branches:
8
+ - main
9
+ - master
10
+ pull_request:
11
+ branches:
12
+ - main
13
+ - master
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ concurrency:
19
+ group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
20
+ cancel-in-progress: true
21
+
22
+ jobs:
23
+ peer-range:
24
+ name: ESLint ${{ matrix.eslint }}
25
+ runs-on: ubuntu-latest
26
+
27
+ strategy:
28
+ fail-fast: false
29
+ matrix:
30
+ # Keep the minimum in sync with peerDependencies.eslint in package.json
31
+ eslint:
32
+ - 10.4.0
33
+ - ^10
34
+
35
+ steps:
36
+ - name: Checkout
37
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
38
+ with:
39
+ persist-credentials: false
40
+
41
+ - name: Setup pnpm
42
+ uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
43
+ with:
44
+ run_install: false
45
+
46
+ - name: Setup node
47
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
48
+ with:
49
+ node-version-file: .node-version
50
+ cache: pnpm
51
+
52
+ - name: Install dependencies
53
+ run: pnpm install --frozen-lockfile
54
+
55
+ - name: Override the ESLint dev pin (CI workspace only)
56
+ env:
57
+ ESLINT_SPEC: ${{ matrix.eslint }}
58
+ run: pnpm add --save-dev --workspace-root "eslint@$ESLINT_SPEC"
59
+
60
+ - name: Test
61
+ run: pnpm test
62
+
63
+ - name: Consumer install check
64
+ env:
65
+ ESLINT_SPEC: ${{ matrix.eslint }}
66
+ run: |
67
+ tarball="$(npm pack --pack-destination "$RUNNER_TEMP" --silent)"
68
+ mkdir "$RUNNER_TEMP/consumer"
69
+ cd "$RUNNER_TEMP/consumer"
70
+ npm install --dry-run --ignore-scripts --no-audit --no-fund "eslint@$ESLINT_SPEC" "$RUNNER_TEMP/$tarball"
package/AGENTS.md CHANGED
@@ -18,6 +18,7 @@
18
18
  - Do not push commits to Renovate PRs.
19
19
  - Do not work around TypeScript errors with `skipLibCheck`.
20
20
  - Never commit secrets.
21
+ - The `eslint` peer dependency is a range, `^10.4.0`, whose minimum is bounded by the tightest peer requirement of the direct dependencies (currently `eslint-plugin-unicorn`); `devDependencies.eslint` is an exact pin that Renovate updates and must stay inside that range; raising the minimum is a breaking change, and the `Peer range` workflow verifies the minimum and the latest 10.x.
21
22
 
22
23
  ## Commands
23
24
 
package/README.md CHANGED
@@ -4,6 +4,8 @@ ESLint config for [Tomachi (book000)](https://github.com/book000)
4
4
 
5
5
  ## 🚀 Install
6
6
 
7
+ Supported ESLint versions: `^10.4.0` (10.4.0 or later, below 11).
8
+
7
9
  If you are using npm:
8
10
 
9
11
  ```shell
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@book000/eslint-config",
3
- "version": "1.17.3",
3
+ "version": "1.17.4",
4
4
  "description": "ESLint config",
5
5
  "keywords": [
6
6
  "eslint-config"
@@ -24,9 +24,12 @@
24
24
  "neostandard": "0.14.1",
25
25
  "typescript-eslint": "8.73.0"
26
26
  },
27
- "peerDependencies": {
27
+ "devDependencies": {
28
28
  "eslint": "10.15.0"
29
29
  },
30
+ "peerDependencies": {
31
+ "eslint": "^10.4.0"
32
+ },
30
33
  "scripts": {
31
34
  "test": "node --experimental-vm-modules test.mjs"
32
35
  }