Giter Site home page Giter Site logo

Comments (6)

ljharb avatar ljharb commented on May 28, 2024

Are you perhaps using native ESM with a top-level await? If so, could you provide some of the code doing so?

from jsx-ast-utils.

wasim-ullah avatar wasim-ullah commented on May 28, 2024

Hi, thanks for your response, please find the code here: https://github.com/wasim-ullah/blog

from jsx-ast-utils.

ljharb avatar ljharb commented on May 28, 2024

@wasim-ullah i see the code, but no way to reproduce the problem. npx eslint --ext=js,jsx,mjs,ts,tsx ., for example, works fine.

from jsx-ast-utils.

david-abell avatar david-abell commented on May 28, 2024

I've just encountered this same issue using Astro when a tag has an async import statement in its src prop.

<img src={(await import('../assets/img/logo.svg')).default} alt="Your Logo" width="47" height="37" />

The exact code is from here: https://github.com/markteekman/accessible-astro-starter/blob/b0c006e4f37175f99788ea4f6b966785680eb9ea/src/components/Navigation.astro#L9

from jsx-ast-utils.

ljharb avatar ljharb commented on May 28, 2024

@david-abell i'm not familiar with that format, but i would not expect anything to be able to lint it, since it's entirely nonstandard, unless it had a custom eslint parser. https://github.com/markteekman/accessible-astro-starter/blob/b0c006e4f37175f99788ea4f6b966785680eb9ea/.eslintrc.js#L24 seems inaccurate, since that code is definitely not normal TypeScript.

from jsx-ast-utils.

ljharb avatar ljharb commented on May 28, 2024

I'm going to have to close this since I can't reproduce it, and .astro is a nonstandard format that would need a custom eslint parser at a minimum to handle.

I'll be more than happy to reopen it if there's a way to reproduce it.

from jsx-ast-utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.