ESLint: Added `regexp/prefer-d` rule (#3153)

This commit is contained in:
Michael Schmidt 2021-10-19 14:27:57 +02:00 committed by GitHub
parent a6a4ce7e2e
commit ccc02a55fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ module.exports = {
'regexp/no-useless-flag': 'warn',
'regexp/no-useless-lazy': 'warn',
'regexp/no-useless-range': 'warn',
'regexp/prefer-d': ['warn', { insideCharacterClass: 'ignore' }],
'regexp/prefer-plus-quantifier': 'warn',
'regexp/prefer-question-quantifier': 'warn',
'regexp/prefer-star-quantifier': 'warn',