Re-enable space-before-function-paren

This commit is contained in:
Oliver Blanthorn 2020-06-18 22:44:30 +01:00
parent bd4a87bb36
commit 6f030f7537
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 2 additions and 2 deletions

View file

@ -233,7 +233,7 @@ module.exports = {
"radix": "off", //"error",
"require-await": "off",
"space-before-function-paren": [
"off", //"error",
"error",
{
"anonymous": "never",
"asyncArrow": "always",

View file

@ -104,7 +104,7 @@ type StripPromise<T> = T extends Promise<infer U> ? U : T
export async function message<
Type extends keyof Messages.Background,
Command extends keyof Messages.Background[Type],
F extends ((...args: any) => any) & Messages.Background[Type][Command]
F extends((...args: any) => any) & Messages.Background[Type][Command]
>(type: Type, command: Command, ...args: Parameters<F>) {
const message: TypedMessage<Messages.Background, Type, Command> = {
type,