From 4c9476c71fd3d714a510eb6d4ff730718d56f166 Mon Sep 17 00:00:00 2001 From: Lukas Weiss Date: Thu, 9 Jul 2026 17:52:32 +0200 Subject: [PATCH] allow comments in tsconfig.json files --- configs/ts.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configs/ts.js b/configs/ts.js index 7fb6078..1b7d35e 100644 --- a/configs/ts.js +++ b/configs/ts.js @@ -120,4 +120,10 @@ export default defineConfig([ language: 'json/json', extends: [eslintPluginPrettierRecommended, json.configs.recommended], }, + { + // tsconfig/jsconfig files conventionally allow comments (JSONC), which the + // strict `json/json` language above rejects. + files: ['**/tsconfig*.json', '**/jsconfig*.json'], + language: 'json/jsonc', + }, ])