eslint/js

Not ES2020

weaweawe01 opened this issue · 1 comments

espree.tokenize("alert(1n)")
Uncaught [SyntaxError: Identifier directly after number
] {
index: 7,
lineNumber: 1,
column: 8
}

bigint is supported, you need to pass the ecmaVersion >= 2020 or "latest".

espree.tokenize("1n", {ecmaVersion: 2020});