You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.
Some people are starting to use typeof with "bigint" in their code, but ESLint's valid-typeof rule does not accept it, and ESLint will not support it until the proposal for BigInt reaches stage 4 (it's currently in stage 3).
Then someone at ESLint suggested to check eslint-plugin-babel for an augmented rule:
Your best chance at this point is to use babel-eslint (to parse literals), as well as to see if there is a rule in eslint-plugin-babel which augments valid-typeof to support big integers.
The text was updated successfully, but these errors were encountered:
Seconded, it's annoying to have to disable rules or go through other loop holes just to be able to work with BigInts.
The 'no-undef' rule can be bypassed by adding BigInt to ESLint globals, which stops it from reporting the use of the BigInt constructor, which is a reasonable workaround. But for the 'valid-typeof' rule I don't see a workaround other than disabling this rule either globally or locally, which really sucks either way.
I'd easily use eslint-plugin-babel even if all it did was augment that one rule for me.
Some people are starting to use
typeof
with"bigint"
in their code, but ESLint'svalid-typeof
rule does not accept it, and ESLint will not support it until the proposal for BigInt reaches stage 4 (it's currently in stage 3).Then someone at ESLint suggested to check eslint-plugin-babel for an augmented rule:
The text was updated successfully, but these errors were encountered: