Skip to content

Commit 1bd03cd

Browse files
committed
chore(unicorn): remove deprecated rule no-unsafe-regex
1 parent ae50c45 commit 1bd03cd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/configs/unicorn.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/configs/yaml.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)