Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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}));
});
gulp.task('tslint', () => {
return gulp.src(config.PATHS.src.ts)
.pipe(tslint({
configuration: require('../../tslint.json'),
formatter: 'verbose'
}))
.pipe(tslint.report());
});
gulp.task('lint', function () {
return gulp.src(lintFiles)
.pipe(tslint({}))
.pipe(tslint.report({ summarizeFailureOutput: true }));
});
gulp.task('lint', function () {
var program = tslint.createProgram('../tsconfig.json');
return gulp.src(opts.tsFiles).
pipe(gulpTsLint({
formatter: 'verbose',
program: program
})).
pipe(gulpTsLint.report());
});
};
gulp.task('tslint', () => {
return gulp.src(['lib/**/*.ts', 'spec/**/*.ts', '!spec/install/**/*.ts'])
.pipe(tslint())
.pipe(tslint.report());
});
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));
});
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));
});
gulp.task('lint', () => {
return gulp.src(paths.src.ts)
.pipe(tslint())
.pipe(tslint.report(
config.tslint.report.type,
config.tslint.report.options
));
});
gulp.task('lint', () => {
return gulp.src(paths.src.ts)
.pipe(tslint())
.pipe(tslint.report(
config.tslint.report.type,
config.tslint.report.options
));
});