UNPKG

694 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.CustomLinter = void 0;
4const tslint_1 = require("tslint");
5// We need to access the program, but Linter has private program already
6// eslint-disable-next-line @typescript-eslint/no-explicit-any
7const TSLintLinter = tslint_1.Linter;
8class CustomLinter extends TSLintLinter {
9 constructor(options, program) {
10 super(options, program);
11 this.program = program;
12 }
13 getResult() {
14 return super.getResult();
15 }
16 getSourceFile(fileName) {
17 return this.program.getSourceFile(fileName);
18 }
19}
20exports.CustomLinter = CustomLinter;
21//# sourceMappingURL=custom-linter.js.map
\No newline at end of file