简体   繁体   English

standardjs linter排除文件

[英]standardjs linter exclude file

I need to lint all project files (js) and exclude one file. 我需要lint所有项目文件(js)并排除一个文件。

I was trying: 我在努力:

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

and

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

None of this works. 这些都不起作用。 Any idea? 任何的想法?

Please add the below block to your package.json file to ignore the files that you don't want to include while linting, 请将以下块添加到package.json文件中,以忽略在linting时不想包含的文件,

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

Hope this helps! 希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM