Giter Site home page Giter Site logo

Comments (7)

kiprasmel avatar kiprasmel commented on June 24, 2024 1

I'm just trying to test a shared config myself before publishing to make sure it works.

Doesn't matter though - I figured I'll just use yarn link.
Thank you for your time & help:)

from install-peerdeps.

ljharb avatar ljharb commented on June 24, 2024

No eslint things should be installed globally; eslint v6 forces local installs more aggressively anyways.

from install-peerdeps.

ljharb avatar ljharb commented on June 24, 2024

Global things aren’t requireable, so theycant satisfy peer dep requirements anyways.

from install-peerdeps.

kiprasmel avatar kiprasmel commented on June 24, 2024

No eslint things should be installed globally; eslint v6 forces local installs more aggressively anyways.

Yeah I've tried to get everything working with eslint 6.x but wasted wayyy too much time and it didn't. Went back to 5.x and it's awesome now (both prettier, eslint & typescript work together) 🚀

Global things aren’t requireable, so they_cant_ satisfy peer dep requirements anyways.

Don't understand this, could you elaborate?

from install-peerdeps.

ljharb avatar ljharb commented on June 24, 2024

Yes. You can’t require() global packages, only run them on the command line. Peer deps are for things your package requires, in its code. Global packages this only make sense when they have no peer deps, which aces out any eslint things.

from install-peerdeps.

kiprasmel avatar kiprasmel commented on June 24, 2024

I mean installing the peerDeps before publishing lets me test eslint out from the command line to make sure it's working fine, so the globally installed peerDeps do make a difference (I suppose?).

from install-peerdeps.

ljharb avatar ljharb commented on June 24, 2024

I’m not sure what you mean. If you want to test a shared config before publishing, you’d npm link it, and each of its peer deps, into another project (or, install it from git in the other project).

from install-peerdeps.

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.