Skip to content

Commit 59cc3d1

Browse files
committed
Use eslint-config-developit
1 parent 3bce9a1 commit 59cc3d1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
],
3737
"eslintConfig": {
3838
"extends": [
39-
"eslint:recommended",
39+
"developit",
4040
"plugin:@typescript-eslint/eslint-recommended",
4141
"plugin:@typescript-eslint/recommended"
4242
],
@@ -73,6 +73,7 @@
7373
"chai": "^4.2.0",
7474
"documentation": "^13.0.0",
7575
"eslint": "^7.1.0",
76+
"eslint-config-developit": "^1.2.0",
7677
"esm": "^3.2.25",
7778
"microbundle": "^0.12.0",
7879
"mocha": "^7.2.0",

src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ type EventHandlerMap = Map<EventType, EventHandlerList | WildCardEventHandlerLis
1414

1515
export interface Emitter {
1616
on(type: EventType, handler: Handler): void;
17-
on(type: "*", handler: WildcardHandler): void;
17+
on(type: '*', handler: WildcardHandler): void;
1818

1919
off(type: EventType, handler: Handler): void;
20-
off(type: "*", handler: WildcardHandler): void;
20+
off(type: '*', handler: WildcardHandler): void;
2121

2222
emit<T = any>(type: EventType, event?: T): void;
23-
emit(type: "*", event?: any): void;
23+
emit(type: '*', event?: any): void;
2424
}
2525

2626
/** Mitt: Tiny (~200b) functional event emitter / pubsub.
@@ -31,6 +31,7 @@ export default function mitt(all?: EventHandlerMap): Emitter {
3131
all = all || new Map();
3232

3333
return {
34+
3435
/**
3536
* Register an event handler for the given type.
3637
* @param {string|symbol} type Type of event to listen for, or `"*"` for all events

0 commit comments

Comments
 (0)