Skip to content

Commit 39be258

Browse files
chore: deprecate rxjs-x/macro (#13)
The [`babel-plugin-rxjs-tools`](https://www.npmjs.com/package/babel-plugin-rxjs-tools) package is unmaintained (and never left prerelease). This PR deprecates the lint rule requiring use of that package. If there are no objections, this rule will be removed before the release of v1.
1 parent b7a0a7b commit 39be258

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ The package includes the following rules.
7070
| [ban-operators](docs/rules/ban-operators.md) | Disallow banned operators. | | | | | |
7171
| [finnish](docs/rules/finnish.md) | Enforce Finnish notation. | | | | πŸ’­ | |
7272
| [just](docs/rules/just.md) | Require the use of `just` instead of `of`. | | πŸ”§ | | | |
73-
| [macro](docs/rules/macro.md) | Require the use of the RxJS Tools Babel macro. | | πŸ”§ | | | |
73+
| [macro](docs/rules/macro.md) | Require the use of the RxJS Tools Babel macro. | | πŸ”§ | | | ❌ |
7474
| [no-async-subscribe](docs/rules/no-async-subscribe.md) | Disallow passing `async` functions to `subscribe`. | βœ… | | | πŸ’­ | |
7575
| [no-compat](docs/rules/no-compat.md) | Disallow the `rxjs-compat` package. | | | | | |
7676
| [no-connectable](docs/rules/no-connectable.md) | Disallow operators that return connectable observables. | | | | πŸ’­ | |

β€Ždocs/rules/macro.mdβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Require the use of the RxJS Tools Babel macro (`rxjs-x/macro`)
22

3+
❌ This rule is deprecated.
4+
35
πŸ”§ This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
46

57
<!-- end auto-generated rule header -->
68

79
This rule ensures that modules that import `rxjs` also import the Babel macro for [RxJS Tools](https://rxjs.tools).
10+
11+
This rule is deprecated because [`babel-plugin-rxjs-tools`](https://www.npmjs.com/package/babel-plugin-rxjs-tools) is unmaintained.

β€Žsrc/rules/macro.tsβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { ruleCreator } from '../utils';
77
export const macroRule = ruleCreator({
88
defaultOptions: [],
99
meta: {
10+
deprecated: true,
1011
docs: {
1112
description: 'Require the use of the RxJS Tools Babel macro.',
1213
},

0 commit comments

Comments
Β (0)