Enable @typescript-eslint/space-before-function-paren, @typescript-eslint/no-unused-expressions (#36569)

* use @typescript-eslint/no-unused-expressions instead of no-unused-expressions

* enable @typescript-eslint/space-before-function-paren
This commit is contained in:
Alexander T
2020-02-05 00:43:25 +02:00
committed by GitHub
parent 7726464abd
commit 8c31700735
13 changed files with 40 additions and 30 deletions

View File

@@ -23216,7 +23216,7 @@ namespace ts {
return true;
}
function getThisParameterFromNodeContext (node: Node) {
function getThisParameterFromNodeContext(node: Node) {
const thisContainer = getThisContainer(node, /* includeArrowFunctions */ false);
return thisContainer && isFunctionLike(thisContainer) ? getThisParameter(thisContainer) : undefined;
}

View File

@@ -360,7 +360,7 @@ namespace ts {
const getDefaultLibLocation = memoize(() => getDirectoryPath(normalizePath(system.getExecutingFilePath())));
let host: DirectoryStructureHost = system;
// TODO: `host` is unused!
// eslint-disable-next-line no-unused-expressions
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
host;
return {
useCaseSensitiveFileNames: () => system.useCaseSensitiveFileNames,