使用されている IDE は WebStorm 11.0.3 で、tslint は構成されていて動作しますが、大きな *.d.ts ライブラリ ファイルを解析しようとするためハングします。
特定のファイルまたはディレクトリを無視する方法はありますか?
ベストアンサー1
前述の通りサウガト・アチャリヤ、更新できるようになりましたtslint.jsonCLI オプション:
{
"extends": "tslint:latest",
"linterOptions": {
"exclude": [
"bin",
"lib/*generated.js"
]
}
}
詳しくはこのプルリクエストで。
この機能は、tslint 3.6
tslint \"src/**/*.ts\" -e \"**/__test__/**\"
--exclude (または -e) を追加できるようになりました。広報ここ。
コマンドライン
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