-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default
, export
, and namespace
rules should be disabled in the typescript
config.
#2346
Comments
That’s incorrect. I believe TS doesn’t check CJS files, or files without types. |
Would it be within the scope of this project to maintain an extendable config for projects that are TS only, with rules like this disabled? Something like |
No projects are TS only, because all published code is CJS or ESM. |
I came here for this same reason. |
Relates to: While this one issue is older, the other one has more activity, so I'll mark this one duplicate, to consolidate discussion. |
If I understand correctly, TypeScript already highlights the same issues as
import/default
,import/export
andimport/namespace
rules. If that's true, then these rules should be disabled in thetypescript
config similarly toimport/named
here:eslint-plugin-import/config/typescript.js
Lines 25 to 30 in 68cea3e
Please correct me if I'm wrong in my assumption. Otherwise, I can create a PR with the changes.
The text was updated successfully, but these errors were encountered: