Skip to content

Instantly share code, notes, and snippets.

@ericis
Last active November 12, 2015 01:34
Show Gist options
  • Save ericis/35161f8eca326e001c11 to your computer and use it in GitHub Desktop.
Save ericis/35161f8eca326e001c11 to your computer and use it in GitHub Desktop.
gulp-tslint-code-subdir
var x = 10;
var z = 'whee';
tada
class customer {
tada();
}
var process = process || { exit: new Function() };
var gulp = require("gulp");
var tslint = require("gulp-tslint");
gulp.task("tslint", function () {
return gulp
.src(["code\app.ts"])
.pipe(tslint())
.pipe(tslint.report("verbose"));
});
{
"private": true,
"name": "gulp-tslint-code-subdir",
"version": "1.0.0",
"devDependencies": {
"gulp": "^3.9.0",
"gulp-tslint": "^3.6.0"
}
}
{
"rules": {
"class-name": true,
"curly": true,
"eofline": false,
"forin": true,
"indent": [
true,
4
],
"label-position": true,
"label-undefined": true,
"max-line-length": [
true,
140
],
"no-arg": true,
"no-bitwise": true,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-construct": true,
"no-debugger": true,
"no-duplicate-key": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-imports": true,
"no-string-literal": false,
"no-trailing-comma": true,
"no-trailing-whitespace": true,
"no-unused-variable": false,
"no-unreachable": true,
"no-use-before-declare": true,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [
true,
"single"
],
"radix": true,
"semicolon": true,
"triple-equals": [
true,
"allow-null-check"
],
"variable-name": false,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment