Skip to content

Commit

Permalink
chore(tslint-rules): Use ionic-tslint-rules (#276)
Browse files Browse the repository at this point in the history
* chore(tslint-rules): Use ionic-tslint-rules

* chore(tslint): Use ionic-gulp-tslint
  • Loading branch information
guillenotfound authored and ihadeed committed Jul 18, 2016
1 parent 5afcbfc commit f982b40
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 68 deletions.
8 changes: 2 additions & 6 deletions gulpfile.js
Expand Up @@ -2,7 +2,7 @@ var gulp = require('gulp');
var minimist = require('minimist');
var uglify = require('gulp-uglify');
var rename = require("gulp-rename");
var tslint = require('gulp-tslint');
var tslint = require('ionic-gulp-tslint');

var flagConfig = {
string: ['port', 'version', 'ngVersion', 'animations'],
Expand All @@ -25,8 +25,4 @@ gulp.task("minify:dist", function(){
.pipe(gulp.dest('./dist'));
});

gulp.task("tslint", function(){
gulp.src("src/**/*.ts")
.pipe(tslint())
.pipe(tslint.report('verbose'));
});
gulp.task('lint', tslint);
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -23,14 +23,15 @@
"gulp-rename": "^1.2.2",
"gulp-tslint": "^5.0.0",
"gulp-uglify": "^1.5.4",
"ionic-gulp-tslint": "^1.0.0",
"lodash": "3.10.1",
"minimist": "^1.1.3",
"mkdirp": "^0.5.1",
"node-html-encoder": "0.0.2",
"q": "1.4.1",
"semver": "^5.0.1",
"tslint": "^3.8.1",
"tslint-eslint-rules": "^1.3.0",
"tslint-ionic-rules": "0.0.3",
"typescript": "^1.8.10"
},
"scripts": {
Expand Down
63 changes: 2 additions & 61 deletions tslint.json
@@ -1,62 +1,3 @@
{
"rulesDirectory": "node_modules/tslint-eslint-rules/dist/rules",
"rules": {
"class-name": true,
"comment-format": [
true,
"check-space"
],
"indent": [
true,
"spaces"
],
"no-duplicate-variable": true,
"no-eval": true,
"no-internal-module": true,
"no-trailing-whitespace": true,
"no-var-keyword": false,
"one-line": [
true,
"check-open-brace",
"check-whitespace"
],
"quotemark": [
true,
"single"
],
"semicolon": [
true,
"always"
],
"triple-equals": [
true,
"allow-null-check"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": [
true,
"ban-keywords"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
],
"no-inner-declarations": [
true,
"functions"
]
}
}
"extends": "tslint-ionic-rules"
}

0 comments on commit f982b40

Please sign in to comment.