Skip to content

Commit

Permalink
feat: bump typescript-eslint to 7.7.0 (#1465)
Browse files Browse the repository at this point in the history
## 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!
  • Loading branch information
JoshuaKGoldberg committed Apr 15, 2024
1 parent 46bdcc4 commit 1ebd471
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 110 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ module.exports = {
"error",
{ ignorePrimitives: true },
],
"@typescript-eslint/restrict-template-expressions": [
"error",
{ allowBoolean: true, allowNullish: true, allowNumber: true },
],
},
},
{
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.10.4",
"@types/parse-author": "^2.0.3",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"@vitest/coverage-v8": "^1.0.2",
"c8": "^9.0.0",
"console-fail-test": "^0.2.3",
Expand Down
154 changes: 46 additions & 108 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions script/__snapshots__/migrate-test-e2e.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ exports[`expected file changes > .eslintrc.cjs 1`] = `
- "@typescript-eslint/prefer-nullish-coalescing": [
- "error",
- { ignorePrimitives: true },
- ],
- "@typescript-eslint/restrict-template-expressions": [
- "error",
- { allowBoolean: true, allowNullish: true, allowNumber: true },
- ],
},
},
Expand Down

0 comments on commit 1ebd471

Please sign in to comment.