Code Monkey home page Code Monkey logo

Comments (10)

v1adko avatar v1adko commented on July 21, 2024 1

from kcd-scripts.

kentcdodds avatar kentcdodds commented on July 21, 2024

Hi @v1adko! I'm happy you're giving kcd-scripts a try :)

I'm pretty sure kcd-scripts does not need stuff like cssnano to run.

You're correct. I'm not sure why it's trying to read that. My guess is that it's trying to lint files in node_modules. Could you try kcd-scripts lint --debug? The --debug flag will be forwarded to eslint and it'll show you what files it's trying to lint. If it is trying to lint those files, could you look into what it's using for the eslint ignore?

Actually, now that I think of it I remembered there's an existing issue! eslint/eslint#9227

To solve this problem, I've always added an eslintIgnore property to my package.json. I'm hoping that we can solve this issue in ESLint eventually. Maybe I'll take some time to work on that because paypal-scripts will need this fixed as well. But feel free to work on that yourself!

I'm going to go ahead and close this as it's not actionable in this project but will be solved by eslint.

from kcd-scripts.

v1adko avatar v1adko commented on July 21, 2024

Thank you, adding eslintIgnore did help (.eslintignore worked too), even though it did require unfound eslint-plugin-babel and eslint-plugin-jest, but thankfully stopped at those two :)

Is it possible to encapsulate those within kcd-scripts too?

Also would be nice if we could pass something like --ignore-path to use .gitignore and not duplicate the ignore paths.
Or extra configuration will increase the complexity of this toolbox and it's better to manage without it?

from kcd-scripts.

kentcdodds avatar kentcdodds commented on July 21, 2024

Those should definitely be encapsulated within kcd-scripts. I've not had trouble with them. What version of npm are you using?

from kcd-scripts.

v1adko avatar v1adko commented on July 21, 2024

I use yarn 1.1.0

from kcd-scripts.

kentcdodds avatar kentcdodds commented on July 21, 2024

Also would be nice if we could pass something like --ignore-path to use .gitignore and not duplicate the ignore paths.

You can 😉

from kcd-scripts.

kentcdodds avatar kentcdodds commented on July 21, 2024

I don't use yarn, so I don't plan on supporting that in kcd-scripts. But I'm happy to accept a pull request if it doesn't complicate the codebase too much.

from kcd-scripts.

v1adko avatar v1adko commented on July 21, 2024

Of course I can :) Thanks.
OK, I'll try to figure it out.

Interestingly after dropping node_modules and yarn.lock and installing again issue persists.
And funny enough, installing kcd-scripts as a dependency and not a dev dependency it requires only eslint-plugin-jest.

from kcd-scripts.

kentcdodds avatar kentcdodds commented on July 21, 2024

Well that's totally weird. Sounds like it could be an issue with combining react-scripts and kcd-scripts. Though I haven't had this problem in this project 🤔

from kcd-scripts.

kentcdodds avatar kentcdodds commented on July 21, 2024

Try yarn why babel-plugin-jest and npm ls babel-plugin-jest. That'll tell you what packages require those packages...

from kcd-scripts.

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.