Skip to content

Disable more rules covered by TypeScript in the typescript config #3135

Open
@FloEdelmann

Description

@FloEdelmann

The typescript config already disables the import/named rule because it does not have an advantage over errors thrown by the TypeScript compiler:

// TypeScript compilation already ensures that named imports exist in the referenced module
'import/named': 'off',

There are some more rules that fall in the same category, which also typescript-eslint recommends to disable:

To avoid checking the same things the TypeScript compiler has already checked, I think it makes sense to also disable those rules (maybe except for import/no-unresolved) in the typescript config, so users don't have to (know and) disable them manually.

(It would also mitigate #2340 for TypeScript users.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions