@tsslint/types 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +7 -3
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -15,8 +15,8 @@ export interface Plugin {
15
15
  }
16
16
  export interface PluginInstance {
17
17
  resolveRules?(fileName: string, rules: Record<string, Rule>): Record<string, Rule>;
18
- resolveDiagnostics?(sourceFile: SourceFile, diagnostics: DiagnosticWithLocation[]): DiagnosticWithLocation[];
19
- resolveCodeFixes?(sourceFile: SourceFile, diagnostic: Diagnostic, codeFixes: CodeFixAction[]): CodeFixAction[];
18
+ resolveDiagnostics?(file: SourceFile, diagnostics: DiagnosticWithLocation[]): DiagnosticWithLocation[];
19
+ resolveCodeFixes?(file: SourceFile, diagnostic: Diagnostic, codeFixes: CodeFixAction[]): CodeFixAction[];
20
20
  }
21
21
  export interface Rules {
22
22
  [name: string]: Rule | Rules;
@@ -29,8 +29,12 @@ export interface RuleContext {
29
29
  languageServiceHost: LanguageServiceHost;
30
30
  languageService: LanguageService;
31
31
  program: Program;
32
- sourceFile: SourceFile;
32
+ file: SourceFile;
33
33
  report(message: string, start: number, end: number, stackOffset?: number): Reporter;
34
+ /**
35
+ * @deprecated Use `file` instead.
36
+ */
37
+ sourceFile: SourceFile;
34
38
  /**
35
39
  * @deprecated Use `report` instead.
36
40
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsslint/types",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -11,5 +11,5 @@
11
11
  "url": "https://github.com/johnsoncodehk/tsslint.git",
12
12
  "directory": "packages/types"
13
13
  },
14
- "gitHead": "ae93f5a423f55be0af23e4b088bf589dbc215ef6"
14
+ "gitHead": "175c1f2840d38e50f8042542feb317acc7049f91"
15
15
  }