Skip to content

Commit

Permalink
prefer-regex-literals: Set disallowRedundantWrapping option (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Nov 6, 2022
1 parent aacde5a commit 99db346
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,12 @@ module.exports = {
allowEmptyReject: true,
},
],
'prefer-regex-literals': 'error',
'prefer-regex-literals': [
'error',
{
disallowRedundantWrapping: true,
},
],
radix: 'error',

// Disabled for now as it causes too much churn
Expand Down

0 comments on commit 99db346

Please sign in to comment.