-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
suggestion: Move config types to DefinitelyTyped/eslint #258
Comments
This repository does not have any plugin types anymore |
I'm referring to these types: https://github.com/eslint-types/eslint-define-config/blob/main/src/config/index.d.ts#L14 |
I think partially these are already included in The eslint-define-config/src/index.ts Line 10 in e6fa88d
AND the most important part: they can be enhanced in eslint-define-config types with e.g. eslint-define-config/src/parser-options.d.ts Line 143 in e6fa88d
ESLintConfig And all this makes it possible to use global augmented properties which was released with v2 ... so if you do not have specific mind-blown ideas of how to let that work all together, I can only sadly close this issue as "not planned" 😕 |
These types are almost identical: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/038dfbdd0e92572a4c80abf3f239a9fc458c6f71/types/eslint/index.d.ts#L885-L887 (I hope i found the right type here) One might have the
Is there anything preventing the enhancement/augementation of eslint's config types itself?
There is nothing mind blowing here. Just move the 4(?) "compatibility"/ That way:
|
Does Please also notice that I don't like to have dependencies between |
What would prevent a commit containing the output of a script?
That wouldn't change. |
Reviewers in DefinitelyTyped
And there is the point were I don't get it anymore 🤔 Some more context and background story:
I hope I did not forget something |
FFR: this issue inspired to create DefinitelyTyped/DefinitelyTyped#67505 👍 |
By moving the config types to https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint (or one of its related repos) plugins/extensions that use typescript are able to augment the config without adding a third-party dependency.
(This only applies to the config
type
s, not thedefineConfig
function that uses them)The text was updated successfully, but these errors were encountered: