@@ -17,6 +17,8 @@ ecmaFeatures:
17
17
rules:
18
18
# Possible Errors
19
19
# list: https://github.com/eslint/eslint/tree/master/docs/rules#possible-errors
20
+ ## disallow control characters in regular expressions
21
+ no-control-regex: 2
20
22
## check debugger sentence
21
23
no-debugger: 2
22
24
## check duplicate arguments
@@ -25,24 +27,24 @@ rules:
25
27
no-dupe-keys: 2
26
28
## check duplicate switch-case
27
29
no-duplicate-case: 2
28
- ## disallow superfluous semicolons
29
- no-extra-semi : 2
30
+ ## disallow the use of empty character classes in regular expressions
31
+ no-empty-character-class : 2
30
32
## disallow assignment of exceptional params
31
33
no-ex-assign: 2
32
- ## disallow unreachable code
33
- no-unreachable: 2
34
- ## require valid typeof compared string like typeof foo === 'strnig'
35
- valid-typeof: 2
36
- ## disallow controls characters in regular expressions
37
- no-control-regex: 2
38
34
## disallow extra boolean casts
39
35
no-extra-boolean-cast : 2
36
+ ## disallow superfluous semicolons
37
+ no-extra-semi: 2
40
38
## validate regular expressions
41
39
no-invalid-regexp: 2
42
40
## forbid weird whitespace characters
43
41
no-irregular-whitespace: 2
44
42
## avoid unexpected multiline expressions
45
43
no-unexpected-multiline: 2
44
+ ## disallow unreachable code
45
+ no-unreachable: 2
46
+ ## require valid typeof compared string like typeof foo === 'strnig'
47
+ valid-typeof: 2
46
48
47
49
# Best Practices
48
50
# list: https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
0 commit comments