From 27a3b1fb9d5876403424c373dc79744b06f1ca45 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Tue, 5 Mar 2024 10:53:46 -0500 Subject: [PATCH] chore: remove now-empty failing flat-config-types integration test snapshot --- .../tests/flat-config-types.test.ts | 32 +++++-------------- 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/packages/integration-tests/tests/flat-config-types.test.ts b/packages/integration-tests/tests/flat-config-types.test.ts index a1d66e47c36e..cbb9b8df6a6c 100644 --- a/packages/integration-tests/tests/flat-config-types.test.ts +++ b/packages/integration-tests/tests/flat-config-types.test.ts @@ -7,31 +7,15 @@ typescriptIntegrationTest( __filename, ['--allowJs', '--esModuleInterop', 'eslint.config.js'], out => { - const lines = out - .split('\n') - .filter( - line => - // error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher. - // this is fine for us to ignore in this context - !line.includes('error TS18028'), - ) - .join('\n'); + const lines = out.split('\n').filter( + line => + // error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher. + // this is fine for us to ignore in this context + line && !line.includes('error TS18028'), + ); - // The stylistic type errors: https://github.com/eslint-stylistic/eslint-stylistic/issues/276 - expect(lines).toMatchInlineSnapshot(` - "node_modules/@stylistic/eslint-plugin-plus/dts/index.d.ts(7,46): error TS2694: Namespace '"//node_modules/@types/eslint/index".ESLint' has no exported member 'RuleModule'. - node_modules/@stylistic/eslint-plugin/dist/dts/rule-options.d.ts(6,11): error TS2320: Interface 'UnprefixedRuleOptions' cannot simultaneously extend types 'UnprefixedRuleOptions' and 'UnprefixedRuleOptions'. - Named property ''comma-dangle'' of types 'UnprefixedRuleOptions' and 'UnprefixedRuleOptions' are not identical. - node_modules/@stylistic/eslint-plugin/dist/dts/rule-options.d.ts(6,11): error TS2320: Interface 'UnprefixedRuleOptions' cannot simultaneously extend types 'UnprefixedRuleOptions' and 'UnprefixedRuleOptions'. - Named property ''keyword-spacing'' of types 'UnprefixedRuleOptions' and 'UnprefixedRuleOptions' are not identical. - node_modules/@stylistic/eslint-plugin/dist/dts/rule-options.d.ts(6,11): error TS2320: Interface 'UnprefixedRuleOptions' cannot simultaneously extend types 'UnprefixedRuleOptions' and 'UnprefixedRuleOptions'. - Named property ''lines-around-comment'' of types 'UnprefixedRuleOptions' and 'UnprefixedRuleOptions' are not identical. - node_modules/@stylistic/eslint-plugin/dist/dts/rule-options.d.ts(6,11): error TS2320: Interface 'UnprefixedRuleOptions' cannot simultaneously extend types 'UnprefixedRuleOptions' and 'UnprefixedRuleOptions'. - Named property ''lines-between-class-members'' of types 'UnprefixedRuleOptions' and 'UnprefixedRuleOptions' are not identical. - node_modules/@stylistic/eslint-plugin/dist/dts/rule-options.d.ts(6,11): error TS2320: Interface 'UnprefixedRuleOptions' cannot simultaneously extend types 'UnprefixedRuleOptions' and 'UnprefixedRuleOptions'. - Named property ''padding-line-between-statements'' of types 'UnprefixedRuleOptions' and 'UnprefixedRuleOptions' are not identical. - " - `); + // The types should not error (e.g. https://github.com/eslint-stylistic/eslint-stylistic/issues/276) + expect(lines).toHaveLength(0); }, ); eslintIntegrationTest(__filename, 'eslint.config.js', true);