Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #56 from buzinas/npm-update
Browse files Browse the repository at this point in the history
[feat] updated npm dependencies and fixed a typing bug - closes #55
  • Loading branch information
buzinas committed Mar 18, 2016
2 parents 9da7ba8 + ccd5cdf commit 4fb56ad
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ gulpfile.js
jsconfig.json
tsconfig.json
tslint.json
generate-changelog.bat
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tslint-eslint-rules",
"version": "1.0.1",
"version": "1.1.0",
"description": "Improve your TSLint with the missing ESLint Rules",
"main": "index.js",
"scripts": {
Expand All @@ -24,17 +24,17 @@
"author": "Vitor Buzinaro <[email protected]>",
"license": "MIT",
"devDependencies": {
"chai": "^3.4.1",
"gulp": "^3.9.0",
"chai": "^3.5.0",
"gulp": "^3.9.1",
"gulp-sourcemaps": "^1.6.0",
"gulp-spawn-mocha": "^2.2.1",
"gulp-spawn-mocha": "^2.2.2",
"gulp-tslint": "^3.6.0",
"gulp-typescript": "^2.10.0",
"mocha": "^2.3.3",
"typescript": "^1.7.3"
"gulp-typescript": "^2.12.1",
"mocha": "^2.4.5",
"typescript": "^1.8.9"
},
"dependencies": {
"doctrine": "^0.7.1",
"tslint": "^3.2.0"
"doctrine": "^0.7.2",
"tslint": "^3.6.0"
}
}
2 changes: 1 addition & 1 deletion src/rules/noDuplicateCaseRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class NoDuplicateCaseWalker extends Lint.RuleWalker {
this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING));
}
else {
cases.set(key, clause);
cases.set(key, clause as ts.CaseClause);
}
}
});
Expand Down
8 changes: 4 additions & 4 deletions src/test/rules/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ export function testScript(rule: string, scriptText: string, config: Object): bo
return failures.length === 0;
}

export function makeTest(rule: string, scripts: Array<string>, expected: boolean, config?: Object) {
export function makeTest(rule: string, scripts: Array<string>, expected: boolean, config?: { rules: {} }) {
if (!config) {
config = {
rules: {
[rule]: true
}
rules: {}
};

config.rules[rule] = true;
}

scripts.forEach(code => {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES5",
"target": "es5",
"module": "commonjs",
"removeComments": true
}
Expand Down

0 comments on commit 4fb56ad

Please sign in to comment.