Git Product home page Git Product logo

Comments (7)

duaraghav8 avatar duaraghav8 commented on July 21, 2024 1

Discussion opened at https://npm.community/t/allow-any-one-of-specified-packages-in-peerdependencies/4933

from solium-plugin-security.

duaraghav8 avatar duaraghav8 commented on July 21, 2024 1

Hey @pcowgill sorry for late response, yes this is the ideal solution, but unfortunately I don't have the bandwidth to change this, because this requires huge changes in this repo as well as some changes & tests in core ethlint (to allow reading npm modules prefixed with ethlint-plugin-, currently it can only read solium-plugin-)

from solium-plugin-security.

pcowgill avatar pcowgill commented on July 21, 2024 1

@duaraghav8 Totally understandable. Thanks for getting back to me!

from solium-plugin-security.

duaraghav8 avatar duaraghav8 commented on July 21, 2024

Great point @zachlysobey
I just confirmed from docs and the actual code that there is unfortunately no way to specify an OR condition in peer deps.

I'll open up an issue with NPM. Until an OR is possible, I'll add this caveat to the Docs.

I don't want to change the peer dep from solium to ethlint right now because it could be breaking for anyone who treats warnings as errors too.

I'm open to hearing any suggestions you have on solving this problem.
Please ignore the warning for now.

from solium-plugin-security.

duaraghav8 avatar duaraghav8 commented on July 21, 2024

(This comment is for my own future reference)

Issue has been added to Blocked Tasks.

Once OR is available:

  • Modify security plugin to use it
  • Remove caveat from plugin's doc as well as Ethlint docs
  • Modify Ethlint Dev doc to inform reader to use this OR feature in peer deps to specify both solium and ethlint.

from solium-plugin-security.

pcowgill avatar pcowgill commented on July 21, 2024

@duaraghav8 What about renaming this repo to ethlint-plugin-security and publishing to npm from the main feature branch a new package named ethlint-plugin-security with a peer deep of ethlint, and from a legacy feature branch publishing the old package named solium-plugin-security with the existing peer dep?

from solium-plugin-security.

pcowgill avatar pcowgill commented on July 21, 2024

@duaraghav8 What about renaming this repo to ethlint-plugin-security and publishing to npm from the main feature branch a new package named ethlint-plugin-security with a peer deep of ethlint, and from a legacy feature branch publishing the old package named solium-plugin-security with the existing peer dep?

Do you think this would be a workable solution? Thanks!

from solium-plugin-security.

Related Issues (9)

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.