How to use gulp-tslint - 10 common examples

To help you get started, we’ve selected a few gulp-tslint examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github angular / zone.js / gulpfile.js View on Github external
gulp.task('lint', () => {
  const tslint = require('gulp-tslint');
  // Built-in rules are at
  // https://github.com/palantir/tslint#supported-rules
  const tslintConfig = require('./tslint.json');

  return gulp.src(['lib/**/*.ts', 'test/**/*.ts'])
      .pipe(tslint({
        tslint: require('tslint').default,
        configuration: tslintConfig,
        formatter: 'prose',
      }))
      .pipe(tslint.report({emitError: true}));
});
github moribvndvs / ng2-idle / config / gulp / linting.js View on Github external
gulp.task('tslint', () => {
  return gulp.src(config.PATHS.src.ts)
    .pipe(tslint({
      configuration: require('../../tslint.json'),
      formatter: 'verbose'
    }))
    .pipe(tslint.report());
});
github travist / jsencrypt / gulpfile.js View on Github external
gulp.task('lint', function () {
  return gulp.src(lintFiles)
      .pipe(tslint({}))
      .pipe(tslint.report({ summarizeFailureOutput: true }));
});
github angular / preboot / buildtasks / lint_task.js View on Github external
gulp.task('lint', function () {
    var program = tslint.createProgram('../tsconfig.json');

    return gulp.src(opts.tsFiles).
      pipe(gulpTsLint({
        formatter: 'verbose',
        program: program
      })).
      pipe(gulpTsLint.report());
  });
};
github angular / protractor / gulpfile.js View on Github external
gulp.task('tslint', () => {
  return gulp.src(['lib/**/*.ts', 'spec/**/*.ts', '!spec/install/**/*.ts'])
      .pipe(tslint())
      .pipe(tslint.report());
});
github inversify / inversify-devtools / gulpfile.js View on Github external
gulp.task("lint", function() {
    
    var config =  { emitError: (process.env.CI) ? true : false };
    
    return gulp.src([
        "src/**/**.ts",
        "test/**/**.test.ts"
    ])
    .pipe(tslint())
    .pipe(tslint.report("verbose", config));
});
github inversify / inversify-chrome-devtools / gulpfile.js View on Github external
gulp.task("lint", function() {
    
    var config =  { emitError: (process.env.CI) ? true : false };
    
    return gulp.src([
        "src/**/**.ts",
        "test/**/**.test.ts"
    ])
    .pipe(tslint())
    .pipe(tslint.report("verbose", config));
});
github r-park / todo-angular-firebase / gulpfile.js View on Github external
gulp.task('lint', () => {
  return gulp.src(paths.src.ts)
    .pipe(tslint())
    .pipe(tslint.report(
      config.tslint.report.type,
      config.tslint.report.options
    ));
});
github r-park / todo-angular-ngrx / gulpfile.js View on Github external
gulp.task('lint', () => {
  return gulp.src(paths.src.ts)
    .pipe(tslint())
    .pipe(tslint.report(
      config.tslint.report.type,
      config.tslint.report.options
    ));
});

gulp-tslint

TypeScript linter Gulp plugin

MIT
Latest version published 6 years ago

Package Health Score

53 / 100
Full package analysis

Popular gulp-tslint functions