File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ export function jsonc(options: OptionsStylistic & OptionsOverrides = {}): FlatES
77 stylistic = true ,
88 overrides = { } ,
99 } = options
10+ const {
11+ indent = 2 ,
12+ } = typeof stylistic === 'boolean' ? { } : stylistic
1013 return [
1114 {
1215 name : 'coderwyd:jsonc:setup' ,
@@ -53,7 +56,7 @@ export function jsonc(options: OptionsStylistic & OptionsOverrides = {}): FlatES
5356 'jsonc/array-bracket-spacing' : [ 'error' , 'never' ] ,
5457 'jsonc/comma-dangle' : [ 'error' , 'never' ] ,
5558 'jsonc/comma-style' : [ 'error' , 'last' ] ,
56- 'jsonc/indent' : [ 'error' , 2 ] ,
59+ 'jsonc/indent' : [ 'error' , indent ] ,
5760 'jsonc/key-spacing' : [ 'error' , { afterColon : true , beforeColon : false } ] ,
5861 'jsonc/object-curly-newline' : [ 'error' , { consistent : true , multiline : true } ] ,
5962 'jsonc/object-curly-spacing' : [ 'error' , 'always' ] ,
You can’t perform that action at this time.
0 commit comments