Skip to content

Commit

Permalink
Add tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
czeckd committed Apr 9, 2016
1 parent cdb5c20 commit e2df2c2
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"lint": "tslint -c tslint.json app/**/*.ts || true",
"typings": "typings",
"postinstall": "typings install"
},
Expand All @@ -28,6 +29,7 @@
"concurrently": "^2.0.0",
"lite-server": "^2.1.0",
"typescript": "^1.8.9",
"typings":"^0.7.12"
"typings":"^0.7.12",
"tslint":"^3.7.1"
}
}
36 changes: 36 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"rules": {
"class-name": true,
"curly": false,
"eofline": true,
"indent": "tabs",
"max-line-length": [true, 140],
"member-ordering": [true,
"private-before-public",
"static-before-instance",
"variables-before-functions"
],
"no-arg": true,
"no-construct": true,
"no-duplicate-key": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-unused-variable": true,
"no-unreachable": true,
"no-use-before-declare": true,
"one-line": [true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [true, "single"],
"semicolon": true,
"triple-equals": true,
"variable-name": false
}
}

0 comments on commit e2df2c2

Please sign in to comment.