Skip to content

Commit 10b4372

Browse files
committed
feat: added @matrixai/lint and removed old linting elements, ran linting with js-lint
1 parent b536114 commit 10b4372

File tree

5 files changed

+3085
-1404
lines changed

5 files changed

+3085
-1404
lines changed

.eslintrc

Lines changed: 0 additions & 178 deletions
This file was deleted.

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,17 @@ x.addEventListener(EventAll.name, (e) => {
6464

6565
You can use this style to handle relevant events to perform side-effects, as well as propagate upwards irrelevant events.
6666

67-
Note that some side-effects you perform may trigger an infinite loop by causing something to emit the specific event type that you are handling. In these cases you should specialise handling of those events with a `once: true` option, so that they are only handled once.
67+
Note that some side-effects you perform may trigger an infinite loop by causing something to emit the specific event type that you are handling. In these cases you should specialise handling of those events with a `once: true` option, so that they are only handled once.
6868

6969
```ts
70-
x.addEventListener(EventInfinite.name, (e) => {
71-
console.log(e as EventInfinite);
72-
performActionThatMayTriggerEventInfinite();
73-
}, { once: true });
70+
x.addEventListener(
71+
EventInfinite.name,
72+
(e) => {
73+
console.log(e as EventInfinite);
74+
performActionThatMayTriggerEventInfinite();
75+
},
76+
{ once: true },
77+
);
7478
```
7579

7680
This will terminate the infinite loop on the first time it gets handled.

0 commit comments

Comments
 (0)