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[] {
1919 'unicorn/no-new-array' : 'error' ,
2020 // Prevent deprecated `new Buffer()`
2121 'unicorn/no-new-buffer' : 'error' ,
22- // Keep regex literals safe!
23- 'unicorn/no-unsafe-regex' : 'error' ,
2422 // Lowercase number formatting for octal, hex, binary (0x1'error' instead of 0X1'error')
2523 'unicorn/number-literal-case' : 'error' ,
2624 // 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
4747 'yaml/flow-mapping-curly-spacing' : 'error' ,
4848 'yaml/flow-sequence-bracket-newline' : 'error' ,
4949 'yaml/flow-sequence-bracket-spacing' : 'error' ,
50- 'yaml/indent' : [ 'error' , indent ] ,
50+ 'yaml/indent' : [ 'error' , indent === 'tab' ? 2 : indent ] ,
5151 'yaml/key-spacing' : 'error' ,
52- 'yaml/no-tab-indent' : indent === 'tab' ? 'off' : 'error' ,
52+ 'yaml/no-tab-indent' : 'error' ,
5353 'yaml/quotes' : [ 'error' , { avoidEscape : false , prefer : quotes } ] ,
5454 'yaml/spaced-comment' : 'error' ,
5555 }
You can’t perform that action at this time.
0 commit comments