FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Enable eslint rule no-useless-escape by jakebailey · Pull Request #55138 · microsoft/TypeScript · GitHub

Enable eslint rule no-useless-escape - #55138

Merged
Jake Bailey (jakebailey) merged 4 commits into
microsoft:mainfrom
jakebailey:eslint-no-useless-escape
Jul 28, 2023
Merged

Enable eslint rule no-useless-escape#55138
Jake Bailey (jakebailey) merged 4 commits into
microsoft:mainfrom
jakebailey:eslint-no-useless-escape

Conversation

Copy link
Copy Markdown
Member

Follow-up to #54693.

This actually caught a small number of oopsies where we wrote \r\p but meant \r\np

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I hated reviewing this.

Copy link
Copy Markdown
Member Author

Sending it was slightly better; at least I had a quick fix but no --fix because there are two quick fixes, the "preserve behavior" button or the "actually I meant \\p" button.

"🐱",
"\x00\x01",
"\t\n\r\\\"\'\u0062",
"\t\n\r\\\"'\u0062",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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...


it("Converts escape sequences correctly", () => {
runTest("\t\n\r\\\"\'\u0062");
runTest("\t\n\r\\\"'\u0062");

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Similarly here.

Jake Bailey (jakebailey) merged commit 6a96b97 into microsoft:main Jul 28, 2023
Jake Bailey (jakebailey) deleted the eslint-no-useless-escape branch July 28, 2023 23:02
Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL