Permalink
Browse files

chore(tslint-rules): Use ionic-tslint-rules (#276)

* chore(tslint-rules): Use ionic-tslint-rules

* chore(tslint): Use ionic-gulp-tslint
  • Loading branch information...
1 parent 5afcbfc commit f982b401660af3a798a929f3b2a5af5177dffd17 @ZiFFeL1992 ZiFFeL1992 committed with ihadeed Jul 18, 2016
Showing with 6 additions and 68 deletions.
  1. +2 −6 gulpfile.js
  2. +2 −1 package.json
  3. +2 −61 tslint.json
View
@@ -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'],
@@ -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);
View
@@ -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": {
View
@@ -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.