Skip to content

Commit

Permalink
(backport) fix(eslint): allow typescript-eslint v8 (#70090)
Browse files Browse the repository at this point in the history
# What
Backported [fix(eslint): allow typescript-eslint
v8 #68807](#68807)

# Why
Unblocks upgrading eslint-config-next for projects already on
typescript-eslint v8
  • Loading branch information
alvarlagerlof committed Sep 13, 2024
1 parent 0b907c7 commit 77910c8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 21 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-config-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"dependencies": {
"@next/eslint-plugin-next": "14.2.11",
"@rushstack/eslint-patch": "^1.3.3",
"@typescript-eslint/eslint-plugin": "^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0",
"@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0",
"@typescript-eslint/eslint-plugin": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0",
"@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.28.1",
Expand Down
25 changes: 14 additions & 11 deletions pnpm-lock.yaml

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

Original file line number Diff line number Diff line change
Expand Up @@ -299,22 +299,19 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = `
"@typescript-eslint/ban-ts-comment": [
"error",
],
"@typescript-eslint/ban-types": [
"error",
],
"@typescript-eslint/no-array-constructor": [
"error",
],
"@typescript-eslint/no-duplicate-enum-values": [
"error",
],
"@typescript-eslint/no-explicit-any": [
"@typescript-eslint/no-empty-object-type": [
"error",
],
"@typescript-eslint/no-extra-non-null-assertion": [
"@typescript-eslint/no-explicit-any": [
"error",
],
"@typescript-eslint/no-loss-of-precision": [
"@typescript-eslint/no-extra-non-null-assertion": [
"error",
],
"@typescript-eslint/no-misused-new": [
Expand All @@ -326,6 +323,9 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = `
"@typescript-eslint/no-non-null-asserted-optional-chain": [
"error",
],
"@typescript-eslint/no-require-imports": [
"error",
],
"@typescript-eslint/no-this-alias": [
"error",
],
Expand All @@ -335,15 +335,24 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = `
"@typescript-eslint/no-unsafe-declaration-merging": [
"error",
],
"@typescript-eslint/no-unsafe-function-type": [
"error",
],
"@typescript-eslint/no-unused-expressions": [
"error",
],
"@typescript-eslint/no-unused-vars": [
"error",
],
"@typescript-eslint/no-var-requires": [
"@typescript-eslint/no-wrapper-object-types": [
"error",
],
"@typescript-eslint/prefer-as-const": [
"error",
],
"@typescript-eslint/prefer-namespace-keyword": [
"error",
],
"@typescript-eslint/triple-slash-reference": [
"error",
],
Expand Down Expand Up @@ -403,7 +412,7 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = `
"no-import-assign": [
"off",
],
"no-loss-of-precision": [
"no-new-native-nonconstructor": [
"off",
],
"no-new-symbol": [
Expand All @@ -430,6 +439,9 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = `
"no-unsafe-negation": [
"off",
],
"no-unused-expressions": [
"off",
],
"no-unused-vars": [
"off",
],
Expand Down

0 comments on commit 77910c8

Please sign in to comment.