Skip to content

Repo: Integration tests failing on main due to upstream eslint-stylistic changes #8602

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Suggestion

From https://github.com/typescript-eslint/typescript-eslint/actions/runs/8157268910/job/22296673696:

FAIL  tests/flat-config-types.test.ts (32.88 s)
  ● flat-config-types › typescript › should work successfully
    expect(received).toMatchInlineSnapshot(snapshot)
    Snapshot name: `flat-config-types typescript should work successfully 1`
    - Snapshot  - 12
    + Received  +  0
    - node_modules/@stylistic/eslint-plugin-plus/dts/index.d.ts(7,46): error TS2694: Namespace '"/<tmp_folder>/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.
    -

      19 |
      20 |     // The stylistic type errors: https://github.com/eslint-stylistic/eslint-stylistic/issues/276
    > 21 |     expect(lines).toMatchInlineSnapshot(`
         |                   ^
Error:       22 |       "node_modules/@stylistic/eslint-plugin-plus/dts/index.d.ts(7,46): error TS26[94](https://github.com/typescript-eslint/typescript-eslint/actions/runs/8157268910/job/22296673696#step:5:95): Namespace '"/<tmp_folder>/node_modules/@types/eslint/index".ESLint' has no exported member 'RuleModule'.
Error:       23 |       node_modules/@stylistic/eslint-plugin/dist/dts/rule-options.d.ts(6,11): error TS2320: Interface 'UnprefixedRuleOptions' cannot simultaneously extend types 'UnprefixedRuleOptions' and 'UnprefixedRuleOptions'.
      24 |         Named property ''comma-dangle'' of types 'UnprefixedRuleOptions' and 'UnprefixedRuleOptions' are not identical.

      at toMatchInlineSnapshot (tests/flat-config-types.test.ts:21:19)
      at assertOutput (tools/integration-test-base.ts:1[99](https://github.com/typescript-eslint/typescript-eslint/actions/runs/8157268910/job/22296673696#step:5:100):7)
      at Object.<anonymous> (tools/integration-test-base.ts:120:9)
 › 1 snapshot failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.repo maintenancethings to do with maintenance of the repo, and not with code/docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions