Skip to content
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

Support typescript configs #384

Open
michaelfaith opened this issue Feb 24, 2025 · 1 comment
Open

Support typescript configs #384

michaelfaith opened this issue Feb 24, 2025 · 1 comment
Labels
Status: Need More Info Lacks enough info to make progress

Comments

@michaelfaith
Copy link

As of ESLint v9.18.0, typescript-based configs have become stable. Currently, when running eslint-interactive with a typescript config, it doesn't find the config file at all. When providing a path using the --config option, it returns an error about the extension not being a known file extension.

✖ Linting...
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/*****/web/app/eslint.config.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:219:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:245:36)
    at defaultLoad (node:internal/modules/esm/load:120:22)
    at async ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:514:32)
    at async ModuleJob._link (node:internal/modules/esm/module_job:115:19)
@mizdra
Copy link
Owner

mizdra commented Mar 1, 2025

@michaelfaith Hmmm. I have created a small project to investigate this issue but cannot reproduce the problem.

Can you explain how to reproduce this issue?

@mizdra mizdra added the Status: Need More Info Lacks enough info to make progress label Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Need More Info Lacks enough info to make progress
Projects
None yet
Development

No branches or pull requests

2 participants