Skip to content

Commit ea38658

Browse files
committed
Disable the unicorn/no-unsafe-regex rule
See: sindresorhus/eslint-plugin-unicorn#153
1 parent 2492c75 commit ea38658

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = {
3434
'unicorn/regex-shorthand': 'error',
3535
'unicorn/prefer-spread': 'error',
3636
'unicorn/error-message': 'error',
37-
'unicorn/no-unsafe-regex': 'error',
37+
'unicorn/no-unsafe-regex': 'off',
3838
'unicorn/prefer-add-event-listener': 'error'
3939
}
4040
}

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Configure it in `package.json`.
5353
"unicorn/regex-shorthand": "error",
5454
"unicorn/prefer-spread": "error",
5555
"unicorn/error-message": "error",
56-
"unicorn/no-unsafe-regex": "error",
56+
"unicorn/no-unsafe-regex": "off",
5757
"unicorn/prefer-add-event-listener": "error"
5858
}
5959
}

0 commit comments

Comments
 (0)