Skip to content

Commit 1ebd471

Browse files
feat: bump typescript-eslint to 7.7.0 (#1465)
## PR Checklist - [x] Addresses an existing open issue: in preparation of #1211 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Bumps `@typescript-eslint/*` to `^7.7.0` to bring in changes to `restrict-template-expressions` before I enable the new `allowDefaultProjectForFiles`. Apparently also dedupes some related packages, which is nice!
1 parent 46bdcc4 commit 1ebd471

File tree

4 files changed

+56
-110
lines changed

4 files changed

+56
-110
lines changed

.eslintrc.cjs

+4
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ module.exports = {
8989
"error",
9090
{ ignorePrimitives: true },
9191
],
92+
"@typescript-eslint/restrict-template-expressions": [
93+
"error",
94+
{ allowBoolean: true, allowNullish: true, allowNumber: true },
95+
],
9296
},
9397
},
9498
{

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
"@types/js-yaml": "^4.0.9",
6565
"@types/node": "^20.10.4",
6666
"@types/parse-author": "^2.0.3",
67-
"@typescript-eslint/eslint-plugin": "^7.2.0",
68-
"@typescript-eslint/parser": "^7.2.0",
67+
"@typescript-eslint/eslint-plugin": "^7.7.0",
68+
"@typescript-eslint/parser": "^7.7.0",
6969
"@vitest/coverage-v8": "^1.0.2",
7070
"c8": "^9.0.0",
7171
"console-fail-test": "^0.2.3",

pnpm-lock.yaml

+46-108
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

script/__snapshots__/migrate-test-e2e.js.snap

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ exports[`expected file changes > .eslintrc.cjs 1`] = `
4141
- "@typescript-eslint/prefer-nullish-coalescing": [
4242
- "error",
4343
- { ignorePrimitives: true },
44+
- ],
45+
- "@typescript-eslint/restrict-template-expressions": [
46+
- "error",
47+
- { allowBoolean: true, allowNullish: true, allowNumber: true },
4448
- ],
4549
},
4650
},

0 commit comments

Comments
 (0)