mysticatea/eslint-plugin-node

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

Open

#96 创建于 2017年11月25日

在 GitHub 查看
 (5 评论) (2 反应) (0 负责人)JavaScript (186 fork)github user discovery
acceptedenhancementhelp wanted

仓库指标

Star
 (956 star)
PR 合并指标
 (PR 指标待抓取)

描述

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)?

贡献者指南