Skip to content

Commit

Permalink
fix(cli): exclude json files from tslint
Browse files Browse the repository at this point in the history
tslint complains:
ERROR: examples/soap-calculator/src/datasources/calculator.datasource.json[1, 1]:
unused expression, expected an assignment or function call
  • Loading branch information
raymondfeng committed Nov 8, 2018
1 parent 1dcf169 commit bd9f864
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/build/bin/run-tslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ function run(argv, options) {
if (tslintConfigFile) {
args.push('-c', tslintConfigFile);
}
// Exclude json files
args.push('-e', '**/*.json');
args.push(...tslintOpts);

return utils.runCLI('tslint/bin/tslint', args, options);
Expand Down

0 comments on commit bd9f864

Please sign in to comment.