Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The package includes the following rules.
| [ban-operators](docs/rules/ban-operators.md) | Disallow banned operators. | | | | | |
| [finnish](docs/rules/finnish.md) | Enforce Finnish notation. | | | | 💭 | |
| [just](docs/rules/just.md) | Require the use of `just` instead of `of`. | | 🔧 | | | |
| [macro](docs/rules/macro.md) | Require the use of the RxJS Tools Babel macro. | | 🔧 | | | |
| [macro](docs/rules/macro.md) | Require the use of the RxJS Tools Babel macro. | | 🔧 | | | |
| [no-async-subscribe](docs/rules/no-async-subscribe.md) | Disallow passing `async` functions to `subscribe`. | ✅ | | | 💭 | |
| [no-compat](docs/rules/no-compat.md) | Disallow the `rxjs-compat` package. | | | | | |
| [no-connectable](docs/rules/no-connectable.md) | Disallow operators that return connectable observables. | | | | 💭 | |
Expand Down
4 changes: 4 additions & 0 deletions docs/rules/macro.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Require the use of the RxJS Tools Babel macro (`rxjs-x/macro`)

❌ This rule is deprecated.

🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).

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

This rule ensures that modules that import `rxjs` also import the Babel macro for [RxJS Tools](https://rxjs.tools).

This rule is deprecated because [`babel-plugin-rxjs-tools`](https://www.npmjs.com/package/babel-plugin-rxjs-tools) is unmaintained.
1 change: 1 addition & 0 deletions src/rules/macro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { ruleCreator } from '../utils';
export const macroRule = ruleCreator({
defaultOptions: [],
meta: {
deprecated: true,
docs: {
description: 'Require the use of the RxJS Tools Babel macro.',
},
Expand Down