question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynamic Imports and BigInt have arrived at Stage 4 🎉

See original GitHub issue

Dynamic Imports and BigInt have arrived at Stage 4. This is the tracking issue to support the new syntaxes.

  • https://github.com/estree/estree/pull/198 ESTree Spec Update
  • https://github.com/acornjs/acorn/pull/844 Acorn Update
  • https://github.com/eslint/eslint-visitor-keys/pull/8 eslint-visitor-keys Update
  • https://github.com/eslint/espree/pull/415 espree Update
  • ESLint Update 1: the following stuff look like to need update.
    • #11983 envs should have new globals (BigInt, BigInt64Array, and BigUint64Array)
    • #11983 CodePathAnalyzer: should recognize ImportExpression node as a throwable node.
    • #11983 astUtils.getPrecedence(node): should recognize ImportExpression literals.
    • #11983 astUtils.isNullLiteral(node): should recognize BigInt literals.
    • #11983 func-call-spacing rule: should recognize ImportExpression node. (or new rule?)
    • #11983 function-paren-newline rule: should recognize ImportExpression node. (or new rule?)
    • #11983 indent rule: should recognize ImportExpression node.
    • #11983 new-cap rule: should recognize BigInt function.
    • #11983 no-extra-parens rule: should recognize ImportExpression node.
    • #11802 valid-typeof rule: should recognize BigInt type.
  • ESLint Update 2: the following stuff look like to need update, but breaking changes.
    • no-compare-neg-zero rule: should recognize BigInt literals.
    • #12701 no-extend-native rule: should recognize BigInt function.
    • #12701 no-magic-number rule: should recognize BigInt literals.
    • #12701 yoda rule: should recognize BigInt literals.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:17
  • Comments:25 (15 by maintainers)

github_iconTop GitHub Comments

4reactions
dandvcommented, Jun 27, 2019

You can use babel-eslint as parser.

I’m trying to be babel-free.

Please revisit #11189 as well.

2reactions
mysticateacommented, Sep 1, 2019

Yes. Those are in 6.2.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Improvements to JavaScript in the new ES2020 standard
This technology allows you to import JavaScript files dynamically, as modules, without any additional tools. In this case, if a module is not ......
Read more >
ECMAScript - Introducing Dynamic Imports in ES2020 (ES11)
In this article, we're going to examine and explain the “Dynamic Import” proposal that has been reached stage 4 and belongs to ECMAScript ......
Read more >
ES2020: `import()` – dynamically importing ES modules - 2ality
The ECMAScript proposal “ import() ” by Domenic Denicola is at stage 4 and part of ECMAScript 2020. It enables dynamic loading of...
Read more >
import() - JavaScript - MDN Web Docs - Mozilla
Dynamic imports allows one to circumvent the syntactic rigidity of import declarations and load a module conditionally or on demand.
Read more >
What's new in ECMAScript 2020 (ES2020) - MCRO
In order to access a deep level property, we need to check at each level ... may only be known at runtime, so...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found