Skip to content

add new lints matching some ECMA-262 editorial conventions#693

Open
michaelficarra wants to merge 1 commit intomainfrom
algorithm-spelling-lints
Open

add new lints matching some ECMA-262 editorial conventions#693
michaelficarra wants to merge 1 commit intomainfrom
algorithm-spelling-lints

Conversation

@michaelficarra
Copy link
Copy Markdown
Member

Disclaimer: I used AI in the process of creating this PR.


const ruleId = 'algorithm-spelling';

// Note that these will be composed, so cannot contain backreferences
Copy link
Copy Markdown
Member

@bakkot bakkot Apr 10, 2026

Choose a reason for hiding this comment

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

I mean... named backreferences are fine as long as you're running on an engine with tc39/ecma262#2721!

Probably the LLM copied this from here, but that comment predates the above spec change.

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.

Still a shared namespace. I think the comment should remain.

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.

No it's not?

Copy link
Copy Markdown
Member

@bakkot bakkot left a comment

Choose a reason for hiding this comment

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

These seem like they might have false positives, but if you've run it against 262, 402, and Temporal with no false positives it's fine to land and we can go back and relax any annoying ones later.

Not totally sure all of these should be confined to algorithms, though.

@michaelficarra
Copy link
Copy Markdown
Member Author

I ran it against 262, hence tc39/ecma262#3805. Haven't run it against 402 or any other specs yet, but I imagine it will just discover changes we actually want to make.

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