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', + }, ])