fix: lint
This commit is contained in:
@@ -175,7 +175,7 @@ class ScopedEventGenerator {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ts.forEachChild(node, child => { visit(sourceFile, child) })
|
ts.forEachChild(node, (child) => { visit(sourceFile, child) })
|
||||||
}
|
}
|
||||||
for (const sourceFile of this.packageSources) visit(sourceFile, sourceFile)
|
for (const sourceFile of this.packageSources) visit(sourceFile, sourceFile)
|
||||||
return contracts
|
return contracts
|
||||||
@@ -264,7 +264,7 @@ class ScopedEventGenerator {
|
|||||||
scopedBase: ts.Type,
|
scopedBase: ts.Type,
|
||||||
contracts: readonly ScopeTargetContract[],
|
contracts: readonly ScopeTargetContract[],
|
||||||
): ts.Type | undefined {
|
): ts.Type | undefined {
|
||||||
const matches = contracts.filter(contract => {
|
const matches = contracts.filter((contract) => {
|
||||||
return this.checker.isTypeAssignableTo(this.normalizedType(contract.baseType), this.normalizedType(scopedBase))
|
return this.checker.isTypeAssignableTo(this.normalizedType(contract.baseType), this.normalizedType(scopedBase))
|
||||||
})
|
})
|
||||||
if (matches.length === 0) {
|
if (matches.length === 0) {
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ interface ProjectGraph {
|
|||||||
|
|
||||||
const configHost: ts.ParseConfigFileHost = {
|
const configHost: ts.ParseConfigFileHost = {
|
||||||
useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames,
|
useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames,
|
||||||
readDirectory: ts.sys.readDirectory,
|
readDirectory: (...args) => ts.sys.readDirectory(...args),
|
||||||
fileExists: ts.sys.fileExists,
|
fileExists: fileName => ts.sys.fileExists(fileName),
|
||||||
readFile: ts.sys.readFile,
|
readFile: fileName => ts.sys.readFile(fileName),
|
||||||
getCurrentDirectory: ts.sys.getCurrentDirectory,
|
getCurrentDirectory: () => ts.sys.getCurrentDirectory(),
|
||||||
onUnRecoverableConfigFileDiagnostic(diagnostic) {
|
onUnRecoverableConfigFileDiagnostic(diagnostic) {
|
||||||
throw new Error(ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'))
|
throw new Error(ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'))
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user