AGGIORNAMENTO CON TSLINT v5.8.0
Come è stata menzionata da Saugat Acharya è ora possibile aggiornare tslint.json Opzioni CLI:
{
"extends": "tslint:latest",
"linterOptions": {
"exclude": [
"bin",
"lib/*generated.js"
]
}
}
Maggiori informazioni here
Questa caratteristica è stata introdotta con TSLINT 3.6
tslint \"src/**/*.ts\" -e \"**/__test__/**\"
È ora possibile aggiungere --exclude (o -e) vedere PR qui.
CLI
enter code here 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
si sta guardando utilizzando
-e, --exclude exclude globs from path expansion
Buono a sapersi, tuttavia, non lo uso da un po '. – user3330840
sai come escludere percorsi multipli? –
ripetete l'argomento di esclusione più volte –