Skip to content

Commit cb31cae

Browse files
authored
fix: do not lint tsconfig.json (#313)
1 parent 34b16c5 commit cb31cae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ApiIncrementalChecker.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,18 @@ export class ApiIncrementalChecker implements IncrementalCheckerInterface {
201201

202202
for (const updatedFile of this.lastUpdatedFiles) {
203203
cancellationToken.throwIfCancellationRequested();
204-
if (this.isFileExcluded(updatedFile)) {
204+
if (
205+
this.isFileExcluded(updatedFile) ||
206+
updatedFile.endsWith('tsconfig.json')
207+
) {
205208
continue;
206209
}
207210

208211
const lints = this.eslinter!.getLints(updatedFile);
209212
if (lints !== undefined) {
210213
this.currentEsLintErrors.set(updatedFile, lints);
214+
} else if (this.currentEsLintErrors.has(updatedFile)) {
215+
this.currentEsLintErrors.delete(updatedFile);
211216
}
212217
}
213218

0 commit comments

Comments
 (0)