diff --git a/packages/eslint-plugin/tests/rules/no-unnecessary-type-parameters.test.ts b/packages/eslint-plugin/tests/rules/no-unnecessary-type-parameters.test.ts index 9a636116cc37..cba7279691f3 100644 --- a/packages/eslint-plugin/tests/rules/no-unnecessary-type-parameters.test.ts +++ b/packages/eslint-plugin/tests/rules/no-unnecessary-type-parameters.test.ts @@ -1738,7 +1738,7 @@ class Joiner { return els.map(el => '' + el).join(','); } } - `, + `, }, ], }, diff --git a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/eslint.config.js b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/eslint.config.js index f64ea6686bab..de1165286a7c 100644 --- a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/eslint.config.js +++ b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/eslint.config.js @@ -52,7 +52,6 @@ function _otherCases() { jestPlugin.configs['flat/recommended'], ); tseslint.config( - // @ts-expect-error compat.config(deprecationPlugin.configs.recommended), ...compat.config(jestPlugin.configs.recommended), ); diff --git a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/package.json b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/package.json index c62dcfb245c6..36b3ca74a7fd 100644 --- a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/package.json +++ b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/package.json @@ -1,7 +1,6 @@ { "type": "module", "devDependencies": { - "@types/eslint__eslintrc": "latest", "@eslint/eslintrc": "latest", "@eslint/js": "latest", "@types/eslint": "^8", diff --git a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/eslint.config.js b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/eslint.config.js index f64ea6686bab..de1165286a7c 100644 --- a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/eslint.config.js +++ b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/eslint.config.js @@ -52,7 +52,6 @@ function _otherCases() { jestPlugin.configs['flat/recommended'], ); tseslint.config( - // @ts-expect-error compat.config(deprecationPlugin.configs.recommended), ...compat.config(jestPlugin.configs.recommended), ); diff --git a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/package.json b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/package.json index 5ddeae9de134..517496e985ec 100644 --- a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/package.json +++ b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/package.json @@ -1,7 +1,6 @@ { "type": "module", "devDependencies": { - "@types/eslint__eslintrc": "latest", "@eslint/eslintrc": "latest", "@eslint/js": "latest", "@types/eslint": "^9", diff --git a/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v8.test.ts.snap b/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v8.test.ts.snap index 36e06c03f5b7..d4869dfcbd44 100644 --- a/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v8.test.ts.snap +++ b/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v8.test.ts.snap @@ -3,7 +3,7 @@ exports[`flat-config-types-@types__eslint-v8 eslint should work successfully 1`] = ` [ { - "errorCount": 3, + "errorCount": 2, "fatalErrorCount": 0, "filePath": "/eslint.config.js", "fixableErrorCount": 0, @@ -23,19 +23,8 @@ exports[`flat-config-types-@types__eslint-v8 eslint should work successfully 1`] { "column": 5, "endColumn": 24, - "endLine": 55, - "line": 55, - "message": "Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 3 characters or longer.", - "messageId": "tsDirectiveCommentRequiresDescription", - "nodeType": "Line", - "ruleId": "@typescript-eslint/ban-ts-comment", - "severity": 2, - }, - { - "column": 5, - "endColumn": 24, - "endLine": 60, - "line": 60, + "endLine": 59, + "line": 59, "message": "Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 3 characters or longer.", "messageId": "tsDirectiveCommentRequiresDescription", "nodeType": "Line", @@ -97,7 +86,6 @@ function _otherCases() { jestPlugin.configs['flat/recommended'], ) tseslint.config( - // @ts-expect-error compat.config(deprecationPlugin.configs.recommended), ...compat.config(jestPlugin.configs.recommended), ) diff --git a/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v9.test.ts.snap b/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v9.test.ts.snap index 71d9e1566677..57bc1348f075 100644 --- a/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v9.test.ts.snap +++ b/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v9.test.ts.snap @@ -3,7 +3,7 @@ exports[`flat-config-types-@types__eslint-v9 eslint should work successfully 1`] = ` [ { - "errorCount": 3, + "errorCount": 2, "fatalErrorCount": 0, "filePath": "/eslint.config.js", "fixableErrorCount": 0, @@ -23,19 +23,8 @@ exports[`flat-config-types-@types__eslint-v9 eslint should work successfully 1`] { "column": 5, "endColumn": 24, - "endLine": 55, - "line": 55, - "message": "Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 3 characters or longer.", - "messageId": "tsDirectiveCommentRequiresDescription", - "nodeType": "Line", - "ruleId": "@typescript-eslint/ban-ts-comment", - "severity": 2, - }, - { - "column": 5, - "endColumn": 24, - "endLine": 60, - "line": 60, + "endLine": 59, + "line": 59, "message": "Include a description after the "@ts-expect-error" directive to explain why the @ts-expect-error is necessary. The description must be 3 characters or longer.", "messageId": "tsDirectiveCommentRequiresDescription", "nodeType": "Line", @@ -97,7 +86,6 @@ function _otherCases() { jestPlugin.configs['flat/recommended'], ) tseslint.config( - // @ts-expect-error compat.config(deprecationPlugin.configs.recommended), ...compat.config(jestPlugin.configs.recommended), )