[import/extensions][TypeScript] Suggestion: set rules
for .ts
, .tsx
, .mts
, .cts
to 'never'
in import/typescript
config
#2853
Labels
I suggest adding this rule to the
import/typescript
config (<eslint-plugin-import>.configs.typescript.rules
):since explicit
.ts+
extensions are not allowed in TypeScript (except as on option in the cases ofnoEmit
oremitDeclarationOnly
, which are not the dominanttsconfigs
– I guess).So
eslint
would be prevented from raising an error in the case of animport/extensions
rule from another eslint config, which usually ruleserror
withnever
only for.js+
extensions.@ljharb FYI, don't hesitate to let know what you think.
The text was updated successfully, but these errors were encountered: