Skip to content

Commit 5aee0bb

Browse files
authored
Merge pull request #23 from MatrixAI/feature-integrate-js-lint
Integrate js-lint and removing old linting elements
2 parents b536114 + 51502ef commit 5aee0bb

File tree

5 files changed

+3103
-1417
lines changed

5 files changed

+3103
-1417
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)