1. <legend id='fJ4VM'><style id='fJ4VM'><dir id='fJ4VM'><q id='fJ4VM'></q></dir></style></legend>
    <i id='fJ4VM'><tr id='fJ4VM'><dt id='fJ4VM'><q id='fJ4VM'><span id='fJ4VM'><b id='fJ4VM'><form id='fJ4VM'><ins id='fJ4VM'></ins><ul id='fJ4VM'></ul><sub id='fJ4VM'></sub></form><legend id='fJ4VM'></legend><bdo id='fJ4VM'><pre id='fJ4VM'><center id='fJ4VM'></center></pre></bdo></b><th id='fJ4VM'></th></span></q></dt></tr></i><div id='fJ4VM'><tfoot id='fJ4VM'></tfoot><dl id='fJ4VM'><fieldset id='fJ4VM'></fieldset></dl></div>

  2. <tfoot id='fJ4VM'></tfoot>
      <bdo id='fJ4VM'></bdo><ul id='fJ4VM'></ul>
  3. <small id='fJ4VM'></small><noframes id='fJ4VM'>

    1. 如何忽略 tslint 的特定目录或文件?

      时间:2023-10-02

      <small id='zUjP8'></small><noframes id='zUjP8'>

        <bdo id='zUjP8'></bdo><ul id='zUjP8'></ul>
        • <i id='zUjP8'><tr id='zUjP8'><dt id='zUjP8'><q id='zUjP8'><span id='zUjP8'><b id='zUjP8'><form id='zUjP8'><ins id='zUjP8'></ins><ul id='zUjP8'></ul><sub id='zUjP8'></sub></form><legend id='zUjP8'></legend><bdo id='zUjP8'><pre id='zUjP8'><center id='zUjP8'></center></pre></bdo></b><th id='zUjP8'></th></span></q></dt></tr></i><div id='zUjP8'><tfoot id='zUjP8'></tfoot><dl id='zUjP8'><fieldset id='zUjP8'></fieldset></dl></div>

            • <legend id='zUjP8'><style id='zUjP8'><dir id='zUjP8'><q id='zUjP8'></q></dir></style></legend>

                  <tbody id='zUjP8'></tbody>

                <tfoot id='zUjP8'></tfoot>
                本文介绍了如何忽略 tslint 的特定目录或文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                使用的 IDE 是 WebStorm 11.0.3,tslint 已配置并且可以工作,但是它挂起,因为它尝试解析大型 *.d.ts 库文件.

                The IDE being used is WebStorm 11.0.3, the tslint is configured and works, but, it hangs because it tries to parse large *.d.ts library files.

                有没有办法忽略特定的文件或目录?

                Is there a way to ignore a particular file or directory?

                推荐答案

                更新 tslint v5.8.0

                正如 Saugat Acharya 所述,您现在可以更新 tslint.json CLI 选项:

                As mentioned by Saugat Acharya, you can now update tslint.json CLI Options:

                {
                  "extends": "tslint:latest",
                  "linterOptions": {
                      "exclude": [
                          "bin",
                          "lib/*generated.js"
                      ]
                  }
                }
                

                更多信息在这个拉取请求中.

                此功能已在 tslint 3.6 中引入

                tslint "src/**/*.ts" -e "**/__test__/**"
                

                您现在可以在此处添加 --exclude(或 -e)参见 PR.

                You can now add --exclude (or -e) see PR here.

                CLI

                usage: tslint [options] file ...
                
                Options:
                
                -c, --config          configuration file
                --force               return status code 0 even if there are lint errors
                -h, --help            display detailed help
                -i, --init            generate a tslint.json config file in the current working directory
                -o, --out             output file
                -r, --rules-dir       rules directory
                -s, --formatters-dir  formatters directory
                -e, --exclude         exclude globs from path expansion
                -t, --format          output format (prose, json, verbose, pmd, msbuild, checkstyle)  [default: "prose"]
                --test                test that tslint produces the correct output for the specified directory
                -v, --version         current version
                

                你正在考虑使用

                -e, --exclude         exclude globs from path expansion
                

                这篇关于如何忽略 tslint 的特定目录或文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:用于 JavaScript 开发的 IDE 下一篇:有没有好的浏览器内代码编辑器?

                相关文章

                <small id='Y6Smy'></small><noframes id='Y6Smy'>

                <i id='Y6Smy'><tr id='Y6Smy'><dt id='Y6Smy'><q id='Y6Smy'><span id='Y6Smy'><b id='Y6Smy'><form id='Y6Smy'><ins id='Y6Smy'></ins><ul id='Y6Smy'></ul><sub id='Y6Smy'></sub></form><legend id='Y6Smy'></legend><bdo id='Y6Smy'><pre id='Y6Smy'><center id='Y6Smy'></center></pre></bdo></b><th id='Y6Smy'></th></span></q></dt></tr></i><div id='Y6Smy'><tfoot id='Y6Smy'></tfoot><dl id='Y6Smy'><fieldset id='Y6Smy'></fieldset></dl></div>
              1. <legend id='Y6Smy'><style id='Y6Smy'><dir id='Y6Smy'><q id='Y6Smy'></q></dir></style></legend>

                <tfoot id='Y6Smy'></tfoot>

                    • <bdo id='Y6Smy'></bdo><ul id='Y6Smy'></ul>