Docs: no information on how to add types to config fileΒ #19275
Open
Description
opened on Dec 25, 2024
Docs page(s)
https://eslint.org/docs/latest/use/configure/configuration-files
What documentation issue do you want to solve?
There is not enough information on adding types to the config file to make it easier to change in the IDE.
What do you think is the correct solution?
Add information on how to add types to the configuration file as Vite does. Here are configuration examples: https://stackoverflow.com/q/75684118/11336855
Although I would rather do it like Prettier, since in JetBrains IDEAs for some reason only in this case the hints work correctly.
/** @type { import('eslint').Linter.Config[] } */
const config = [...];
export default config;
Participation
- I am willing to submit a pull request for this change.
Additional comments
No response
Metadata
Assignees
Type
Projects
Status
Needs Triage
Activity