-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Enable eslint rule no-useless-escape #55138
Enable eslint rule no-useless-escape #55138
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hated reviewing this.
Sending it was slightly better; at least I had a quick fix but no |
src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts
Outdated
Show resolved
Hide resolved
"\t\n\r\\\"\'\u0062", | ||
"\t\n\r\\\"'\u0062", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second look, I'm not sure if this intended to write '
or \\'
. But, I'm not sure what "escaping" there is to check when roundtripping base64 anyway...
@@ -13,7 +13,7 @@ describe("unittests:: convertToBase64", () => { | |||
}); | |||
|
|||
it("Converts escape sequences correctly", () => { | |||
runTest("\t\n\r\\\"\'\u0062"); | |||
runTest("\t\n\r\\\"'\u0062"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly here.
Follow-up to #54693.
This actually caught a small number of oopsies where we wrote
\r\p
but meant\r\np