From ccc02a55fd5d66d51dc5cef232e55ca18fecd286 Mon Sep 17 00:00:00 2001 From: Michael Schmidt Date: Tue, 19 Oct 2021 14:27:57 +0200 Subject: [PATCH] ESLint: Added `regexp/prefer-d` rule (#3153) --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index 426001a33a..6d5edc392f 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',