npm-package-json-lint icon indicating copy to clipboard operation
npm-package-json-lint copied to clipboard

Add ability for `require-bin` to be false

Open ericcornelissen opened this issue 5 months ago • 0 comments

Instead of requiring a project to have a bin, I want to require that my project does not have a bin. The options "error", "warning", and "off" don't cover this use case. Looking to ESLint for inspirations (which seems to be what this project's configuration language is based on), some configuration like the following could work:

{
  "require-bin": ["error", "always"] // (default) enforce having a bin
}
{
  "require-bin": ["error", "never"] // having no bin
}

ericcornelissen avatar Jul 09 '25 08:07 ericcornelissen