Skip to content

Commit 34df6a5

Browse files
silverwindrvagg
authored andcommitted
tools: enable assorted ESLint error rules
Enables assorted rules from the category of possible errors. These should not get in the way in any form. - http://eslint.org/docs/rules/no-control-regex - http://eslint.org/docs/rules/no-extra-boolean-cast - http://eslint.org/docs/rules/no-invalid-regexp - http://eslint.org/docs/rules/no-irregular-whitespace - http://eslint.org/docs/rules/no-unexpected-multiline PR-URL: #4864 Reviewed-By: targos - Michaël Zasso <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Roman Klauke <[email protected]>
1 parent 3b22520 commit 34df6a5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.eslintrc

+10
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ rules:
3333
no-unreachable: 2
3434
## require valid typeof compared string like typeof foo === 'strnig'
3535
valid-typeof: 2
36+
## disallow controls characters in regular expressions
37+
no-control-regex: 2
38+
## disallow extra boolean casts
39+
no-extra-boolean-cast : 2
40+
## validate regular expressions
41+
no-invalid-regexp: 2
42+
## forbid weird whitespace characters
43+
no-irregular-whitespace: 2
44+
## avoid unexpected multiline expressions
45+
no-unexpected-multiline: 2
3646

3747
# Best Practices
3848
# list: https://github.com/eslint/eslint/tree/master/docs/rules#best-practices

0 commit comments

Comments
 (0)