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
7
7
stylistic = true ,
8
8
overrides = { } ,
9
9
} = options
10
+ const {
11
+ indent = 2 ,
12
+ } = typeof stylistic === 'boolean' ? { } : stylistic
10
13
return [
11
14
{
12
15
name : 'coderwyd:jsonc:setup' ,
@@ -53,7 +56,7 @@ export function jsonc(options: OptionsStylistic & OptionsOverrides = {}): FlatES
53
56
'jsonc/array-bracket-spacing' : [ 'error' , 'never' ] ,
54
57
'jsonc/comma-dangle' : [ 'error' , 'never' ] ,
55
58
'jsonc/comma-style' : [ 'error' , 'last' ] ,
56
- 'jsonc/indent' : [ 'error' , 2 ] ,
59
+ 'jsonc/indent' : [ 'error' , indent ] ,
57
60
'jsonc/key-spacing' : [ 'error' , { afterColon : true , beforeColon : false } ] ,
58
61
'jsonc/object-curly-newline' : [ 'error' , { consistent : true , multiline : true } ] ,
59
62
'jsonc/object-curly-spacing' : [ 'error' , 'always' ] ,
You can’t perform that action at this time.
0 commit comments