Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Repo: Integration test failure onmain:flat-config-types-@types__eslint-v8 &-v9 #10992

Labels
accepting prsGo ahead, send a pull request that resolves this issuelocked 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
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Suggestion

Example fromhttps://github.com/typescript-eslint/typescript-eslint/actions/runs/14020474109/job/39251785162?pr=10861:

FAIL  tests/flat-config-types-@types__eslint-v9.test.ts (54.762 s)  ● flat-config-types-@types__eslint-v9 › typescript › should work successfully    expect(received).toHaveLength(expected)    Expected length: 0    Received length: 5    Received array:  ["eslint.config.js(55,19): error TS23[45](https://github.com/typescript-eslint/typescript-eslint/actions/runs/14020474109/job/39251785162?pr=10861#step:5:59): Argument of type '{ plugins: string[]; rules: { 'deprecation/deprecation': string; }; }' is not assignable to parameter of type 'LegacyConfig<RulesRecord, RulesRecord>'.", "  Types of property 'rules' are incompatible.", "    Type '{ 'deprecation/deprecation': string; }' is not assignable to type 'Partial<RulesRecord>'.", "      Property ''deprecation/deprecation'' is incompatible with index signature.", "        Type 'string' is not assignable to type 'RuleEntry<any[]>'."]      23 |      24 |       // The types should not error (e.g. https://github.com/eslint-stylistic/eslint-stylistic/issues/276)    > 25 |       expect(lines).toHaveLength(0);         |                     ^      26 |     },      27 |   );      28 | }      at toHaveLength (tests/flat-config-types-@types__eslint-v9.test.ts:25:21)      at assertOutput (tools/integration-test-base.ts:197:7)      at Object.<anonymous> (tools/integration-test-base.ts:120:9)
eslint.config.js(55,19): error TS2345: Argument of type '{ plugins: string[]; rules: { 'deprecation/deprecation': string; }; }' is not assignable to parameter of type 'LegacyConfig<RulesRecord, RulesRecord>'.  Types of property 'rules' are incompatible.    Type '{ 'deprecation/deprecation': string; }' is not assignable to type 'Partial<RulesRecord>'.      Property ''deprecation/deprecation'' is incompatible with index signature.        Type 'string' is not assignable to type 'RuleEntry<any[]>'."]

Additional Info

A few related issues & PRs:

Related"we should automate something here" integration test tracker:#8603

💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuelocked 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


      [8]ページ先頭

      ©2009-2025 Movatter.jp