aboutsummaryrefslogtreecommitdiff
path: root/tools/tasks/tslint.ts
blob: ccea264203d305244960a2a98d512b6f25123033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import {join} from 'path';
import {APP_SRC, TOOLS_DIR} from '../config';

export = function tslint(gulp, plugins) {
  return function () {
    let src = [
                join(APP_SRC, '**/*.ts'),
                '!' + join(APP_SRC, '**/*.d.ts'),
                join(TOOLS_DIR, '**/*.ts'),
                '!' + join(TOOLS_DIR, '**/*.d.ts')
              ];

    return gulp.src(src)
      .pipe(plugins.tslint())
      .pipe(plugins.tslint.report(plugins.tslintStylish, {
        emitError: false,
        sort: true,
        bell: true
      }));
  };
};