Skip to content

Commit

Permalink
Merge pull request palantir#169 from DickvdBrink/LintOptions
Browse files Browse the repository at this point in the history
Added ILinterOptions interface
  • Loading branch information
ashwinr committed Jun 24, 2014
2 parents 5acc18a + 08fb022 commit fef6cc8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
8 changes: 7 additions & 1 deletion lib/tslint.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10845,12 +10845,18 @@ declare module Lint {
format: string;
output: string;
}
interface ILinterOptions {
configuration: any;
formatter: string;
formattersDirectory: string;
rulesDirectory: string;
}
class Linter {
private fileName;
private source;
private options;
static VERSION: string;
constructor(fileName: string, source: string, options: any);
constructor(fileName: string, source: string, options: ILinterOptions);
public lint(): LintResult;
private getRelativePath(directory);
private containsRule(rules, rule);
Expand Down
11 changes: 9 additions & 2 deletions src/tslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,21 @@ module Lint {
output: string;
}

export interface ILinterOptions {
configuration: any;
formatter: string;
formattersDirectory: string;
rulesDirectory: string;
}

export class Linter {
private fileName: string;
private source: string;
private options: any;
private options: ILinterOptions;

public static VERSION = "0.4.10";

constructor(fileName: string, source: string, options: any) {
constructor(fileName: string, source: string, options: ILinterOptions) {
this.fileName = fileName;
this.source = source;
this.options = options;
Expand Down

0 comments on commit fef6cc8

Please sign in to comment.