fork-ts-checker-webpack-plugin 4.0.0-beta.3 → 4.0.2
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/LICENSE +1 -1
- package/README.md +21 -73
- package/lib/ApiIncrementalChecker.d.ts +2 -15
- package/lib/ApiIncrementalChecker.js +79 -109
- package/lib/ApiIncrementalChecker.js.map +1 -1
- package/lib/CancellationToken.js +32 -24
- package/lib/CancellationToken.js.map +1 -1
- package/lib/CompilerHost.d.ts +7 -7
- package/lib/CompilerHost.js +225 -155
- package/lib/CompilerHost.js.map +1 -1
- package/lib/FilesRegister.d.ts +2 -4
- package/lib/FilesRegister.js +24 -23
- package/lib/FilesRegister.js.map +1 -1
- package/lib/FsHelper.js +9 -1
- package/lib/FsHelper.js.map +1 -1
- package/lib/IncrementalChecker.d.ts +2 -15
- package/lib/IncrementalChecker.js +146 -172
- package/lib/IncrementalChecker.js.map +1 -1
- package/lib/IncrementalCheckerInterface.d.ts +0 -4
- package/lib/IncrementalCheckerInterface.js.map +1 -1
- package/lib/LinkedList.js +38 -36
- package/lib/LinkedList.js.map +1 -1
- package/lib/Message.js.map +1 -1
- package/lib/RpcTypes.js.map +1 -1
- package/lib/VueProgram.d.ts +1 -1
- package/lib/VueProgram.js +92 -71
- package/lib/VueProgram.js.map +1 -1
- package/lib/createEslinter.d.ts +2 -2
- package/lib/createEslinter.js +13 -6
- package/lib/createEslinter.js.map +1 -1
- package/lib/formatter/CodeframeFormatter.js +41 -17
- package/lib/formatter/CodeframeFormatter.js.map +1 -1
- package/lib/formatter/DefaultFormatter.js +18 -8
- package/lib/formatter/DefaultFormatter.js.map +1 -1
- package/lib/formatter/Formatter.js.map +1 -1
- package/lib/formatter/FormatterFactory.js +2 -2
- package/lib/formatter/FormatterFactory.js.map +1 -1
- package/lib/formatter/InternalFormatter.js +17 -7
- package/lib/formatter/InternalFormatter.js.map +1 -1
- package/lib/formatter/RawFormatter.js +3 -3
- package/lib/formatter/RawFormatter.js.map +1 -1
- package/lib/formatter/index.js.map +1 -1
- package/lib/hooks.d.ts +0 -3
- package/lib/hooks.js +5 -16
- package/lib/hooks.js.map +1 -1
- package/lib/index.d.ts +2 -10
- package/lib/index.js +247 -377
- package/lib/index.js.map +1 -1
- package/lib/issue/Issue.js +6 -4
- package/lib/issue/Issue.js.map +1 -1
- package/lib/issue/IssueOrigin.d.ts +0 -1
- package/lib/issue/IssueOrigin.js +8 -9
- package/lib/issue/IssueOrigin.js.map +1 -1
- package/lib/issue/IssueSeverity.js +4 -2
- package/lib/issue/IssueSeverity.js.map +1 -1
- package/lib/issue/eslint/EsLintIssueFactory.d.ts +2 -2
- package/lib/issue/eslint/EsLintIssueFactory.js +17 -12
- package/lib/issue/eslint/EsLintIssueFactory.js.map +1 -1
- package/lib/issue/eslint/FileAwareEsLintMessage.d.ts +2 -2
- package/lib/issue/eslint/FileAwareEsLintMessage.js.map +1 -1
- package/lib/issue/eslint/index.js.map +1 -1
- package/lib/issue/index.d.ts +0 -1
- package/lib/issue/index.js +0 -1
- package/lib/issue/index.js.map +1 -1
- package/lib/issue/internal/InternalIssueFactory.d.ts +6 -1
- package/lib/issue/internal/InternalIssueFactory.js +5 -3
- package/lib/issue/internal/InternalIssueFactory.js.map +1 -1
- package/lib/issue/internal/index.js.map +1 -1
- package/lib/issue/typescript/TypeScriptIssueFactory.js +14 -14
- package/lib/issue/typescript/TypeScriptIssueFactory.js.map +1 -1
- package/lib/issue/typescript/index.js.map +1 -1
- package/lib/patchTypescript.js +27 -20
- package/lib/patchTypescript.js.map +1 -1
- package/lib/resolution.js +3 -11
- package/lib/resolution.js.map +1 -1
- package/lib/service.js +107 -63
- package/lib/service.js.map +1 -1
- package/lib/types/eslint.d.ts +33 -0
- package/lib/types/eslint.js +3 -0
- package/lib/types/eslint.js.map +1 -0
- package/lib/types/vue-options.js.map +1 -1
- package/package.json +11 -33
- package/lib/issue/tslint/TsLintIssueFactory.d.ts +0 -5
- package/lib/issue/tslint/TsLintIssueFactory.js +0 -25
- package/lib/issue/tslint/TsLintIssueFactory.js.map +0 -1
- package/lib/issue/tslint/index.d.ts +0 -1
- package/lib/issue/tslint/index.js +0 -7
- package/lib/issue/tslint/index.js.map +0 -1
- package/lib/linterConfigHelpers.d.ts +0 -10
- package/lib/linterConfigHelpers.js +0 -35
- package/lib/linterConfigHelpers.js.map +0 -1
package/lib/FsHelper.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
|
+
if (mod && mod.__esModule) return mod;
|
|
4
|
+
var result = {};
|
|
5
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
+
result["default"] = mod;
|
|
7
|
+
return result;
|
|
8
|
+
};
|
|
2
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
10
|
+
var fs = __importStar(require("fs"));
|
|
4
11
|
function fileExistsSync(filePath) {
|
|
5
12
|
try {
|
|
6
13
|
fs.statSync(filePath);
|
|
@@ -16,6 +23,7 @@ function fileExistsSync(filePath) {
|
|
|
16
23
|
return true;
|
|
17
24
|
}
|
|
18
25
|
exports.fileExistsSync = fileExistsSync;
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
27
|
function throwIfIsInvalidSourceFileError(filepath, error) {
|
|
20
28
|
if (fileExistsSync(filepath) &&
|
|
21
29
|
// check the error type due to file system lag
|
package/lib/FsHelper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FsHelper.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"FsHelper.js","sourceRoot":"./","sources":["FsHelper.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qCAAyB;AAEzB,SAAgB,cAAc,CAAC,QAAqB;IAClD,IAAI;QACF,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;KACvB;IAAC,OAAO,GAAG,EAAE;QACZ,IAAI,GAAG,CAAC,IAAI,KAAK,QAAQ,EAAE;YACzB,OAAO,KAAK,CAAC;SACd;aAAM;YACL,MAAM,GAAG,CAAC;SACX;KACF;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAXD,wCAWC;AAED,8DAA8D;AAC9D,SAAgB,+BAA+B,CAAC,QAAgB,EAAE,KAAU;IAC1E,IACE,cAAc,CAAC,QAAQ,CAAC;QACxB,8CAA8C;QAC9C,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC;QACzB,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,KAAK,YAAY,CAAC;QAC1C,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC,EAC1E;QACA,oDAAoD;QACpD,MAAM,KAAK,CAAC;KACb;AACH,CAAC;AAXD,0EAWC"}
|
|
@@ -1,40 +1,27 @@
|
|
|
1
1
|
import * as ts from 'typescript';
|
|
2
|
-
import * as minimatch from 'minimatch';
|
|
3
2
|
import { CancellationToken } from './CancellationToken';
|
|
4
3
|
import { IncrementalCheckerInterface, IncrementalCheckerParams } from './IncrementalCheckerInterface';
|
|
5
4
|
import { Issue } from './issue';
|
|
6
5
|
export declare class IncrementalChecker implements IncrementalCheckerInterface {
|
|
7
|
-
private linterConfigs;
|
|
8
6
|
private files;
|
|
9
|
-
private linter?;
|
|
10
|
-
private linterConfig?;
|
|
11
|
-
private linterExclusions;
|
|
12
7
|
protected program?: ts.Program;
|
|
13
8
|
protected programConfig?: ts.ParsedCommandLine;
|
|
14
|
-
private readonly hasFixedConfig;
|
|
15
9
|
private readonly typescript;
|
|
16
|
-
private readonly context;
|
|
17
10
|
private readonly programConfigFile;
|
|
18
11
|
private readonly compilerOptions;
|
|
19
|
-
private readonly linterConfigFile;
|
|
20
|
-
private readonly linterAutoFix;
|
|
21
12
|
private readonly eslinter;
|
|
22
13
|
private readonly vue;
|
|
23
14
|
private readonly checkSyntacticErrors;
|
|
24
15
|
private readonly resolveModuleName;
|
|
25
16
|
private readonly resolveTypeReferenceDirective;
|
|
26
|
-
constructor({ typescript,
|
|
17
|
+
constructor({ typescript, programConfigFile, compilerOptions, eslinter, vue, checkSyntacticErrors, resolveModuleName, resolveTypeReferenceDirective }: IncrementalCheckerParams);
|
|
27
18
|
static loadProgramConfig(typescript: typeof ts, configFile: string, compilerOptions: object): ts.ParsedCommandLine;
|
|
28
|
-
private getLinterConfig;
|
|
29
19
|
private static createProgram;
|
|
30
|
-
private createLinter;
|
|
31
|
-
hasTsLinter(): boolean;
|
|
32
20
|
hasEsLinter(): boolean;
|
|
33
|
-
static isFileExcluded(filePath: string
|
|
21
|
+
static isFileExcluded(filePath: string): boolean;
|
|
34
22
|
nextIteration(): void;
|
|
35
23
|
private loadVueProgram;
|
|
36
24
|
private loadDefaultProgram;
|
|
37
25
|
getTypeScriptIssues(cancellationToken: CancellationToken): Promise<Issue[]>;
|
|
38
|
-
getTsLintIssues(cancellationToken: CancellationToken): Promise<Issue[]>;
|
|
39
26
|
getEsLintIssues(cancellationToken: CancellationToken): Promise<Issue[]>;
|
|
40
27
|
}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
14
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
15
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -7,68 +18,89 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
18
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
19
|
});
|
|
9
20
|
};
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (_) try {
|
|
28
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
49
|
+
if (mod && mod.__esModule) return mod;
|
|
50
|
+
var result = {};
|
|
51
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
52
|
+
result["default"] = mod;
|
|
53
|
+
return result;
|
|
54
|
+
};
|
|
10
55
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
constructor({ typescript, context, programConfigFile, compilerOptions, linterConfigFile, linterAutoFix, eslinter, vue, checkSyntacticErrors = false, resolveModuleName, resolveTypeReferenceDirective }) {
|
|
22
|
-
// it's shared between compilations
|
|
23
|
-
this.linterConfigs = {};
|
|
24
|
-
this.files = new FilesRegister_1.FilesRegister(() => ({
|
|
56
|
+
var fs = __importStar(require("fs"));
|
|
57
|
+
var path = __importStar(require("path"));
|
|
58
|
+
var FilesRegister_1 = require("./FilesRegister");
|
|
59
|
+
var resolution_1 = require("./resolution");
|
|
60
|
+
var VueProgram_1 = require("./VueProgram");
|
|
61
|
+
var issue_1 = require("./issue");
|
|
62
|
+
var IncrementalChecker = /** @class */ (function () {
|
|
63
|
+
function IncrementalChecker(_a) {
|
|
64
|
+
var typescript = _a.typescript, programConfigFile = _a.programConfigFile, compilerOptions = _a.compilerOptions, eslinter = _a.eslinter, vue = _a.vue, _b = _a.checkSyntacticErrors, checkSyntacticErrors = _b === void 0 ? false : _b, resolveModuleName = _a.resolveModuleName, resolveTypeReferenceDirective = _a.resolveTypeReferenceDirective;
|
|
65
|
+
this.files = new FilesRegister_1.FilesRegister(function () { return ({
|
|
25
66
|
// data shape
|
|
26
67
|
source: undefined,
|
|
27
68
|
linted: false,
|
|
28
|
-
tslints: [],
|
|
29
69
|
eslints: []
|
|
30
|
-
}));
|
|
31
|
-
// Use empty array of exclusions in general to avoid having
|
|
32
|
-
// to check of its existence later on.
|
|
33
|
-
this.linterExclusions = [];
|
|
34
|
-
this.getLinterConfig = linterConfigHelpers_1.makeGetLinterConfig(this.linterConfigs, this.linterExclusions, this.context);
|
|
70
|
+
}); });
|
|
35
71
|
this.typescript = typescript;
|
|
36
|
-
this.context = context;
|
|
37
72
|
this.programConfigFile = programConfigFile;
|
|
38
73
|
this.compilerOptions = compilerOptions;
|
|
39
|
-
this.linterConfigFile = linterConfigFile;
|
|
40
|
-
this.linterAutoFix = linterAutoFix;
|
|
41
74
|
this.eslinter = eslinter;
|
|
42
75
|
this.vue = vue;
|
|
43
76
|
this.checkSyntacticErrors = checkSyntacticErrors;
|
|
44
77
|
this.resolveModuleName = resolveModuleName;
|
|
45
78
|
this.resolveTypeReferenceDirective = resolveTypeReferenceDirective;
|
|
46
|
-
this.hasFixedConfig = typeof this.linterConfigFile === 'string';
|
|
47
79
|
}
|
|
48
|
-
|
|
49
|
-
|
|
80
|
+
IncrementalChecker.loadProgramConfig = function (typescript, configFile, compilerOptions) {
|
|
81
|
+
var tsconfig = typescript.readConfigFile(configFile, typescript.sys.readFile).config;
|
|
50
82
|
tsconfig.compilerOptions = tsconfig.compilerOptions || {};
|
|
51
|
-
tsconfig.compilerOptions =
|
|
52
|
-
|
|
83
|
+
tsconfig.compilerOptions = __assign({}, tsconfig.compilerOptions, compilerOptions);
|
|
84
|
+
var parsed = typescript.parseJsonConfigFileContent(tsconfig, typescript.sys, path.dirname(configFile));
|
|
53
85
|
return parsed;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
host.resolveModuleNames = (moduleNames, containingFile)
|
|
60
|
-
return moduleNames.map(moduleName
|
|
86
|
+
};
|
|
87
|
+
IncrementalChecker.createProgram = function (typescript, programConfig, files, oldProgram, userResolveModuleName, userResolveTypeReferenceDirective) {
|
|
88
|
+
var host = typescript.createCompilerHost(programConfig.options);
|
|
89
|
+
var realGetSourceFile = host.getSourceFile;
|
|
90
|
+
var _a = resolution_1.makeResolutionFunctions(userResolveModuleName, userResolveTypeReferenceDirective), resolveModuleName = _a.resolveModuleName, resolveTypeReferenceDirective = _a.resolveTypeReferenceDirective;
|
|
91
|
+
host.resolveModuleNames = function (moduleNames, containingFile) {
|
|
92
|
+
return moduleNames.map(function (moduleName) {
|
|
61
93
|
return resolveModuleName(typescript, moduleName, containingFile, programConfig.options, host).resolvedModule;
|
|
62
94
|
});
|
|
63
95
|
};
|
|
64
|
-
host.resolveTypeReferenceDirectives = (typeDirectiveNames, containingFile)
|
|
65
|
-
return typeDirectiveNames.map(typeDirectiveName
|
|
96
|
+
host.resolveTypeReferenceDirectives = function (typeDirectiveNames, containingFile) {
|
|
97
|
+
return typeDirectiveNames.map(function (typeDirectiveName) {
|
|
66
98
|
return resolveTypeReferenceDirective(typescript, typeDirectiveName, containingFile, programConfig.options, host).resolvedTypeReferenceDirective;
|
|
67
99
|
});
|
|
68
100
|
};
|
|
69
|
-
host.getSourceFile = (filePath, languageVersion, onError)
|
|
101
|
+
host.getSourceFile = function (filePath, languageVersion, onError) {
|
|
70
102
|
try {
|
|
71
|
-
|
|
103
|
+
var stats = fs.statSync(filePath);
|
|
72
104
|
files.setMtime(filePath, stats.mtime.valueOf());
|
|
73
105
|
}
|
|
74
106
|
catch (e) {
|
|
@@ -77,7 +109,7 @@ class IncrementalChecker {
|
|
|
77
109
|
}
|
|
78
110
|
// get source file only if there is no source in files register
|
|
79
111
|
if (!files.has(filePath) || !files.getData(filePath).source) {
|
|
80
|
-
files.mutateData(filePath, data
|
|
112
|
+
files.mutateData(filePath, function (data) {
|
|
81
113
|
data.source = realGetSourceFile(filePath, languageVersion, onError);
|
|
82
114
|
});
|
|
83
115
|
}
|
|
@@ -85,158 +117,100 @@ class IncrementalChecker {
|
|
|
85
117
|
};
|
|
86
118
|
return typescript.createProgram(programConfig.fileNames, programConfig.options, host, oldProgram // re-use old program
|
|
87
119
|
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// tslint:disable-next-line:no-implicit-dependencies
|
|
91
|
-
const tslint = require('tslint');
|
|
92
|
-
return new tslint.Linter({ fix: this.linterAutoFix }, program);
|
|
93
|
-
}
|
|
94
|
-
hasTsLinter() {
|
|
95
|
-
return !!this.linter;
|
|
96
|
-
}
|
|
97
|
-
hasEsLinter() {
|
|
120
|
+
};
|
|
121
|
+
IncrementalChecker.prototype.hasEsLinter = function () {
|
|
98
122
|
return this.eslinter !== undefined;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
nextIteration() {
|
|
105
|
-
if (!this.linterConfig && this.hasFixedConfig) {
|
|
106
|
-
this.linterConfig = linterConfigHelpers_1.loadLinterConfig(this.linterConfigFile);
|
|
107
|
-
if (this.linterConfig.linterOptions &&
|
|
108
|
-
this.linterConfig.linterOptions.exclude) {
|
|
109
|
-
// Pre-build minimatch patterns to avoid additional overhead later on.
|
|
110
|
-
// Note: Resolving the path is required to properly match against the full file paths,
|
|
111
|
-
// and also deals with potential cross-platform problems regarding path separators.
|
|
112
|
-
this.linterExclusions = this.linterConfig.linterOptions.exclude.map(pattern => new minimatch.Minimatch(path.resolve(pattern)));
|
|
113
|
-
}
|
|
114
|
-
}
|
|
123
|
+
};
|
|
124
|
+
IncrementalChecker.isFileExcluded = function (filePath) {
|
|
125
|
+
return filePath.endsWith('.d.ts');
|
|
126
|
+
};
|
|
127
|
+
IncrementalChecker.prototype.nextIteration = function () {
|
|
115
128
|
this.program = this.vue.enabled
|
|
116
129
|
? this.loadVueProgram(this.vue)
|
|
117
130
|
: this.loadDefaultProgram();
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
loadVueProgram(vueOptions) {
|
|
131
|
+
};
|
|
132
|
+
IncrementalChecker.prototype.loadVueProgram = function (vueOptions) {
|
|
123
133
|
this.programConfig =
|
|
124
134
|
this.programConfig ||
|
|
125
135
|
VueProgram_1.VueProgram.loadProgramConfig(this.typescript, this.programConfigFile, this.compilerOptions);
|
|
126
136
|
return VueProgram_1.VueProgram.createProgram(this.typescript, this.programConfig, path.dirname(this.programConfigFile), this.files, this.program, this.resolveModuleName, this.resolveTypeReferenceDirective, vueOptions);
|
|
127
|
-
}
|
|
128
|
-
loadDefaultProgram() {
|
|
137
|
+
};
|
|
138
|
+
IncrementalChecker.prototype.loadDefaultProgram = function () {
|
|
129
139
|
this.programConfig =
|
|
130
140
|
this.programConfig ||
|
|
131
141
|
IncrementalChecker.loadProgramConfig(this.typescript, this.programConfigFile, this.compilerOptions);
|
|
132
142
|
return IncrementalChecker.createProgram(this.typescript, this.programConfig, this.files, this.program, this.resolveModuleName, this.resolveTypeReferenceDirective);
|
|
133
|
-
}
|
|
134
|
-
getTypeScriptIssues(cancellationToken) {
|
|
135
|
-
return __awaiter(this, void 0, void 0, function
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
const filesToCheck = program.getSourceFiles();
|
|
143
|
-
filesToCheck.forEach(sourceFile => {
|
|
144
|
-
if (cancellationToken) {
|
|
145
|
-
cancellationToken.throwIfCancellationRequested();
|
|
143
|
+
};
|
|
144
|
+
IncrementalChecker.prototype.getTypeScriptIssues = function (cancellationToken) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
146
|
+
var program, tsDiagnostics, filesToCheck;
|
|
147
|
+
var _this = this;
|
|
148
|
+
return __generator(this, function (_a) {
|
|
149
|
+
program = this.program;
|
|
150
|
+
if (!program) {
|
|
151
|
+
throw new Error('Invoked called before program initialized');
|
|
146
152
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
.
|
|
152
|
-
|
|
153
|
-
|
|
153
|
+
tsDiagnostics = [];
|
|
154
|
+
filesToCheck = program.getSourceFiles();
|
|
155
|
+
filesToCheck.forEach(function (sourceFile) {
|
|
156
|
+
if (cancellationToken) {
|
|
157
|
+
cancellationToken.throwIfCancellationRequested();
|
|
158
|
+
}
|
|
159
|
+
var tsDiagnosticsToRegister = _this
|
|
160
|
+
.checkSyntacticErrors
|
|
161
|
+
? program
|
|
162
|
+
.getSemanticDiagnostics(sourceFile, cancellationToken)
|
|
163
|
+
.concat(program.getSyntacticDiagnostics(sourceFile, cancellationToken))
|
|
164
|
+
: program.getSemanticDiagnostics(sourceFile, cancellationToken);
|
|
165
|
+
tsDiagnostics.push.apply(tsDiagnostics, tsDiagnosticsToRegister);
|
|
166
|
+
});
|
|
167
|
+
return [2 /*return*/, issue_1.createIssuesFromTsDiagnostics(tsDiagnostics)];
|
|
154
168
|
});
|
|
155
|
-
return issue_1.createIssuesFromTsDiagnostics(tsDiagnostics);
|
|
156
169
|
});
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
return __awaiter(this, void 0, void 0, function
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
!IncrementalChecker.isFileExcluded(filePath, this.linterExclusions));
|
|
169
|
-
filesToLint.forEach(fileName => {
|
|
170
|
-
cancellationToken.throwIfCancellationRequested();
|
|
171
|
-
const config = this.hasFixedConfig
|
|
172
|
-
? this.linterConfig
|
|
173
|
-
: this.getLinterConfig(fileName);
|
|
174
|
-
if (!config) {
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
try {
|
|
178
|
-
// Assertion: `.lint` second parameter can be undefined
|
|
179
|
-
linter.lint(fileName, undefined, config);
|
|
180
|
-
}
|
|
181
|
-
catch (e) {
|
|
182
|
-
FsHelper_1.throwIfIsInvalidSourceFileError(fileName, e);
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
// set lints in files register
|
|
186
|
-
linter.getResult().failures.forEach(lint => {
|
|
187
|
-
const filePath = lint.getFileName();
|
|
188
|
-
this.files.mutateData(filePath, data => {
|
|
189
|
-
data.linted = true;
|
|
190
|
-
data.tslints.push(lint);
|
|
170
|
+
};
|
|
171
|
+
IncrementalChecker.prototype.getEsLintIssues = function (cancellationToken) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
173
|
+
var filesToLint, currentEsLintErrors, reports;
|
|
174
|
+
var _this = this;
|
|
175
|
+
return __generator(this, function (_a) {
|
|
176
|
+
filesToLint = this.files
|
|
177
|
+
.keys()
|
|
178
|
+
.filter(function (filePath) {
|
|
179
|
+
return !_this.files.getData(filePath).linted &&
|
|
180
|
+
!IncrementalChecker.isFileExcluded(filePath);
|
|
191
181
|
});
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
182
|
+
currentEsLintErrors = new Map();
|
|
183
|
+
filesToLint.forEach(function (fileName) {
|
|
184
|
+
cancellationToken.throwIfCancellationRequested();
|
|
185
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
186
|
+
var report = _this.eslinter.getReport(fileName);
|
|
187
|
+
if (report !== undefined) {
|
|
188
|
+
currentEsLintErrors.set(fileName, report);
|
|
189
|
+
}
|
|
197
190
|
});
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
getEsLintIssues(cancellationToken) {
|
|
207
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
208
|
-
// select files to lint
|
|
209
|
-
const filesToLint = this.files
|
|
210
|
-
.keys()
|
|
211
|
-
.filter(filePath => !this.files.getData(filePath).linted &&
|
|
212
|
-
!IncrementalChecker.isFileExcluded(filePath, this.linterExclusions));
|
|
213
|
-
const currentEsLintErrors = new Map();
|
|
214
|
-
filesToLint.forEach(fileName => {
|
|
215
|
-
cancellationToken.throwIfCancellationRequested();
|
|
216
|
-
const report = this.eslinter.getReport(fileName);
|
|
217
|
-
if (report !== undefined) {
|
|
218
|
-
currentEsLintErrors.set(fileName, report);
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
// set lints in files register
|
|
222
|
-
for (const [filePath, lint] of currentEsLintErrors) {
|
|
223
|
-
this.files.mutateData(filePath, data => {
|
|
224
|
-
data.linted = true;
|
|
225
|
-
data.eslints.push(lint);
|
|
191
|
+
// set lints in files register
|
|
192
|
+
currentEsLintErrors.forEach(function (lint, filePath) {
|
|
193
|
+
_this.files.mutateData(filePath, function (data) {
|
|
194
|
+
data.linted = true;
|
|
195
|
+
data.eslints.push(lint);
|
|
196
|
+
});
|
|
226
197
|
});
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
198
|
+
// set all files as linted
|
|
199
|
+
this.files.keys().forEach(function (filePath) {
|
|
200
|
+
_this.files.mutateData(filePath, function (data) {
|
|
201
|
+
data.linted = true;
|
|
202
|
+
});
|
|
232
203
|
});
|
|
204
|
+
reports = this.files
|
|
205
|
+
.keys()
|
|
206
|
+
.reduce(function (innerLints, filePath) {
|
|
207
|
+
return innerLints.concat(_this.files.getData(filePath).eslints);
|
|
208
|
+
}, []);
|
|
209
|
+
return [2 /*return*/, issue_1.createIssuesFromEsLintReports(reports)];
|
|
233
210
|
});
|
|
234
|
-
const reports = this.files
|
|
235
|
-
.keys()
|
|
236
|
-
.reduce((innerLints, filePath) => innerLints.concat(this.files.getData(filePath).eslints), []);
|
|
237
|
-
return issue_1.createIssuesFromEsLintReports(reports);
|
|
238
211
|
});
|
|
239
|
-
}
|
|
240
|
-
|
|
212
|
+
};
|
|
213
|
+
return IncrementalChecker;
|
|
214
|
+
}());
|
|
241
215
|
exports.IncrementalChecker = IncrementalChecker;
|
|
242
216
|
//# sourceMappingURL=IncrementalChecker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IncrementalChecker.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"IncrementalChecker.js","sourceRoot":"./","sources":["IncrementalChecker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAyB;AACzB,yCAA6B;AAG7B,iDAAgD;AAEhD,2CAIsB;AACtB,2CAA0C;AAO1C,iCAIiB;AAGjB;IAsBE,4BAAY,EASe;YARzB,0BAAU,EACV,wCAAiB,EACjB,oCAAe,EACf,sBAAQ,EACR,YAAG,EACH,4BAA4B,EAA5B,iDAA4B,EAC5B,wCAAiB,EACjB,gEAA6B;QA7BvB,UAAK,GAAG,IAAI,6BAAa,CAAC,cAAM,OAAA,CAAC;YACvC,aAAa;YACb,MAAM,EAAE,SAAS;YACjB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,EAAE;SACZ,CAAC,EALsC,CAKtC,CAAC,CAAC;QA0BF,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACjD,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,6BAA6B,GAAG,6BAA6B,CAAC;IACrE,CAAC;IAEa,oCAAiB,GAA/B,UACE,UAAqB,EACrB,UAAkB,EAClB,eAAuB;QAEvB,IAAM,QAAQ,GAAG,UAAU,CAAC,cAAc,CACxC,UAAU,EACV,UAAU,CAAC,GAAG,CAAC,QAAQ,CACxB,CAAC,MAAM,C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CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBAC1B,CAAC,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;gBAEH,0BAA0B;gBAC1B,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,UAAA,QAAQ;oBAChC,KAAI,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAA,IAAI;wBAClC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;oBACrB,CAAC,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;gBAEG,OAAO,GAAG,IAAI,CAAC,KAAK;qBACvB,IAAI,EAAE;qBACN,MAAM,CACL,UAAC,UAAU,EAAE,QAAQ;oBACnB,OAAA,UAAU,CAAC,MAAM,CAAC,KAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;gBAAvD,CAAuD,EACzD,EAAE,CACH,CAAC;gBAEJ,sBAAO,qCAA6B,CAAC,OAAO,CAAC,EAAC;;;KAC/C;IACH,yBAAC;AAAD,CAAC,AAlRD,IAkRC;AAlRY,gDAAkB"}
|
|
@@ -6,10 +6,8 @@ import { Issue } from './issue';
|
|
|
6
6
|
import { VueOptions } from './types/vue-options';
|
|
7
7
|
export interface IncrementalCheckerInterface {
|
|
8
8
|
nextIteration(): void;
|
|
9
|
-
hasTsLinter(): boolean;
|
|
10
9
|
hasEsLinter(): boolean;
|
|
11
10
|
getTypeScriptIssues(cancellationToken: CancellationToken): Promise<Issue[]>;
|
|
12
|
-
getTsLintIssues(cancellationToken: CancellationToken): Promise<Issue[]>;
|
|
13
11
|
getEsLintIssues(cancellationToken: CancellationToken): Promise<Issue[]>;
|
|
14
12
|
}
|
|
15
13
|
export interface IncrementalCheckerParams {
|
|
@@ -17,8 +15,6 @@ export interface IncrementalCheckerParams {
|
|
|
17
15
|
context: string;
|
|
18
16
|
programConfigFile: string;
|
|
19
17
|
compilerOptions: ts.CompilerOptions;
|
|
20
|
-
linterConfigFile: string | boolean;
|
|
21
|
-
linterAutoFix: boolean;
|
|
22
18
|
eslinter: ReturnType<typeof createEslinter> | undefined;
|
|
23
19
|
checkSyntacticErrors: boolean;
|
|
24
20
|
resolveModuleName: ResolveModuleName | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IncrementalCheckerInterface.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"IncrementalCheckerInterface.js","sourceRoot":"./","sources":["IncrementalCheckerInterface.ts"],"names":[],"mappings":""}
|