-
Notifications
You must be signed in to change notification settings - Fork 336
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 TS config files #1917
Comments
Not sure if it's as simple as adding eslint.config.ts, eslint.config.mts, and eslint.config.cts to https://github.com/microsoft/vscode-eslint/blob/release/3.0.10/server/src/eslint.ts#L800 Edit: For the VS Code client these need to be updated (seems they're also missing .mjs and .cjs?): |
Need also to at least pass |
You can add the following settings: {
"eslint.options": {
"flags": ["unstable_ts_config"]
}
}
|
I added mjs and cjs to the watcher pattern. With the ts I would like to wait to see where the feature in eslint is heading to. |
@dbaeumer what questions can I answer about this feature for you? (In general, feel free to reach out via GitHub discussion or Discord if you're ever blocked waiting for info about what ESLint is doing.) |
@nzakas my biggest question is currently why this is in ESLint since NodeJS itself added experimental support for this: https://nodejs.org/api/typescript.html#type-stripping |
@dbaeumer because ESLint needs to run on multiple versions of Node.js, some of which don't have experimental support, as well as Bun and Deno. Once TypeScript support is built into Node.js as stable, and we are able to move off of support for older versions, we can remove the |
@gorstak17 please open a fresh issue for your problem, best with a GitHub repository I can clone with a minimal repro case that demos the problem you are seeing. This being said, please ensure that ESLint works correctly in the terminal before file the issue. |
ESLint 9.9.0 was just released with support for TS config files:
eslint/eslint#18134
The text was updated successfully, but these errors were encountered: