Skip to content

Commit

Permalink
fix(eslint): space-before-function-paren
Browse files Browse the repository at this point in the history
  • Loading branch information
Aylur committed Mar 28, 2024
1 parent 707a779 commit eedd643
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ rules:
- error
space-before-function-paren:
- error
- never
- anonymous: never
named: never
asyncArrow: ignore
space-before-blocks:
- error
key-spacing:
Expand Down
1 change: 0 additions & 1 deletion src/service/greetd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/service/hyprland.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion src/service/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions src/widgets/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ export interface Widget<Attr> extends Required<CommonProps<Attr>> {
): this

keybind<
// eslint-disable-next-line space-before-function-paren
Fn extends (self: this, event: Gdk.Event) => void,
Key extends keyof Keys,
>(
Expand All @@ -139,7 +138,6 @@ export interface Widget<Attr> extends Required<CommonProps<Attr>> {
): 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<keyof ModifierKey>,
Expand Down

0 comments on commit eedd643

Please sign in to comment.