Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Oct 8, 2016
1 parent 131aec3 commit 6d333a4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tslintMulti.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import {
} from "./configuration";
import { EnableDisableRulesWalker } from "./enableDisableRules";
import { findFormatter } from "./formatterLoader";
import { createLanguageService, wrapProgram } from "./language/languageServiceHost";
import { IFormatter } from "./language/formatter/formatter";
import { createLanguageService, wrapProgram } from "./language/languageServiceHost";
import { RuleFailure } from "./language/rule/rule";
import { TypedRule } from "./language/rule/typedRule";
import { getSourceFile } from "./language/utils";
Expand Down
2 changes: 2 additions & 0 deletions test/rules/no-unused-variable/type-checked/a.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export class A {}
export var a: A;
5 changes: 5 additions & 0 deletions test/rules/no-unused-variable/type-checked/test.ts.lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {a, A} from './a';

export class B {
static thing = a;
}
5 changes: 5 additions & 0 deletions test/rules/no-unused-variable/type-checked/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"declaration": true
}
}
8 changes: 8 additions & 0 deletions test/rules/no-unused-variable/type-checked/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"linterOptions": {
"typeCheck": true
},
"rules": {
"no-unused-variable": true
}
}

0 comments on commit 6d333a4

Please sign in to comment.