Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

standardjs linter exclude file

I need to lint all project files (js) and exclude one file.

I was trying:

standard "www\**\*.js" "!www\fileToIgnore.js"

and

standard ["www\**\*.js" "!www\fileToIgnore.js"]

None of this works. Any idea?

like image 369
Piotr Wójcik Avatar asked Sep 13 '17 04:09

Piotr Wójcik


1 Answers

Please add the below block to your package.json file to ignore the files that you don't want to include while linting,

"standard": {
  "ignore": [
    "/www/**/*.js"
  ]
}

Hope this helps!

like image 153
David R Avatar answered Oct 19 '22 05:10

David R