Skip to content

Commit

Permalink
Update: tslint rules according to #15
Browse files Browse the repository at this point in the history
gaurav21r committed Sep 23, 2016
1 parent 2b76152 commit b7f693c
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion generators/linter/index.js
Original file line number Diff line number Diff line change
@@ -112,7 +112,7 @@ module.exports = yeoman.Base.extend({
devDependencies: {
typescript: '^1.8.10',
tslint: '^3.15.1',
'tslint-microsoft-contrib': '^2.0.10',
'tslint-microsoft-contrib': '^2.0.12',
},
});
this.fs.copyTpl(
9 changes: 6 additions & 3 deletions generators/linter/templates/tslint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"rulesDirectory": [
"./node_modules/tslint-microsoft-contrib/tslint.json"
]
"rulesDirectory": "node_modules/tslint-microsoft-contrib",
"extends": "tslint-microsoft-contrib",
"rules": {
"no-for-in-array": false,
"restrict-plus-operands": false
}
}

0 comments on commit b7f693c

Please sign in to comment.