From ed946b434efaab9e774795cc9acf32438721a3bb Mon Sep 17 00:00:00 2001 From: "@sangrepura" Date: Sat, 28 Sep 2024 07:30:28 -0500 Subject: [PATCH] docs: :memo: adds instructions for integrating official ESlint > v9.9.0 `ts` file support (#268) ESlint > v9.9.0 includes experimental support for Typescript configuration files using the flag `unstable_ts_config`. This adds documentation for adding the flag to VSCode. --- apps/docs-website/docs/vscode-support.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/docs-website/docs/vscode-support.md b/apps/docs-website/docs/vscode-support.md index ed5a6bfd..d5300649 100644 --- a/apps/docs-website/docs/vscode-support.md +++ b/apps/docs-website/docs/vscode-support.md @@ -19,6 +19,18 @@ To make the [VSCode ESLint Extension](https://marketplace.visualstudio.com/items } ``` +## Typescript support + +### Using official ESlint > v9.9.0 + +If you are using an `eslint.config.ts` with [ESLint's experimental support for Typescript based configuration files](https://github.com/eslint/eslint/releases/tag/v9.9.0), add this to your workspace's `.vscode/settings.json`: + +```JSONC title=".vscode/settings.json" +"eslint.options": { + "flags": ["unstable_ts_config"] +} +``` + ## Astro support For [Astro](https://astro.build/) projects, add the astro extension too: