Open sirentek opened 7 years ago
Usually the project configuration (--project) is tsconfig.json, whereas tslint.json is (obviously) the tslint configuration (--config).
Anyway, you just need to add another pipe:
.pipe(tslint({program: require("tslint").Linter.createProgram("./tsconfig.json")}))
gulp-tslint version: 8.1.2 tslint version: 5.6 Operating system: Windows10
Example gulpclass.ts task:
Console output: Warning: The 'no-use-before-declare' rule requires type information.
adding type-check parameter in command line solves it: tslint --type-check --project tslint.json =>Warning goes away.
how could we add type-check parameter in gulp-tslint ? I couldn't find a similar example..
Thanks!