Skip to content

Commit 9b04d81

Browse files
committed
feat: enable unicorn/better-regex
1 parent 09a592e commit 9b04d81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/eslint-config-basic/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ module.exports = {
348348
'n/no-callback-literal': 'off',
349349

350350
// unicorns
351+
// Improve regexes by making them shorter, consistent
352+
'unicorn/better-regex': 'error',
351353
// Pass error message when throwing errors
352354
'unicorn/error-message': 'error',
353355
// Uppercase regex escapes

0 commit comments

Comments
 (0)