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

Conform bigint literals to the new ESTree spec #1999

Closed
bradzacher opened this issue May 10, 2020 · 0 comments · Fixed by #1389
Closed

Conform bigint literals to the new ESTree spec #1999

bradzacher opened this issue May 10, 2020 · 0 comments · Fixed by #1389
Labels
breaking change This change will require a new major version to be released enhancement New feature or request package: typescript-estree Issues related to @typescript-eslint/typescript-estree
Milestone

Comments

@bradzacher
Copy link
Member

bradzacher commented May 10, 2020

For this code example:

const x = 1n;

We currently emit the following AST (excluding the variable decl):

{
  "type": "BigIntLiteral",
  "raw": "1n",
  "value": "1",
}

When we should be emitting this (as per the ESTree spec

{
  "type": "Literal",
  "raw": "1n",
  "value": 1n,
  "bigint": "1"
}
@bradzacher bradzacher added enhancement New feature or request package: typescript-estree Issues related to @typescript-eslint/typescript-estree breaking change This change will require a new major version to be released labels May 10, 2020
@bradzacher bradzacher added this to the 3.0.0 milestone May 10, 2020
@bradzacher bradzacher linked a pull request May 10, 2020 that will close this issue
4 tasks
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking change This change will require a new major version to be released enhancement New feature or request package: typescript-estree Issues related to @typescript-eslint/typescript-estree
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant