You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(recommended)!: add four rules to recommended (#56)
BREAKING CHANGE: RxJS ^7.2.0 is required.
BREAKING CHANGE: `recommended` configuration had 4 rules added to it.
See full changelog for details.
Resolves#35 .
- `no-topromise`: `toPromise()` was deprecated by RxJS, so this will be
very useful for helping developers migrate to one of the two manual
editor suggestions (`lastValueFrom` or `firstValueFrom`).
- `prefer-observer`: RxJS deprecated non-observer object subscribes, so
this will help migrate.
- `prefer-root-operators`: RxJS moved operators to root in 7.2.0 and
deprecated the old site, so this will help migrate.
- This change requires bumping the RxJS peer dependency to 7.2.0 because
7.0.0 doesn't export the operators from root.
- `throw-error`: This rule will rarely be triggered because it was
recently changed to only apply to the static creation function
`throwError()`. But in those rare cases, it should always be enforced,
similar to `no-implicit-any-catch`.
Copy file name to clipboardExpand all lines: docs/rules/prefer-observer.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Disallow passing separate handlers to `subscribe` and `tap` (`rxjs-x/prefer-observer`)
2
2
3
-
💼 This rule is enabled in the 🔒 `strict` config.
3
+
💼 This rule is enabled in the following configs: ✅ `recommended`, 🔒 `strict`.
4
4
5
5
🔧💡 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) and manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
Copy file name to clipboardExpand all lines: docs/rules/prefer-root-operators.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Disallow importing operators from `rxjs/operators` (`rxjs-x/prefer-root-operators`)
2
2
3
-
💼 This rule is enabled in the 🔒 `strict` config.
3
+
💼 This rule is enabled in the following configs: ✅ `recommended`, 🔒 `strict`.
4
4
5
5
🔧💡 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) and manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
0 commit comments