本文整理匯總了TypeScript中gulp-tslint.default函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript default函數的具體用法?TypeScript default怎麽用?TypeScript default使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了default函數的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: lint
export default function lint() {
return gulp.src([project.transpiler.source])
.pipe(tslint({
tslint: require("tslint")
}))
.pipe(tslint.report("prose"));
}
示例2:
gulp.task('format', () =>
gulp.src('./src/**/*.ts')
.pipe(tslint({
formatter: 'verbose',
fix: true
}))
.pipe(tslint.report())
示例3:
gulp.task('build:tslint', 'run tslint for *.ts files', () => {
return gulp.src(PATH.src.ts)
.pipe(tslint())
.pipe(tslint.report('verbose', {
emitError: false
}));
});
示例4: runTSLint
function runTSLint() {
return gulp.src(project.transpiler.source)
.pipe(tslint())
.pipe(tslint.report('prose', {
emitError: false
}));
}
示例5:
gulp.task('tslint', () => {
return gulp.src("src/**/*.ts")
.pipe(tslint())
.pipe(tslint.report("prose", {
emitError: false
}));
});
示例6:
gulp.task('tslint', () => {
return gulp.src("client/app/**/*.ts")
.pipe(tslint({
formatter: "prose"
}))
.pipe(tslint.report());
});
示例7:
gulp.task('tslint', () => {
return gulp.src("src/**/*.ts")
.pipe(tslint({
formatter: 'prose'
}))
.pipe(tslint.report());
});
示例8: function
gulp.task("tslint", function(): Q.Promise<any> {
var tslint: any = require("gulp-tslint");
return GulpUtils.streamToPromise(
gulp.src([buildConfig.src + "/**/*.ts",
"!" + buildConfig.src + "/typings/**"])
.pipe(tslint())
.pipe(tslint.report("verbose")));
});
示例9:
export = () => {
return gulp.src(Config.src.ts)
.pipe(tslint({
fix: true,
formatter: 'prose'
}))
.pipe(tslint.report());
};
示例10: lintTS
@Task('lint:ts')
public lintTS()
{
const tslint = require('gulp-tslint');
return gulp.src(['./src/**/*.ts', './Gulpfile.ts'])
.pipe(tslint())
.pipe(tslint.report('prose'));
}