standardjs linter排除文件

Pio*_*cik 5 javascript lint command-line-interface

我需要lint所有项目文件(js)并排除一个文件.

我在努力:

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

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

这些都不起作用.任何的想法?

Dav*_*d R 14

请将以下块添加到您的package.json文件中,以忽略您在linting时不想包含的文件,

"standard": {
  "ignore": [
    "/www/**/*.js"
  ]
}
Run Code Online (Sandbox Code Playgroud)

希望这可以帮助!