File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ export function unicorn(): FlatESLintConfigItem[] {
19
19
'unicorn/no-new-array' : 'error' ,
20
20
// Prevent deprecated `new Buffer()`
21
21
'unicorn/no-new-buffer' : 'error' ,
22
- // Keep regex literals safe!
23
- 'unicorn/no-unsafe-regex' : 'error' ,
24
22
// Lowercase number formatting for octal, hex, binary (0x1'error' instead of 0X1'error')
25
23
'unicorn/number-literal-case' : 'error' ,
26
24
// includes over indexOf when checking for existence
Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ export function yaml(options: OptionsOverrides & OptionsStylistic = {}): FlatESL
47
47
'yaml/flow-mapping-curly-spacing' : 'error' ,
48
48
'yaml/flow-sequence-bracket-newline' : 'error' ,
49
49
'yaml/flow-sequence-bracket-spacing' : 'error' ,
50
- 'yaml/indent' : [ 'error' , indent ] ,
50
+ 'yaml/indent' : [ 'error' , indent === 'tab' ? 2 : indent ] ,
51
51
'yaml/key-spacing' : 'error' ,
52
- 'yaml/no-tab-indent' : indent === 'tab' ? 'off' : 'error' ,
52
+ 'yaml/no-tab-indent' : 'error' ,
53
53
'yaml/quotes' : [ 'error' , { avoidEscape : false , prefer : quotes } ] ,
54
54
'yaml/spaced-comment' : 'error' ,
55
55
}
You can’t perform that action at this time.
0 commit comments