You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do?
When importing the configs, the types are essentially still any because the types Linter.FlatConfig and Linter.LegacyConfig are not actually imported or defined within your own declarations. This results in the type being treated as any if you have skipLibChecks set to true, or a build error if you don't.
What did you expect to happen?
Config types should use the actual eslint types in their definition instead of just being typed as any for consumers..
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
When importing the configs, the types are essentially still any because the types
Linter.FlatConfig
andLinter.LegacyConfig
are not actually imported or defined within your own declarations. This results in the type being treated asany
if you haveskipLibChecks
set totrue
, or a build error if you don't.What did you expect to happen?
Config types should use the actual eslint types in their definition instead of just being typed as
any
for consumers..What actually happened?
Types for
Linter
are not being imported in the .d.ts file.https://unpkg.com/browse/[email protected]/lib/index.d.ts
I believe its just missing an import at the top of the file. I'll file a PR.
Repository to reproduce this issue
None provided.
The text was updated successfully, but these errors were encountered: