Giter Site home page Giter Site logo

Comments (12)

ljharb avatar ljharb commented on July 3, 2024 1

Since @Kaybarax hasn't replied, nor has @noyoliel-devocean, and @florian-lefebvre's issue isn't reproducible, I'll close this, but happy to keep discussing, and will reopen if it repros.

from jsx-ast-utils.

ljharb avatar ljharb commented on July 3, 2024

What is that project-specific script? What version of jsx-ast-utils are you using?

from jsx-ast-utils.

noyoliel-devocean avatar noyoliel-devocean commented on July 3, 2024

I started getting this after moving to react 18 from react 16. Not sure what it relates to
jsx-ast-utils installed version: 3.3.3

from jsx-ast-utils.

ljharb avatar ljharb commented on July 3, 2024

Ok, but what is the precommit npm script? That’s something in your own package.json.

from jsx-ast-utils.

florian-lefebvre avatar florian-lefebvre commented on July 3, 2024

I have the same issue, using husky precommit hook: pnpm lint. Here is the (mono)repo: https://github.com/op-ent/op-ent

from jsx-ast-utils.

ljharb avatar ljharb commented on July 3, 2024

@florian-lefebvre in your case, it's running via nx. can you reproduce it if you run with npx eslint directly?

from jsx-ast-utils.

florian-lefebvre avatar florian-lefebvre commented on July 3, 2024

I checked in which workspace the error happened and it's in the remix app. Doing either pnpm --filter app lint or cd apps/app && pnpm lint throws the error so I think it's not related to nx. What can I do to help you?

from jsx-ast-utils.

ljharb avatar ljharb commented on July 3, 2024

then can you cd into apps/app and run npx eslint directly?

from jsx-ast-utils.

florian-lefebvre avatar florian-lefebvre commented on July 3, 2024

It doesn't output anything

from jsx-ast-utils.

ljharb avatar ljharb commented on July 3, 2024

That's very strange, since I assume that's all pnpm lint is running.

When I check out the monorepo you linked, and run pnpm install && pnpm lint, everything passes.

from jsx-ast-utils.

noyoliel-devocean avatar noyoliel-devocean commented on July 3, 2024

@ljharb I don't have any precommit hooks / npm precommit scripts as far as i'm aware.
It happens on local run of eslint. I get several of these messages without additional information in the logs.

from jsx-ast-utils.

ljharb avatar ljharb commented on July 3, 2024

@noyoliel-devocean if you can provide a repro repo i'd love to fix 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.