-
Notifications
You must be signed in to change notification settings - Fork 50
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
[eslint] Add recommended rules #1253
Comments
Remaining errors : 71 problems
|
Remove no-case-declarationshttps://eslint.org/docs/latest/rules/no-case-declarations Why is this a problem?
Sol
2 Errors
|
Remove no-useless-escapehttps://eslint.org/docs/latest/rules/no-useless-escape
|
Remove no-control-regexReferenceProblematic lines// NOTE ASCII characters have codes ranging from u+0000 to u+007f
function containsNonAscii(str: string): boolean {
return !/^[\u0000-\u007f]*$/.test(str);
} The line is required to check if it's an ascii, but how about checking 'printable ascii' aside from those problematic non-printables? |
Remove no-prototype-builtinsReference
Example
|
Remove no-unused-varNumber of problems : 63✖ 63 problems (0 errors, 63 warnings) Let's remove all these warnings. Above draft has too many changes..
|
Remove
|
Done :-D |
What?
To enables eslint:recommended extends, let's first remove some violations by adding simple recommended rules.
The text was updated successfully, but these errors were encountered: