antfu / eslint-flat-config-viewer

A visual tool to help you view and understand your ESLint Flat config.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support loading eslint.config.mjs or eslint.config.ts as flat config file

christopher-buss opened this issue · comments

Clear and concise description of the problem

As a developer using eslint-flat-config-viewer, I'd like for eslint.config.ts files to be automatically detected.

Suggested solution

Built-in support for other eslint configs file types be available (as per your eslint-ts-patch).

Alternative

Alternatively, a README on how to manually set the file extension so that I can support a non-js file (ts in my case) easily (as I'm aware it first checks the process.env.ESLINT_CONFIG variable (I will admit, I did not find out how to set this while running npx eslint-flat-config-viewer. ).

Additional context

No response

Validations

Supported in v0.1.4. Thanks