Commit 08fb022 1 parent 5acc18a commit 08fb022 Copy full SHA for 08fb022
File tree 2 files changed +16
-3
lines changed
2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -10845,12 +10845,18 @@ declare module Lint {
10845
10845
format: string;
10846
10846
output: string;
10847
10847
}
10848
+ interface ILinterOptions {
10849
+ configuration: any;
10850
+ formatter: string;
10851
+ formattersDirectory: string;
10852
+ rulesDirectory: string;
10853
+ }
10848
10854
class Linter {
10849
10855
private fileName;
10850
10856
private source;
10851
10857
private options;
10852
10858
static VERSION: string;
10853
- constructor(fileName: string, source: string, options: any );
10859
+ constructor(fileName: string, source: string, options: ILinterOptions );
10854
10860
public lint(): LintResult;
10855
10861
private getRelativePath(directory);
10856
10862
private containsRule(rules, rule);
Original file line number Diff line number Diff line change @@ -37,14 +37,21 @@ module Lint {
37
37
output : string ;
38
38
}
39
39
40
+ export interface ILinterOptions {
41
+ configuration : any ;
42
+ formatter : string ;
43
+ formattersDirectory : string ;
44
+ rulesDirectory : string ;
45
+ }
46
+
40
47
export class Linter {
41
48
private fileName : string ;
42
49
private source : string ;
43
- private options : any ;
50
+ private options : ILinterOptions ;
44
51
45
52
public static VERSION = "0.4.10" ;
46
53
47
- constructor ( fileName : string , source : string , options : any ) {
54
+ constructor ( fileName : string , source : string , options : ILinterOptions ) {
48
55
this . fileName = fileName ;
49
56
this . source = source ;
50
57
this . options = options ;
You can’t perform that action at this time.
0 commit comments