Skip to content

Commit

Permalink
vscode .json are jsonc files
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed May 15, 2023
1 parent e5f54bf commit 179b723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configs/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ export function prepareConfig({
},
{
files: ['**/*.json', ...additionalFilesJson],
ignores: ['**/tsconfig.json', '**/jsconfig.json'],
ignores: ['**/tsconfig.json', '**/jsconfig.json', '.vscode/**/*.json'],
rules: {
.../** @type {JsoncRules} */(jsonc.configs['recommended-with-json'].rules),
'jsonc/indent': ['error', 2]
}
},
{
files: ['**/*.jsonc', '**/tsconfig.json', '**/jsconfig.json', ...additionalFilesJsonc],
files: ['**/*.jsonc', '**/tsconfig.json', '**/jsconfig.json', '.vscode/**/*.json', ...additionalFilesJsonc],
rules: {
.../** @type {JsoncRules} */(jsonc.configs['recommended-with-jsonc'].rules),
'jsonc/indent': ['error', 2]
Expand Down

0 comments on commit 179b723

Please sign in to comment.