Skip to content

Commit 08fb022

Browse files
committed
Added ILinterOptions interface
1 parent 5acc18a commit 08fb022

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

lib/tslint.d.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -10845,12 +10845,18 @@ declare module Lint {
1084510845
format: string;
1084610846
output: string;
1084710847
}
10848+
interface ILinterOptions {
10849+
configuration: any;
10850+
formatter: string;
10851+
formattersDirectory: string;
10852+
rulesDirectory: string;
10853+
}
1084810854
class Linter {
1084910855
private fileName;
1085010856
private source;
1085110857
private options;
1085210858
static VERSION: string;
10853-
constructor(fileName: string, source: string, options: any);
10859+
constructor(fileName: string, source: string, options: ILinterOptions);
1085410860
public lint(): LintResult;
1085510861
private getRelativePath(directory);
1085610862
private containsRule(rules, rule);

src/tslint.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,21 @@ module Lint {
3737
output: string;
3838
}
3939

40+
export interface ILinterOptions {
41+
configuration: any;
42+
formatter: string;
43+
formattersDirectory: string;
44+
rulesDirectory: string;
45+
}
46+
4047
export class Linter {
4148
private fileName: string;
4249
private source: string;
43-
private options: any;
50+
private options: ILinterOptions;
4451

4552
public static VERSION = "0.4.10";
4653

47-
constructor(fileName: string, source: string, options: any) {
54+
constructor(fileName: string, source: string, options: ILinterOptions) {
4855
this.fileName = fileName;
4956
this.source = source;
5057
this.options = options;

0 commit comments

Comments
 (0)