Skip to content

Commit f059c1c

Browse files
authored
allow comments in tsconfig.json files (#31)
1 parent 3fc8f95 commit f059c1c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

configs/ts.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,10 @@ export default defineConfig([
120120
language: 'json/json',
121121
extends: [eslintPluginPrettierRecommended, json.configs.recommended],
122122
},
123+
{
124+
// tsconfig/jsconfig files conventionally allow comments (JSONC), which the
125+
// strict `json/json` language above rejects.
126+
files: ['**/tsconfig*.json', '**/jsconfig*.json'],
127+
language: 'json/jsonc',
128+
},
123129
])

0 commit comments

Comments
 (0)