eslint-plugin-rxjs-x 0.0.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -43
- package/dist/index.d.ts +1 -1
- package/dist/{index.cjs → index.js} +485 -333
- package/dist/index.mjs +482 -312
- package/docs/rules/ban-observables.md +3 -1
- package/docs/rules/ban-operators.md +3 -1
- package/docs/rules/finnish.md +21 -2
- package/docs/rules/just.md +5 -5
- package/docs/rules/macro.md +4 -4
- package/docs/rules/no-async-subscribe.md +7 -5
- package/docs/rules/no-compat.md +3 -5
- package/docs/rules/no-connectable.md +4 -4
- package/docs/rules/no-create.md +7 -5
- package/docs/rules/no-cyclic-action.md +14 -2
- package/docs/rules/no-explicit-generics.md +3 -5
- package/docs/rules/no-exposed-subjects.md +14 -2
- package/docs/rules/no-finnish.md +6 -6
- package/docs/rules/no-ignored-error.md +5 -5
- package/docs/rules/no-ignored-notifier.md +7 -5
- package/docs/rules/no-ignored-observable.md +5 -5
- package/docs/rules/no-ignored-replay-buffer.md +5 -5
- package/docs/rules/no-ignored-subscribe.md +5 -5
- package/docs/rules/no-ignored-subscription.md +5 -5
- package/docs/rules/no-ignored-takewhile-value.md +5 -5
- package/docs/rules/no-implicit-any-catch.md +18 -2
- package/docs/rules/no-index.md +5 -5
- package/docs/rules/no-internal.md +7 -5
- package/docs/rules/no-nested-subscribe.md +7 -5
- package/docs/rules/no-redundant-notify.md +7 -5
- package/docs/rules/no-sharereplay.md +14 -2
- package/docs/rules/no-subclass.md +4 -4
- package/docs/rules/no-subject-unsubscribe.md +7 -5
- package/docs/rules/no-subject-value.md +4 -4
- package/docs/rules/no-subscribe-handlers.md +5 -7
- package/docs/rules/no-tap.md +4 -4
- package/docs/rules/no-topromise.md +4 -4
- package/docs/rules/no-unbound-methods.md +7 -8
- package/docs/rules/no-unsafe-catch.md +13 -1
- package/docs/rules/no-unsafe-first.md +13 -1
- package/docs/rules/no-unsafe-subject-next.md +7 -5
- package/docs/rules/no-unsafe-switchmap.md +15 -1
- package/docs/rules/no-unsafe-takeuntil.md +16 -1
- package/docs/rules/prefer-observer.md +15 -1
- package/docs/rules/suffix-subjects.md +17 -1
- package/docs/rules/throw-error.md +5 -5
- package/package.json +21 -13
- package/dist/index.d.cts +0 -121
package/README.md
CHANGED
|
@@ -36,10 +36,22 @@ export default tseslint.config({
|
|
|
36
36
|
});
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
+
## Configs
|
|
40
|
+
|
|
41
|
+
<!-- begin auto-generated configs list -->
|
|
42
|
+
|
|
43
|
+
| | Name |
|
|
44
|
+
| :- | :------------ |
|
|
45
|
+
| ✅ | `recommended` |
|
|
46
|
+
|
|
47
|
+
<!-- end auto-generated configs list -->
|
|
48
|
+
|
|
39
49
|
## Rules
|
|
40
50
|
|
|
41
51
|
The package includes the following rules.
|
|
42
52
|
|
|
53
|
+
<!-- begin auto-generated rules list -->
|
|
54
|
+
|
|
43
55
|
💼 Configurations enabled in.\
|
|
44
56
|
✅ Set in the `recommended` configuration.\
|
|
45
57
|
🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\
|
|
@@ -47,46 +59,48 @@ The package includes the following rules.
|
|
|
47
59
|
💭 Requires [type information](https://typescript-eslint.io/linting/typed-linting).\
|
|
48
60
|
❌ Deprecated.
|
|
49
61
|
|
|
50
|
-
| Name | Description
|
|
51
|
-
| :--------------------------------------------------------------------- |
|
|
52
|
-
| [ban-observables](docs/rules/ban-observables.md) |
|
|
53
|
-
| [ban-operators](docs/rules/ban-operators.md) |
|
|
54
|
-
| [finnish](docs/rules/finnish.md) |
|
|
55
|
-
| [just](docs/rules/just.md) |
|
|
56
|
-
| [macro](docs/rules/macro.md) |
|
|
57
|
-
| [no-async-subscribe](docs/rules/no-async-subscribe.md) |
|
|
58
|
-
| [no-compat](docs/rules/no-compat.md) |
|
|
59
|
-
| [no-connectable](docs/rules/no-connectable.md) |
|
|
60
|
-
| [no-create](docs/rules/no-create.md) |
|
|
61
|
-
| [no-cyclic-action](docs/rules/no-cyclic-action.md) |
|
|
62
|
-
| [no-explicit-generics](docs/rules/no-explicit-generics.md) |
|
|
63
|
-
| [no-exposed-subjects](docs/rules/no-exposed-subjects.md) |
|
|
64
|
-
| [no-finnish](docs/rules/no-finnish.md) |
|
|
65
|
-
| [no-ignored-error](docs/rules/no-ignored-error.md) |
|
|
66
|
-
| [no-ignored-notifier](docs/rules/no-ignored-notifier.md) |
|
|
67
|
-
| [no-ignored-observable](docs/rules/no-ignored-observable.md) |
|
|
68
|
-
| [no-ignored-replay-buffer](docs/rules/no-ignored-replay-buffer.md) |
|
|
69
|
-
| [no-ignored-subscribe](docs/rules/no-ignored-subscribe.md) |
|
|
70
|
-
| [no-ignored-subscription](docs/rules/no-ignored-subscription.md) |
|
|
71
|
-
| [no-ignored-takewhile-value](docs/rules/no-ignored-takewhile-value.md) |
|
|
72
|
-
| [no-implicit-any-catch](docs/rules/no-implicit-any-catch.md) |
|
|
73
|
-
| [no-index](docs/rules/no-index.md) |
|
|
74
|
-
| [no-internal](docs/rules/no-internal.md) |
|
|
75
|
-
| [no-nested-subscribe](docs/rules/no-nested-subscribe.md) |
|
|
76
|
-
| [no-redundant-notify](docs/rules/no-redundant-notify.md) |
|
|
77
|
-
| [no-sharereplay](docs/rules/no-sharereplay.md) |
|
|
78
|
-
| [no-subclass](docs/rules/no-subclass.md) |
|
|
79
|
-
| [no-subject-unsubscribe](docs/rules/no-subject-unsubscribe.md) |
|
|
80
|
-
| [no-subject-value](docs/rules/no-subject-value.md) |
|
|
81
|
-
| [no-subscribe-handlers](docs/rules/no-subscribe-handlers.md) |
|
|
82
|
-
| [no-tap](docs/rules/no-tap.md) |
|
|
83
|
-
| [no-topromise](docs/rules/no-topromise.md) |
|
|
84
|
-
| [no-unbound-methods](docs/rules/no-unbound-methods.md) |
|
|
85
|
-
| [no-unsafe-catch](docs/rules/no-unsafe-catch.md) |
|
|
86
|
-
| [no-unsafe-first](docs/rules/no-unsafe-first.md) |
|
|
87
|
-
| [no-unsafe-subject-next](docs/rules/no-unsafe-subject-next.md) |
|
|
88
|
-
| [no-unsafe-switchmap](docs/rules/no-unsafe-switchmap.md) |
|
|
89
|
-
| [no-unsafe-takeuntil](docs/rules/no-unsafe-takeuntil.md) |
|
|
90
|
-
| [prefer-observer](docs/rules/prefer-observer.md) |
|
|
91
|
-
| [suffix-subjects](docs/rules/suffix-subjects.md) |
|
|
92
|
-
| [throw-error](docs/rules/throw-error.md) |
|
|
62
|
+
| Name | Description | 💼 | 🔧 | 💡 | 💭 | ❌ |
|
|
63
|
+
| :--------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------- | :- | :- | :- | :- | :- |
|
|
64
|
+
| [ban-observables](docs/rules/ban-observables.md) | Disallow banned observable creators. | | | | | |
|
|
65
|
+
| [ban-operators](docs/rules/ban-operators.md) | Disallow banned operators. | | | | | |
|
|
66
|
+
| [finnish](docs/rules/finnish.md) | Enforce Finnish notation. | | | | 💭 | |
|
|
67
|
+
| [just](docs/rules/just.md) | Require the use of `just` instead of `of`. | | 🔧 | | | |
|
|
68
|
+
| [macro](docs/rules/macro.md) | Require the use of the RxJS Tools Babel macro. | | 🔧 | | | |
|
|
69
|
+
| [no-async-subscribe](docs/rules/no-async-subscribe.md) | Disallow passing `async` functions to `subscribe`. | ✅ | | | 💭 | |
|
|
70
|
+
| [no-compat](docs/rules/no-compat.md) | Disallow the `rxjs-compat` package. | | | | | |
|
|
71
|
+
| [no-connectable](docs/rules/no-connectable.md) | Disallow operators that return connectable observables. | | | | 💭 | |
|
|
72
|
+
| [no-create](docs/rules/no-create.md) | Disallow the static `Observable.create` function. | ✅ | | | 💭 | |
|
|
73
|
+
| [no-cyclic-action](docs/rules/no-cyclic-action.md) | Disallow cyclic actions in effects and epics. | | | | 💭 | |
|
|
74
|
+
| [no-explicit-generics](docs/rules/no-explicit-generics.md) | Disallow unnecessary explicit generic type arguments. | | | | | |
|
|
75
|
+
| [no-exposed-subjects](docs/rules/no-exposed-subjects.md) | Disallow public and protected subjects. | | | | 💭 | |
|
|
76
|
+
| [no-finnish](docs/rules/no-finnish.md) | Disallow Finnish notation. | | | | 💭 | |
|
|
77
|
+
| [no-ignored-error](docs/rules/no-ignored-error.md) | Disallow calling `subscribe` without specifying an error handler. | | | | 💭 | |
|
|
78
|
+
| [no-ignored-notifier](docs/rules/no-ignored-notifier.md) | Disallow observables not composed from the `repeatWhen` or `retryWhen` notifier. | ✅ | | | 💭 | |
|
|
79
|
+
| [no-ignored-observable](docs/rules/no-ignored-observable.md) | Disallow ignoring observables returned by functions. | | | | 💭 | |
|
|
80
|
+
| [no-ignored-replay-buffer](docs/rules/no-ignored-replay-buffer.md) | Disallow using `ReplaySubject`, `publishReplay` or `shareReplay` without specifying the buffer size. | ✅ | | | | |
|
|
81
|
+
| [no-ignored-subscribe](docs/rules/no-ignored-subscribe.md) | Disallow calling `subscribe` without specifying arguments. | | | | 💭 | |
|
|
82
|
+
| [no-ignored-subscription](docs/rules/no-ignored-subscription.md) | Disallow ignoring the subscription returned by `subscribe`. | | | | 💭 | |
|
|
83
|
+
| [no-ignored-takewhile-value](docs/rules/no-ignored-takewhile-value.md) | Disallow ignoring the value within `takeWhile`. | ✅ | | | | |
|
|
84
|
+
| [no-implicit-any-catch](docs/rules/no-implicit-any-catch.md) | Disallow implicit `any` error parameters in `catchError` operators. | ✅ | 🔧 | 💡 | 💭 | |
|
|
85
|
+
| [no-index](docs/rules/no-index.md) | Disallow importing index modules. | ✅ | | | | |
|
|
86
|
+
| [no-internal](docs/rules/no-internal.md) | Disallow importing internal modules. | ✅ | 🔧 | 💡 | | |
|
|
87
|
+
| [no-nested-subscribe](docs/rules/no-nested-subscribe.md) | Disallow calling `subscribe` within a `subscribe` callback. | ✅ | | | 💭 | |
|
|
88
|
+
| [no-redundant-notify](docs/rules/no-redundant-notify.md) | Disallow sending redundant notifications from completed or errored observables. | ✅ | | | 💭 | |
|
|
89
|
+
| [no-sharereplay](docs/rules/no-sharereplay.md) | Disallow unsafe `shareReplay` usage. | ✅ | | | | |
|
|
90
|
+
| [no-subclass](docs/rules/no-subclass.md) | Disallow subclassing RxJS classes. | | | | 💭 | |
|
|
91
|
+
| [no-subject-unsubscribe](docs/rules/no-subject-unsubscribe.md) | Disallow calling the `unsubscribe` method of subjects. | ✅ | | | 💭 | |
|
|
92
|
+
| [no-subject-value](docs/rules/no-subject-value.md) | Disallow accessing the `value` property of a `BehaviorSubject` instance. | | | | 💭 | |
|
|
93
|
+
| [no-subscribe-handlers](docs/rules/no-subscribe-handlers.md) | Disallow passing handlers to `subscribe`. | | | | 💭 | |
|
|
94
|
+
| [no-tap](docs/rules/no-tap.md) | Disallow the `tap` operator. | | | | | ❌ |
|
|
95
|
+
| [no-topromise](docs/rules/no-topromise.md) | Disallow use of the `toPromise` method. | | | | 💭 | |
|
|
96
|
+
| [no-unbound-methods](docs/rules/no-unbound-methods.md) | Disallow passing unbound methods. | ✅ | | | 💭 | |
|
|
97
|
+
| [no-unsafe-catch](docs/rules/no-unsafe-catch.md) | Disallow unsafe `catchError` usage in effects and epics. | | | | 💭 | |
|
|
98
|
+
| [no-unsafe-first](docs/rules/no-unsafe-first.md) | Disallow unsafe `first`/`take` usage in effects and epics. | | | | 💭 | |
|
|
99
|
+
| [no-unsafe-subject-next](docs/rules/no-unsafe-subject-next.md) | Disallow unsafe optional `next` calls. | ✅ | | | 💭 | |
|
|
100
|
+
| [no-unsafe-switchmap](docs/rules/no-unsafe-switchmap.md) | Disallow unsafe `switchMap` usage in effects and epics. | | | | 💭 | |
|
|
101
|
+
| [no-unsafe-takeuntil](docs/rules/no-unsafe-takeuntil.md) | Disallow applying operators after `takeUntil`. | ✅ | | | 💭 | |
|
|
102
|
+
| [prefer-observer](docs/rules/prefer-observer.md) | Disallow passing separate handlers to `subscribe` and `tap`. | | 🔧 | 💡 | 💭 | |
|
|
103
|
+
| [suffix-subjects](docs/rules/suffix-subjects.md) | Enforce the use of a suffix in subject identifiers. | | | | 💭 | |
|
|
104
|
+
| [throw-error](docs/rules/throw-error.md) | Enforce passing only `Error` values to error notifications. | | | | 💭 | |
|
|
105
|
+
|
|
106
|
+
<!-- end auto-generated rules list -->
|
package/dist/index.d.ts
CHANGED