mysticatea/eslint-plugin-node

In `node/shebang` add options to disable check on non `bin` files

Open

#96 aberto em 25 de nov. de 2017

Ver no GitHub
 (5 comments) (2 reactions) (0 assignees)JavaScript (186 forks)github user discovery
acceptedenhancementhelp wanted

Métricas do repositório

Stars
 (956 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

It's quite common in projects to have node script files that are not distributed and therefore not present in the bin property of the package.json. For example: build scripts, benchmark scripts. test scripts etc...

Would it be possible to add an option to the shebang to disable the check on the files not referenced in the bin property? Or maybe, even better, instead of option, just change the rules to consider only files included in the npm package (files in the files property and not in .npmignore)?

Guia do colaborador