Skip to content

Commit 526d0da

Browse files
committed
chore: update js-lint to 0.2.11 and delete .prettierrc since its no longer needed
1 parent abf3bda commit 526d0da

File tree

4 files changed

+21
-18
lines changed

4 files changed

+21
-18
lines changed

.prettierrc

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

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ class Event5 extends AbstractEvent<string> {
2929
}
3030
```
3131

32-
When redispatching an event, you must call `event.clone()`. The same instance cannot be redispatched. When the event is cloned, all constructor parameters are shallow-copied.
32+
When redispatching an event, you must call `event.clone()`. The same instance
33+
cannot be redispatched. When the event is cloned, all constructor parameters are
34+
shallow-copied.
3335

3436
### `Evented`
3537

36-
We combine `Evented` with `AbstractEvent` to gain type-safety and convenience of the wildcard any handler.
38+
We combine `Evented` with `AbstractEvent` to gain type-safety and convenience of
39+
the wildcard any handler.
3740

3841
```ts
3942
class EventCustom extends AbstractEvent {}
@@ -62,9 +65,13 @@ x.addEventListener(EventAll.name, (e) => {
6265
});
6366
```
6467

65-
You can use this style to handle relevant events to perform side-effects, as well as propagate upwards irrelevant events.
68+
You can use this style to handle relevant events to perform side-effects, as
69+
well as propagate upwards irrelevant events.
6670

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.
71+
Note that some side-effects you perform may trigger an infinite loop by causing
72+
something to emit the specific event type that you are handling. In these cases
73+
you should specialise handling of those events with a `once: true` option, so
74+
that they are only handled once.
6875

6976
```ts
7077
x.addEventListener(
@@ -79,9 +86,12 @@ x.addEventListener(
7986

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

82-
Therefore it is a good idea to always be as specific with your event types as possible.
89+
Therefore it is a good idea to always be as specific with your event types as
90+
possible.
8391

84-
Furthermore any unhandled rejections or uncaught exceptions will be redispatched as `EventError`. However if there's no listener registered for this, it will be thrown up as an uncaught exception.
92+
Furthermore any unhandled rejections or uncaught exceptions will be redispatched
93+
as `EventError`. However if there's no listener registered for this, it will be
94+
thrown up as an uncaught exception.
8595

8696
## Installation
8797

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"docs": "shx rm -rf ./docs && typedoc --gitRevision master --tsconfig ./tsconfig.build.json --out ./docs src"
4242
},
4343
"devDependencies": {
44-
"@matrixai/lint": "^0.2.6",
44+
"@matrixai/lint": "^0.2.11",
4545
"@swc/core": "1.3.82",
4646
"@swc/jest": "^0.2.29",
4747
"@types/jest": "^29.5.2",

0 commit comments

Comments
 (0)