@tsslint/core 1.4.5 → 1.4.6
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.
- package/index.d.ts +3 -1
- package/index.js +1 -1
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -11,7 +11,9 @@ export type FileLintCache = [
|
|
|
11
11
|
minimatchResult: Record<string, boolean>
|
|
12
12
|
];
|
|
13
13
|
export type Linter = ReturnType<typeof createLinter>;
|
|
14
|
-
export declare function createLinter(ctx: ProjectContext, config: Config | Config[], mode: 'cli' | 'typescript-plugin', syntaxOnlyLanguageService?: ts.LanguageService
|
|
14
|
+
export declare function createLinter(ctx: ProjectContext, config: Config | Config[], mode: 'cli' | 'typescript-plugin', syntaxOnlyLanguageService?: ts.LanguageService & {
|
|
15
|
+
getNonBoundSourceFile?(fileName: string): ts.SourceFile;
|
|
16
|
+
}): {
|
|
15
17
|
lint(fileName: string, cache?: FileLintCache): ts.DiagnosticWithLocation[];
|
|
16
18
|
hasCodeFixes(fileName: string): boolean;
|
|
17
19
|
getCodeFixes(fileName: string, start: number, end: number, diagnostics?: ts.Diagnostic[], minimatchCache?: FileLintCache[2]): ts.CodeFixAction[];
|
package/index.js
CHANGED
|
@@ -38,7 +38,7 @@ function createLinter(ctx, config, mode, syntaxOnlyLanguageService) {
|
|
|
38
38
|
}));
|
|
39
39
|
const normalizedPath = new Map();
|
|
40
40
|
const rule2Mode = new Map();
|
|
41
|
-
const getNonBoundSourceFile = syntaxOnlyLanguageService
|
|
41
|
+
const getNonBoundSourceFile = syntaxOnlyLanguageService?.getNonBoundSourceFile;
|
|
42
42
|
let shouldEnableTypeAware = false;
|
|
43
43
|
return {
|
|
44
44
|
lint(fileName, cache) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsslint/core",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"directory": "packages/core"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@tsslint/types": "1.4.
|
|
15
|
+
"@tsslint/types": "1.4.6",
|
|
16
16
|
"error-stack-parser": "^2.1.4",
|
|
17
17
|
"esbuild": ">=0.17.0",
|
|
18
18
|
"minimatch": "^10.0.1"
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"scripts": {
|
|
24
24
|
"postinstall": "node scripts/cleanCache.js"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "9c5bc3471bb1c737144f90a1a70470975088e7fc"
|
|
27
27
|
}
|