Commit ccc02a55fd5d66d51dc5cef232e55ca18fecd286

Michael Schmidt 2021-10-19T14:27:57

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

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/.eslintrc.js b/.eslintrc.js
index 426001a..6d5edc3 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -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',