-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change config and default #49
Conversation
65b6737
to
285a127
Compare
059f721
to
e7ee81e
Compare
fabfca0
to
968d9bb
Compare
6884c13
to
305edc9
Compare
8a5f1ff
to
69dab2a
Compare
I think there are 2 problems with the recommended config:
|
I think it's good to turn off However, there seems to be a slight difference between var foo = /[\|]/; // Reported in `regexp/no-useless-escape`. But not reported in `regexp/strict`.
var foo = /[\1-\4]/; // Reported in `regexp/strict`. But not reported in `regexp/no-octal`. These rules may report duplicates, but I think it's good to turn them on. |
I agree with you on |
You're right. I will change this PR. |
Change
plugin:regexp/recommended
configregexp/confusing-quantifier
rule.regexp/control-character-escape
rule.regexp/negation
rule.regexp/no-dupe-disjunctions
rule.regexp/no-empty-alternative
rule.regexp/no-empty-capturing-group
rule.regexp/no-invalid-regexp
rule.regexp/no-lazy-ends
rule.regexp/no-legacy-features
rule.regexp/no-non-standard-flag
rule.regexp/no-obscure-range
rule.regexp/no-optional-assertion
rule.regexp/no-potentially-useless-backreference
rule.Addregexp/no-standalone-backslash
rule.regexp/no-super-linear-backtracking
rule.regexp/no-trivially-nested-assertion
rule.regexp/no-trivially-nested-quantifier
rule.regexp/no-unused-capturing-group
rule.regexp/no-useless-assertions
rule.regexp/no-useless-character-class
rule.regexp/no-useless-dollar-replacements
rule.regexp/no-useless-escape
rule.regexp/no-useless-flag
rule.regexp/no-useless-lazy
rule.regexp/no-useless-non-capturing-group
rule.regexp/no-useless-quantifier
rule.regexp/no-useless-range
rule.regexp/no-zero-quantifier
rule.regexp/optimal-lookaround-quantifier
rule.regexp/optimal-quantifier-concatenation
rule.regexp/prefer-character-class
rule.regexp/prefer-predefined-assertion
rule.regexp/prefer-range
rule.regexp/prefer-unicode-codepoint-escapes
rule.regexp/sort-flags
rule.regexp/strict
rule.no-empty-character-class
rule.no-invalid-regexp
rule.Change default option
hexadecimalEscape
option ofregexp/letter-case
rule fromignore
tolowercase
.controlEscape
option ofregexp/letter-case
rule fromignore
touppercase
.