diff --git a/generators/linter/index.js b/generators/linter/index.js index ca06126..bfb457c 100644 --- a/generators/linter/index.js +++ b/generators/linter/index.js @@ -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( diff --git a/generators/linter/templates/tslint.json b/generators/linter/templates/tslint.json index 980e8a3..fd6cc30 100644 --- a/generators/linter/templates/tslint.json +++ b/generators/linter/templates/tslint.json @@ -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 + } }