Tslint v5.8.0 के लिए अद्यतन
जैसा कि सौगत आचार्य ने बताया , अब आप tslint.json CLI विकल्प अपडेट कर सकते हैं :
{
"extends": "tslint:latest",
"linterOptions": {
"exclude": [
"bin",
"lib/*generated.js"
]
}
}
इस पुल अनुरोध में अधिक जानकारी ।
इस फीचर को tslint 3.6 के साथ पेश किया गया है
tslint \"src/**/*.ts\" -e \"**/__test__/**\"
अब आप देख सकते हैं --exclude (या -e) PR को यहाँ देखें ।
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