Unverified Commit e1b8c00d authored by Jiwon Choi's avatar Jiwon Choi Committed by GitHub

[eslint-plugin] Remove `eslint-v8` testing (#84721)

ESLint plugin defaults to flat config, and we also dropped the built-in
lint check at https://github.com/vercel/next.js/pull/83136, so we can
sunset the deprecated ESLint v8 testing.
parent 4614b00f
...@@ -200,7 +200,6 @@ ...@@ -200,7 +200,6 @@
"eslint-plugin-mdx": "3.1.5", "eslint-plugin-mdx": "3.1.5",
"eslint-plugin-react": "7.35.0", "eslint-plugin-react": "7.35.0",
"eslint-plugin-react-hooks": "0.0.0-experimental-3025aa39-20251007", "eslint-plugin-react-hooks": "0.0.0-experimental-3025aa39-20251007",
"eslint-v8": "npm:eslint@^8.57.0",
"event-stream": "4.0.1", "event-stream": "4.0.1",
"execa": "2.0.3", "execa": "2.0.3",
"expect": "29.7.0", "expect": "29.7.0",
......
...@@ -303,9 +303,6 @@ importers: ...@@ -303,9 +303,6 @@ importers:
eslint-plugin-react-hooks: eslint-plugin-react-hooks:
specifier: 0.0.0-experimental-3025aa39-20251007 specifier: 0.0.0-experimental-3025aa39-20251007
version: 0.0.0-experimental-3025aa39-20251007(eslint@9.12.0(jiti@2.5.1)) version: 0.0.0-experimental-3025aa39-20251007(eslint@9.12.0(jiti@2.5.1))
eslint-v8:
specifier: npm:eslint@^8.57.0
version: eslint@8.57.1
event-stream: event-stream:
specifier: 4.0.1 specifier: 4.0.1
version: 4.0.1 version: 4.0.1
...@@ -3358,18 +3355,10 @@ packages: ...@@ -3358,18 +3355,10 @@ packages:
resolution: {integrity: sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==} resolution: {integrity: sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==}
engines: {node: ^10.12.0 || >=12.0.0} engines: {node: ^10.12.0 || >=12.0.0}
'@eslint/eslintrc@2.1.4':
resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
'@eslint/eslintrc@3.3.1': '@eslint/eslintrc@3.3.1':
resolution: {integrity: sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==} resolution: {integrity: sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@eslint/js@8.57.1':
resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
'@eslint/js@9.12.0': '@eslint/js@9.12.0':
resolution: {integrity: sha512-eohesHH8WFRUprDNyEREgqP6beG6htMeUYeCpkEgBCieCMme5r9zFWjzAJp//9S+Kub4rqE+jXe9Cp1a7IYIIA==} resolution: {integrity: sha512-eohesHH8WFRUprDNyEREgqP6beG6htMeUYeCpkEgBCieCMme5r9zFWjzAJp//9S+Kub4rqE+jXe9Cp1a7IYIIA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
...@@ -3590,11 +3579,6 @@ packages: ...@@ -3590,11 +3579,6 @@ packages:
resolution: {integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==} resolution: {integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==}
engines: {node: '>=18.18.0'} engines: {node: '>=18.18.0'}
'@humanwhocodes/config-array@0.13.0':
resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==}
engines: {node: '>=10.10.0'}
deprecated: Use @eslint/config-array instead
'@humanwhocodes/config-array@0.5.0': '@humanwhocodes/config-array@0.5.0':
resolution: {integrity: sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==} resolution: {integrity: sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==}
engines: {node: '>=10.10.0'} engines: {node: '>=10.10.0'}
...@@ -3608,10 +3592,6 @@ packages: ...@@ -3608,10 +3592,6 @@ packages:
resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}
deprecated: Use @eslint/object-schema instead deprecated: Use @eslint/object-schema instead
'@humanwhocodes/object-schema@2.0.3':
resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==}
deprecated: Use @eslint/object-schema instead
'@humanwhocodes/retry@0.3.1': '@humanwhocodes/retry@0.3.1':
resolution: {integrity: sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==} resolution: {integrity: sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==}
engines: {node: '>=18.18'} engines: {node: '>=18.18'}
...@@ -9309,10 +9289,6 @@ packages: ...@@ -9309,10 +9289,6 @@ packages:
resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==}
engines: {node: '>=8.0.0'} engines: {node: '>=8.0.0'}
eslint-scope@7.2.2:
resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
eslint-scope@8.4.0: eslint-scope@8.4.0:
resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==} resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
...@@ -9349,12 +9325,6 @@ packages: ...@@ -9349,12 +9325,6 @@ packages:
deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.
hasBin: true hasBin: true
eslint@8.57.1:
resolution: {integrity: sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.
hasBin: true
eslint@9.12.0: eslint@9.12.0:
resolution: {integrity: sha512-UVIOlTEWxwIopRL1wgSQYdnVDcEvs2wyaO6DGo5mXqe3r16IoCNWkR29iHhyaP4cICWjbgbmFUGAhh0GJRuGZw==} resolution: {integrity: sha512-UVIOlTEWxwIopRL1wgSQYdnVDcEvs2wyaO6DGo5mXqe3r16IoCNWkR29iHhyaP4cICWjbgbmFUGAhh0GJRuGZw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
...@@ -19551,20 +19521,6 @@ snapshots: ...@@ -19551,20 +19521,6 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@eslint/eslintrc@2.1.4':
dependencies:
ajv: 6.12.6
debug: 4.4.0
espree: 9.6.1
globals: 13.24.0
ignore: 5.3.2
import-fresh: 3.3.0
js-yaml: 4.1.0
minimatch: 3.1.2
strip-json-comments: 3.1.1
transitivePeerDependencies:
- supports-color
'@eslint/eslintrc@3.3.1': '@eslint/eslintrc@3.3.1':
dependencies: dependencies:
ajv: 6.12.6 ajv: 6.12.6
...@@ -19579,8 +19535,6 @@ snapshots: ...@@ -19579,8 +19535,6 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
'@eslint/js@8.57.1': {}
'@eslint/js@9.12.0': {} '@eslint/js@9.12.0': {}
'@eslint/js@9.35.0': {} '@eslint/js@9.35.0': {}
...@@ -19851,14 +19805,6 @@ snapshots: ...@@ -19851,14 +19805,6 @@ snapshots:
'@humanfs/core': 0.19.1 '@humanfs/core': 0.19.1
'@humanwhocodes/retry': 0.4.3 '@humanwhocodes/retry': 0.4.3
'@humanwhocodes/config-array@0.13.0':
dependencies:
'@humanwhocodes/object-schema': 2.0.3
debug: 4.4.0
minimatch: 3.1.2
transitivePeerDependencies:
- supports-color
'@humanwhocodes/config-array@0.5.0': '@humanwhocodes/config-array@0.5.0':
dependencies: dependencies:
'@humanwhocodes/object-schema': 1.2.1 '@humanwhocodes/object-schema': 1.2.1
...@@ -19871,8 +19817,6 @@ snapshots: ...@@ -19871,8 +19817,6 @@ snapshots:
'@humanwhocodes/object-schema@1.2.1': {} '@humanwhocodes/object-schema@1.2.1': {}
'@humanwhocodes/object-schema@2.0.3': {}
'@humanwhocodes/retry@0.3.1': {} '@humanwhocodes/retry@0.3.1': {}
'@humanwhocodes/retry@0.4.3': {} '@humanwhocodes/retry@0.4.3': {}
...@@ -27036,11 +26980,6 @@ snapshots: ...@@ -27036,11 +26980,6 @@ snapshots:
esrecurse: 4.3.0 esrecurse: 4.3.0
estraverse: 4.3.0 estraverse: 4.3.0
eslint-scope@7.2.2:
dependencies:
esrecurse: 4.3.0
estraverse: 5.3.0
eslint-scope@8.4.0: eslint-scope@8.4.0:
dependencies: dependencies:
esrecurse: 4.3.0 esrecurse: 4.3.0
...@@ -27108,49 +27047,6 @@ snapshots: ...@@ -27108,49 +27047,6 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
eslint@8.57.1:
dependencies:
'@eslint-community/eslint-utils': 4.4.0(eslint@9.12.0(jiti@2.5.1))
'@eslint-community/regexpp': 4.11.1
'@eslint/eslintrc': 2.1.4
'@eslint/js': 8.57.1
'@humanwhocodes/config-array': 0.13.0
'@humanwhocodes/module-importer': 1.0.1
'@nodelib/fs.walk': 1.2.8
'@ungap/structured-clone': 1.2.0
ajv: 6.12.6
chalk: 4.1.2
cross-spawn: 7.0.3
debug: 4.3.7
doctrine: 3.0.0
escape-string-regexp: 4.0.0
eslint-scope: 7.2.2
eslint-visitor-keys: 3.4.3
espree: 9.6.1
esquery: 1.6.0
esutils: 2.0.3
fast-deep-equal: 3.1.3
file-entry-cache: 6.0.1
find-up: 5.0.0
glob-parent: 6.0.2
globals: 13.24.0
graphemer: 1.4.0
ignore: 5.3.2
imurmurhash: 0.1.4
is-glob: 4.0.3
is-path-inside: 3.0.3
js-yaml: 4.1.0
json-stable-stringify-without-jsonify: 1.0.1
levn: 0.4.1
lodash.merge: 4.6.2
minimatch: 3.1.2
natural-compare: 1.4.0
optionator: 0.9.4
strip-ansi: 6.0.1
text-table: 0.2.0
transitivePeerDependencies:
- supports-color
eslint@9.12.0(jiti@2.5.1): eslint@9.12.0(jiti@2.5.1):
dependencies: dependencies:
'@eslint-community/eslint-utils': 4.9.0(eslint@9.12.0(jiti@2.5.1)) '@eslint-community/eslint-utils': 4.9.0(eslint@9.12.0(jiti@2.5.1))
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['google-font-display'] const NextESLintRule = rules['google-font-display']
...@@ -164,18 +163,7 @@ const tests = { ...@@ -164,18 +163,7 @@ const tests = {
} }
describe('google-font-display', () => { describe('google-font-display', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2020, ecmaVersion: 2020,
sourceType: 'module', sourceType: 'module',
...@@ -186,5 +174,5 @@ describe('google-font-display', () => { ...@@ -186,5 +174,5 @@ describe('google-font-display', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['google-font-preconnect'] const NextESLintRule = rules['google-font-preconnect']
...@@ -59,18 +58,7 @@ const tests = { ...@@ -59,18 +58,7 @@ const tests = {
} }
describe('google-font-preconnect', () => { describe('google-font-preconnect', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2020, ecmaVersion: 2020,
sourceType: 'module', sourceType: 'module',
...@@ -81,5 +69,5 @@ describe('google-font-preconnect', () => { ...@@ -81,5 +69,5 @@ describe('google-font-preconnect', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['inline-script-id'] const NextESLintRule = rules['inline-script-id']
...@@ -179,18 +178,7 @@ const tests = { ...@@ -179,18 +178,7 @@ const tests = {
} }
describe('inline-script-id', () => { describe('inline-script-id', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -201,5 +189,5 @@ describe('inline-script-id', () => { ...@@ -201,5 +189,5 @@ describe('inline-script-id', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['next-script-for-ga'] const NextESLintRule = rules['next-script-for-ga']
...@@ -232,18 +231,7 @@ const tests = { ...@@ -232,18 +231,7 @@ const tests = {
} }
describe('next-script-for-ga', () => { describe('next-script-for-ga', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -254,5 +242,5 @@ describe('next-script-for-ga', () => { ...@@ -254,5 +242,5 @@ describe('next-script-for-ga', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-assign-module-variable'] const NextESLintRule = rules['no-assign-module-variable']
...@@ -34,18 +33,7 @@ const tests = { ...@@ -34,18 +33,7 @@ const tests = {
} }
describe('no-assign-module-variable', () => { describe('no-assign-module-variable', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -56,5 +44,5 @@ describe('no-assign-module-variable', () => { ...@@ -56,5 +44,5 @@ describe('no-assign-module-variable', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-async-client-component'] const NextESLintRule = rules['no-async-client-component']
...@@ -118,18 +117,7 @@ const tests = { ...@@ -118,18 +117,7 @@ const tests = {
} }
describe('no-async-client-component', () => { describe('no-async-client-component', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -140,5 +128,5 @@ describe('no-async-client-component', () => { ...@@ -140,5 +128,5 @@ describe('no-async-client-component', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-before-interactive-script-outside-document'] const NextESLintRule = rules['no-before-interactive-script-outside-document']
...@@ -281,18 +280,7 @@ const tests = { ...@@ -281,18 +280,7 @@ const tests = {
} }
describe('no-before-interactive-script-outside-document', () => { describe('no-before-interactive-script-outside-document', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -303,5 +291,5 @@ describe('no-before-interactive-script-outside-document', () => { ...@@ -303,5 +291,5 @@ describe('no-before-interactive-script-outside-document', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-css-tags'] const NextESLintRule = rules['no-css-tags']
...@@ -96,18 +95,7 @@ const tests = { ...@@ -96,18 +95,7 @@ const tests = {
} }
describe('no-css-tags', () => { describe('no-css-tags', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -118,5 +106,5 @@ describe('no-css-tags', () => { ...@@ -118,5 +106,5 @@ describe('no-css-tags', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-document-import-in-page'] const NextESLintRule = rules['no-document-import-in-page']
...@@ -110,18 +109,7 @@ const tests = { ...@@ -110,18 +109,7 @@ const tests = {
} }
describe('no-document-import-in-page', () => { describe('no-document-import-in-page', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -132,5 +120,5 @@ describe('no-document-import-in-page', () => { ...@@ -132,5 +120,5 @@ describe('no-document-import-in-page', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-duplicate-head'] const NextESLintRule = rules['no-duplicate-head']
...@@ -132,18 +131,7 @@ const tests = { ...@@ -132,18 +131,7 @@ const tests = {
} }
describe('no-duplicate-head', () => { describe('no-duplicate-head', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -154,5 +142,5 @@ describe('no-duplicate-head', () => { ...@@ -154,5 +142,5 @@ describe('no-duplicate-head', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-head-element'] const NextESLintRule = rules['no-head-element']
...@@ -110,18 +109,7 @@ const tests = { ...@@ -110,18 +109,7 @@ const tests = {
} }
describe('no-head-element', () => { describe('no-head-element', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -132,5 +120,5 @@ describe('no-head-element', () => { ...@@ -132,5 +120,5 @@ describe('no-head-element', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-head-import-in-document'] const NextESLintRule = rules['no-head-import-in-document']
...@@ -168,18 +167,7 @@ const tests = { ...@@ -168,18 +167,7 @@ const tests = {
} }
describe('no-head-import-in-document', () => { describe('no-head-import-in-document', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -190,5 +178,5 @@ describe('no-head-import-in-document', () => { ...@@ -190,5 +178,5 @@ describe('no-head-import-in-document', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-img-element'] const NextESLintRule = rules['no-img-element']
...@@ -156,18 +155,7 @@ return new ImageResponse( ...@@ -156,18 +155,7 @@ return new ImageResponse(
} }
describe('no-img-element', () => { describe('no-img-element', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -178,5 +166,5 @@ describe('no-img-element', () => { ...@@ -178,5 +166,5 @@ describe('no-img-element', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-page-custom-font'] const NextESLintRule = rules['no-page-custom-font']
...@@ -192,18 +191,7 @@ const tests = { ...@@ -192,18 +191,7 @@ const tests = {
} }
describe('no-page-custom-font', () => { describe('no-page-custom-font', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -214,5 +202,5 @@ describe('no-page-custom-font', () => { ...@@ -214,5 +202,5 @@ describe('no-page-custom-font', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-script-component-in-head'] const NextESLintRule = rules['no-script-component-in-head']
...@@ -42,18 +41,7 @@ const tests = { ...@@ -42,18 +41,7 @@ const tests = {
} }
describe('no-script-component-in-head', () => { describe('no-script-component-in-head', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -64,5 +52,5 @@ describe('no-script-component-in-head', () => { ...@@ -64,5 +52,5 @@ describe('no-script-component-in-head', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-styled-jsx-in-document'] const NextESLintRule = rules['no-styled-jsx-in-document']
...@@ -116,18 +115,7 @@ const tests = { ...@@ -116,18 +115,7 @@ const tests = {
} }
describe('no-styled-jsx-in-document', () => { describe('no-styled-jsx-in-document', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -138,5 +126,5 @@ describe('no-styled-jsx-in-document', () => { ...@@ -138,5 +126,5 @@ describe('no-styled-jsx-in-document', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-sync-scripts'] const NextESLintRule = rules['no-sync-scripts']
...@@ -72,18 +71,7 @@ const tests = { ...@@ -72,18 +71,7 @@ const tests = {
} }
describe('no-sync-scripts', () => { describe('no-sync-scripts', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -94,5 +82,5 @@ describe('no-sync-scripts', () => { ...@@ -94,5 +82,5 @@ describe('no-sync-scripts', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-title-in-document-head'] const NextESLintRule = rules['no-title-in-document-head']
...@@ -61,18 +60,7 @@ const tests = { ...@@ -61,18 +60,7 @@ const tests = {
} }
describe('no-title-in-document-head', () => { describe('no-title-in-document-head', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -83,5 +71,5 @@ describe('no-title-in-document-head', () => { ...@@ -83,5 +71,5 @@ describe('no-title-in-document-head', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-typos'] const NextESLintRule = rules['no-typos']
...@@ -121,18 +120,7 @@ const tests = { ...@@ -121,18 +120,7 @@ const tests = {
} }
describe('no-typos', () => { describe('no-typos', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -143,5 +131,5 @@ describe('no-typos', () => { ...@@ -143,5 +131,5 @@ describe('no-typos', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
import { RuleTester as ESLintTesterV8 } from 'eslint-v8' import { RuleTester } from 'eslint'
import { RuleTester as ESLintTesterV9 } from 'eslint'
import { rules } from '@next/eslint-plugin-next' import { rules } from '@next/eslint-plugin-next'
const NextESLintRule = rules['no-unwanted-polyfillio'] const NextESLintRule = rules['no-unwanted-polyfillio']
...@@ -137,18 +136,7 @@ const tests = { ...@@ -137,18 +136,7 @@ const tests = {
} }
describe('no-unwanted-polyfillio', () => { describe('no-unwanted-polyfillio', () => {
new ESLintTesterV8({ new RuleTester({
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
modules: true,
jsx: true,
},
},
}).run('eslint-v8', NextESLintRule, tests)
new ESLintTesterV9({
languageOptions: { languageOptions: {
ecmaVersion: 2018, ecmaVersion: 2018,
sourceType: 'module', sourceType: 'module',
...@@ -159,5 +147,5 @@ describe('no-unwanted-polyfillio', () => { ...@@ -159,5 +147,5 @@ describe('no-unwanted-polyfillio', () => {
}, },
}, },
}, },
}).run('eslint-v9', NextESLintRule, tests) }).run('eslint', NextESLintRule, tests)
}) })
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