Unverified Commit 77910c84 authored by Alvar Lagerlöf's avatar Alvar Lagerlöf Committed by GitHub

(backport) fix(eslint): allow typescript-eslint v8 (#70090)

# What
Backported [fix(eslint): allow typescript-eslint
v8 #68807](https://github.com/vercel/next.js/pull/68807)

# Why
Unblocks upgrading eslint-config-next for projects already on
typescript-eslint v8
parent 0b907c71
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
"dependencies": { "dependencies": {
"@next/eslint-plugin-next": "14.2.11", "@next/eslint-plugin-next": "14.2.11",
"@rushstack/eslint-patch": "^1.3.3", "@rushstack/eslint-patch": "^1.3.3",
"@typescript-eslint/eslint-plugin": "^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 - 7.2.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-node": "^0.3.6",
"eslint-import-resolver-typescript": "^3.5.2", "eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.28.1", "eslint-plugin-import": "^2.28.1",
......
...@@ -750,10 +750,10 @@ importers: ...@@ -750,10 +750,10 @@ importers:
specifier: ^1.3.3 specifier: ^1.3.3
version: 1.3.3 version: 1.3.3
'@typescript-eslint/eslint-plugin': '@typescript-eslint/eslint-plugin':
specifier: ^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0 specifier: ^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0
version: 6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.31.0)(typescript@4.8.2) version: 6.14.0(@typescript-eslint/parser@6.14.0)(eslint@8.31.0)(typescript@4.8.2)
'@typescript-eslint/parser': '@typescript-eslint/parser':
specifier: ^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0 specifier: ^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0
version: 6.14.0(eslint@8.31.0)(typescript@4.8.2) version: 6.14.0(eslint@8.31.0)(typescript@4.8.2)
eslint: eslint:
specifier: ^7.23.0 || ^8.0.0 specifier: ^7.23.0 || ^8.0.0
...@@ -3696,11 +3696,11 @@ packages: ...@@ -3696,11 +3696,11 @@ packages:
/@eslint-community/regexpp@4.10.0: /@eslint-community/regexpp@4.10.0:
resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==} resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==}
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
dev: true
/@eslint-community/regexpp@4.5.1: /@eslint-community/regexpp@4.5.1:
resolution: {integrity: sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==} resolution: {integrity: sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==}
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
dev: true
/@eslint/eslintrc@0.4.3: /@eslint/eslintrc@0.4.3:
resolution: {integrity: sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==} resolution: {integrity: sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==}
...@@ -7240,7 +7240,7 @@ packages: ...@@ -7240,7 +7240,7 @@ packages:
typescript: typescript:
optional: true optional: true
dependencies: dependencies:
'@eslint-community/regexpp': 4.5.1 '@eslint-community/regexpp': 4.10.0
'@typescript-eslint/parser': 6.14.0(eslint@8.31.0)(typescript@4.8.2) '@typescript-eslint/parser': 6.14.0(eslint@8.31.0)(typescript@4.8.2)
'@typescript-eslint/scope-manager': 6.14.0 '@typescript-eslint/scope-manager': 6.14.0
'@typescript-eslint/type-utils': 6.14.0(eslint@8.31.0)(typescript@4.8.2) '@typescript-eslint/type-utils': 6.14.0(eslint@8.31.0)(typescript@4.8.2)
...@@ -7251,7 +7251,7 @@ packages: ...@@ -7251,7 +7251,7 @@ packages:
graphemer: 1.4.0 graphemer: 1.4.0
ignore: 5.2.4 ignore: 5.2.4
natural-compare: 1.4.0 natural-compare: 1.4.0
semver: 7.5.4 semver: 7.6.2
ts-api-utils: 1.0.1(typescript@4.8.2) ts-api-utils: 1.0.1(typescript@4.8.2)
typescript: 4.8.2 typescript: 4.8.2
transitivePeerDependencies: transitivePeerDependencies:
...@@ -7428,7 +7428,7 @@ packages: ...@@ -7428,7 +7428,7 @@ packages:
debug: 4.3.4 debug: 4.3.4
globby: 11.1.0 globby: 11.1.0
is-glob: 4.0.3 is-glob: 4.0.3
semver: 7.5.4 semver: 7.6.2
ts-api-utils: 1.0.1(typescript@4.8.2) ts-api-utils: 1.0.1(typescript@4.8.2)
typescript: 4.8.2 typescript: 4.8.2
transitivePeerDependencies: transitivePeerDependencies:
...@@ -7449,7 +7449,7 @@ packages: ...@@ -7449,7 +7449,7 @@ packages:
debug: 4.3.4 debug: 4.3.4
globby: 11.1.0 globby: 11.1.0
is-glob: 4.0.3 is-glob: 4.0.3
semver: 7.5.4 semver: 7.6.2
ts-api-utils: 1.0.1(typescript@5.2.2) ts-api-utils: 1.0.1(typescript@5.2.2)
typescript: 5.2.2 typescript: 5.2.2
transitivePeerDependencies: transitivePeerDependencies:
...@@ -12099,7 +12099,7 @@ packages: ...@@ -12099,7 +12099,7 @@ packages:
dependencies: dependencies:
acorn: 8.11.3 acorn: 8.11.3
acorn-jsx: 5.3.2(acorn@8.11.3) acorn-jsx: 5.3.2(acorn@8.11.3)
eslint-visitor-keys: 3.4.1 eslint-visitor-keys: 3.4.3
dev: false dev: false
/espree@9.6.1: /espree@9.6.1:
...@@ -14320,7 +14320,7 @@ packages: ...@@ -14320,7 +14320,7 @@ packages:
run-async: 2.4.1 run-async: 2.4.1
rxjs: 7.8.1 rxjs: 7.8.1
string-width: 4.2.3 string-width: 4.2.3
strip-ansi: 6.0.1 strip-ansi: 6.0.0
through: 2.3.8 through: 2.3.8
dev: true dev: true
...@@ -15080,7 +15080,7 @@ packages: ...@@ -15080,7 +15080,7 @@ packages:
'@babel/parser': 7.22.5 '@babel/parser': 7.22.5
'@istanbuljs/schema': 0.1.2 '@istanbuljs/schema': 0.1.2
istanbul-lib-coverage: 3.2.0 istanbul-lib-coverage: 3.2.0
semver: 7.5.4 semver: 7.6.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
...@@ -15795,7 +15795,7 @@ packages: ...@@ -15795,7 +15795,7 @@ packages:
jest-util: 29.7.0 jest-util: 29.7.0
natural-compare: 1.4.0 natural-compare: 1.4.0
pretty-format: 29.7.0 pretty-format: 29.7.0
semver: 7.5.4 semver: 7.6.2
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
...@@ -16854,6 +16854,7 @@ packages: ...@@ -16854,6 +16854,7 @@ packages:
engines: {node: '>=10'} engines: {node: '>=10'}
dependencies: dependencies:
yallist: 4.0.0 yallist: 4.0.0
dev: true
/lru-cache@7.18.3: /lru-cache@7.18.3:
resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==} resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==}
...@@ -22359,6 +22360,7 @@ packages: ...@@ -22359,6 +22360,7 @@ packages:
hasBin: true hasBin: true
dependencies: dependencies:
lru-cache: 6.0.0 lru-cache: 6.0.0
dev: true
/semver@7.6.2: /semver@7.6.2:
resolution: {integrity: sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==} resolution: {integrity: sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==}
...@@ -25446,6 +25448,7 @@ packages: ...@@ -25446,6 +25448,7 @@ packages:
/yallist@4.0.0: /yallist@4.0.0:
resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
dev: true
/yaml@1.10.2: /yaml@1.10.2:
resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==}
......
...@@ -299,22 +299,19 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = ` ...@@ -299,22 +299,19 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = `
"@typescript-eslint/ban-ts-comment": [ "@typescript-eslint/ban-ts-comment": [
"error", "error",
], ],
"@typescript-eslint/ban-types": [
"error",
],
"@typescript-eslint/no-array-constructor": [ "@typescript-eslint/no-array-constructor": [
"error", "error",
], ],
"@typescript-eslint/no-duplicate-enum-values": [ "@typescript-eslint/no-duplicate-enum-values": [
"error", "error",
], ],
"@typescript-eslint/no-explicit-any": [ "@typescript-eslint/no-empty-object-type": [
"error", "error",
], ],
"@typescript-eslint/no-extra-non-null-assertion": [ "@typescript-eslint/no-explicit-any": [
"error", "error",
], ],
"@typescript-eslint/no-loss-of-precision": [ "@typescript-eslint/no-extra-non-null-assertion": [
"error", "error",
], ],
"@typescript-eslint/no-misused-new": [ "@typescript-eslint/no-misused-new": [
...@@ -326,6 +323,9 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = ` ...@@ -326,6 +323,9 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = `
"@typescript-eslint/no-non-null-asserted-optional-chain": [ "@typescript-eslint/no-non-null-asserted-optional-chain": [
"error", "error",
], ],
"@typescript-eslint/no-require-imports": [
"error",
],
"@typescript-eslint/no-this-alias": [ "@typescript-eslint/no-this-alias": [
"error", "error",
], ],
...@@ -335,15 +335,24 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = ` ...@@ -335,15 +335,24 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = `
"@typescript-eslint/no-unsafe-declaration-merging": [ "@typescript-eslint/no-unsafe-declaration-merging": [
"error", "error",
], ],
"@typescript-eslint/no-unsafe-function-type": [
"error",
],
"@typescript-eslint/no-unused-expressions": [
"error",
],
"@typescript-eslint/no-unused-vars": [ "@typescript-eslint/no-unused-vars": [
"error", "error",
], ],
"@typescript-eslint/no-var-requires": [ "@typescript-eslint/no-wrapper-object-types": [
"error", "error",
], ],
"@typescript-eslint/prefer-as-const": [ "@typescript-eslint/prefer-as-const": [
"error", "error",
], ],
"@typescript-eslint/prefer-namespace-keyword": [
"error",
],
"@typescript-eslint/triple-slash-reference": [ "@typescript-eslint/triple-slash-reference": [
"error", "error",
], ],
...@@ -403,7 +412,7 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = ` ...@@ -403,7 +412,7 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = `
"no-import-assign": [ "no-import-assign": [
"off", "off",
], ],
"no-loss-of-precision": [ "no-new-native-nonconstructor": [
"off", "off",
], ],
"no-new-symbol": [ "no-new-symbol": [
...@@ -430,6 +439,9 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = ` ...@@ -430,6 +439,9 @@ exports[`Next Build production mode first time setup with TypeScript 1`] = `
"no-unsafe-negation": [ "no-unsafe-negation": [
"off", "off",
], ],
"no-unused-expressions": [
"off",
],
"no-unused-vars": [ "no-unused-vars": [
"off", "off",
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment