Skip to content

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

@rakleed

Description

@rakleed

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions