Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new rule: portability #306

Open
boneskull opened this issue Aug 23, 2023 · 0 comments
Open

new rule: portability #306

boneskull opened this issue Aug 23, 2023 · 0 comments
Labels
enhancement New feature or request rules related to rules or linting

Comments

@boneskull
Copy link
Owner

This rule would check that--unless specified in the os field of package.json--the package is not portable as installed.

This would include things like:

  • bash-isms, path expansion or shell scripts in postinstall
  • OS-specific packages in dependencies or npm-shrinkwrap.json

This was prompted by a package which published an npm-shrinkwrap.json containing a OS-specific package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rules related to rules or linting
Projects
None yet
Development

No branches or pull requests

1 participant