diff --git a/.eslintrc.yml b/.eslintrc.yml index e5afc7e2..edd99f84 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -96,7 +96,9 @@ rules: - error space-before-function-paren: - error - - never + - anonymous: never + named: never + asyncArrow: ignore space-before-blocks: - error key-spacing: diff --git a/src/service/greetd.ts b/src/service/greetd.ts index 952ecb86..10a475ed 100644 --- a/src/service/greetd.ts +++ b/src/service/greetd.ts @@ -37,7 +37,6 @@ export class Greetd extends Service { private _decoder = new TextDecoder; - // eslint-disable-next-line space-before-function-paren readonly login = async ( username: string, password: string, diff --git a/src/service/hyprland.ts b/src/service/hyprland.ts index f5326f86..20912ab8 100644 --- a/src/service/hyprland.ts +++ b/src/service/hyprland.ts @@ -195,7 +195,6 @@ export class Hyprland extends Service { return ''; }; - // eslint-disable-next-line space-before-function-paren readonly messageAsync = async (cmd: string) => { const [connection, stream] = this._socketStream(cmd); try { diff --git a/src/service/notifications.ts b/src/service/notifications.ts index e98ab729..966897ef 100644 --- a/src/service/notifications.ts +++ b/src/service/notifications.ts @@ -399,7 +399,6 @@ export class Notifications extends Service { return new GLib.Variant('(ssss)', [pkg.name, 'Aylur', pkg.version, '1.2']); } - // eslint-disable-next-line space-before-function-paren readonly clear = async () => { const close = (n: Notification, delay: number) => new Promise(resolve => { this._notifications.has(n.id) diff --git a/src/widgets/widget.ts b/src/widgets/widget.ts index bd5ab215..1f625037 100644 --- a/src/widgets/widget.ts +++ b/src/widgets/widget.ts @@ -130,7 +130,6 @@ export interface Widget extends Required> { ): this keybind< - // eslint-disable-next-line space-before-function-paren Fn extends (self: this, event: Gdk.Event) => void, Key extends keyof Keys, >( @@ -139,7 +138,6 @@ export interface Widget extends Required> { ): this keybind< - // eslint-disable-next-line space-before-function-paren Fn extends (self: this, event: Gdk.Event) => void, Key extends keyof Keys, Mod extends Array,