Skip to content
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

Add record and tuple tokens to eslint parser #13477

Merged
merged 2 commits into from
Jun 17, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add record and tuple brace and hash tokens to eslint parser
  • Loading branch information
plourenco committed Jun 17, 2021
commit 2b347afec4dba5c9acd14f1e6b0ce1c30c027f5b
6 changes: 6 additions & 0 deletions eslint/babel-eslint-parser/src/convert/convertTokens.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ function convertToken(token, source, tl) {
label === tl.doubleColon ||
label === tl.hash ||
label === tl.questionDot ||
label === tl.braceHashL ||
label === tl.braceBarL ||
label === tl.braceBarR ||
label === tl.bracketHashL ||
label === tl.bracketBarL ||
label === tl.bracketBarR ||
type.isAssign
) {
token.type = "Punctuator";
Expand Down