refactor: Enable style/indent-binary-ops rule

This commit is contained in:
Joachim Van Herwegen
2024-03-12 16:24:21 +01:00
parent 73fbe80cff
commit 331f83d659
11 changed files with 27 additions and 21 deletions

View File

@@ -79,10 +79,10 @@ export function getTypeWeight(type: string, preferred: ValuePreferences): number
// specific media types. If more than one media range applies to a
// given type, the most specific reference has precedence.
return preferred[type] ??
preferred[`${main}/${sub}`] ??
preferred[`${main}/*`] ??
preferred['*/*'] ??
0;
preferred[`${main}/${sub}`] ??
preferred[`${main}/*`] ??
preferred['*/*'] ??
0;
}
/**

View File

@@ -84,7 +84,7 @@ export class ExtensionBasedMapper extends BaseFileIdentifierMapper {
const extension = getExtension(filePath).toLowerCase();
return mime.lookup(extension) ||
this.customTypes[extension] ||
await super.getContentTypeFromPath(filePath);
await super.getContentTypeFromPath(filePath);
}
/**