mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Re-enable space-before-function-paren
This commit is contained in:
parent
bd4a87bb36
commit
6f030f7537
2 changed files with 2 additions and 2 deletions
|
@ -233,7 +233,7 @@ module.exports = {
|
|||
"radix": "off", //"error",
|
||||
"require-await": "off",
|
||||
"space-before-function-paren": [
|
||||
"off", //"error",
|
||||
"error",
|
||||
{
|
||||
"anonymous": "never",
|
||||
"asyncArrow": "always",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue