Skip to content

Commit 729e4d6

Browse files
authored
chore: eslint-plugin-regexp extends all (#254)
1 parent bb41399 commit 729e4d6

File tree

1 file changed

+1
-56
lines changed

1 file changed

+1
-56
lines changed

ci/plugin-configs/eslint-plugin-regexp.config.js

+1-56
Original file line numberDiff line numberDiff line change
@@ -4,61 +4,6 @@ module.exports = {
44
...baseConfig,
55
eslintrc: {
66
...baseConfig.eslintrc,
7-
plugins: ['regexp'],
8-
rules: {
9-
'regexp/confusing-quantifier': 'error',
10-
'regexp/control-character-escape': 'error',
11-
'regexp/hexadecimal-escape': 'error',
12-
'regexp/letter-case': 'error',
13-
'regexp/match-any': 'error',
14-
'regexp/negation': 'error',
15-
'regexp/no-assertion-capturing-group': 'error',
16-
'regexp/no-dupe-characters-character-class': 'error',
17-
'regexp/no-dupe-disjunctions': 'error',
18-
'regexp/no-empty-alternative': 'error',
19-
'regexp/no-empty-group': 'error',
20-
'regexp/no-empty-lookarounds-assertion': 'error',
21-
'regexp/no-escape-backspace': 'error',
22-
'regexp/no-invisible-character': 'error',
23-
'regexp/no-lazy-ends': 'error',
24-
'regexp/no-legacy-features': 'error',
25-
'regexp/no-non-standard-flag': 'error',
26-
'regexp/no-obscure-range': 'error',
27-
'regexp/no-octal': 'error',
28-
'regexp/no-optional-assertion': 'error',
29-
'regexp/no-potentially-useless-backreference': 'error',
30-
'regexp/no-trivially-nested-assertion': 'error',
31-
'regexp/no-trivially-nested-quantifier': 'error',
32-
'regexp/no-unused-capturing-group': 'error',
33-
'regexp/no-useless-assertions': 'error',
34-
'regexp/no-useless-backreference': 'error',
35-
'regexp/no-useless-character-class': 'error',
36-
'regexp/no-useless-dollar-replacements': 'error',
37-
'regexp/no-useless-escape': 'error',
38-
'regexp/no-useless-exactly-quantifier': 'error',
39-
'regexp/no-useless-flag': 'error',
40-
'regexp/no-useless-non-capturing-group': 'error',
41-
'regexp/no-useless-non-greedy': 'error',
42-
'regexp/no-useless-range': 'error',
43-
'regexp/no-useless-two-nums-quantifier': 'error',
44-
'regexp/optimal-lookaround-quantifier': 'error',
45-
'regexp/order-in-character-class': 'error',
46-
'regexp/prefer-character-class': 'error',
47-
'regexp/prefer-d': 'error',
48-
'regexp/prefer-escape-replacement-dollar-char': 'error',
49-
'regexp/prefer-named-backreference': 'error',
50-
'regexp/prefer-plus-quantifier': 'error',
51-
'regexp/prefer-quantifier': 'error',
52-
'regexp/prefer-question-quantifier': 'error',
53-
'regexp/prefer-range': 'error',
54-
'regexp/prefer-regexp-exec': 'error',
55-
'regexp/prefer-regexp-test': 'error',
56-
'regexp/prefer-star-quantifier': 'error',
57-
'regexp/prefer-t': 'error',
58-
'regexp/prefer-unicode-codepoint-escapes': 'error',
59-
'regexp/prefer-w': 'error',
60-
'regexp/sort-flags': 'error',
61-
'regexp/unicode-escape': 'error',
62-
},
7+
extends: ['plugin:regexp/all'],
638
},
649
};

0 commit comments

Comments
 (0)