mcasimir / depcheck-ci

Npm depcheck util that plays nice with ci
1 stars 1 forks source link

depcheck-ci should whitelist itself? #3

Open pdehaan opened 7 years ago

pdehaan commented 7 years ago
$ ./node_modules/.bin/depcheck-ci --version # 1.0.1

I'm working on a project, and have the following .depcheckrc file:

{
  "ignore": [
    "babel-*",
    "browserify",
    "fx-runner",
    "geckodriver",
    "jpm",
    "node-sass",
    "nodemon",
    "raven-js",
    "uglify-js"
  ]
}

If I run ./node_modules/.bin/depcheck-ci, it tells me that depcheck-ci is an unused dependency. Since that's the tool I'm using, I'm wondering if we should just special case that and ignore the module if it appears in the results:

$ ./node_modules/.bin/depcheck-ci
error: You have unused dependencies:

depcheck-ci

$ echo $? # 1