Skip to content

Docs: no information on how to add types to config fileΒ #19275

Open
@rakleed

Description

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;

Image

Participation

  • I am willing to submit a pull request for this change.

Additional comments

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    documentationRelates to ESLint's documentation

    Type

    No type

    Projects

    • Status

      Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions