Skip to content

Remove no-useless-escape lint rule - #417

Merged
astarinmymind merged 2 commits into
developfrom
delete-no-useless-escape
Mar 20, 2021
Merged

astarinmymind merged 2 commits into
developfrom
delete-no-useless-escape

Conversation

@astarinmymind

Copy link
Copy Markdown
Contributor

This PR fixes one line that uses a "useless escape". I removed the escape character, as well as added the u flag, resolving two eslint issues. I then removed the disable for this rule in the eslint config.

@astarinmymind
astarinmymind requested a review from a team as a code owner March 20, 2021 02:26

@Gudahtt Gudahtt left a comment

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.

LGTM!

Comment thread src/util.ts
const normalized = ensNamehash.normalize(ensName.trim());
// this regex is only sufficient with the above call to ensNamehash.normalize
// TODO: change 7 in regex to 3 when shorter ENS domains are live
// eslint-disable-next-line require-unicode-regexp

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.

Nice! Always great to see these removed.

@astarinmymind
astarinmymind merged commit d957f15 into develop Mar 20, 2021
@astarinmymind
astarinmymind deleted the delete-no-useless-escape branch March 20, 2021 04:50
Mrtenz pushed a commit that referenced this pull request Oct 16, 2025
Recent entries referenced the wrong PR number in the change entry. IT
correctly linked #413 but the link text was mistakenly left as 404.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants