Skip to content

Commit 26b2ee3

Browse files
feat: add requiresTypeChecking to meta.docs
- Also removed fixable and hasSuggestions when they're defaulted to false/undefined.
1 parent 33f23df commit 26b2ee3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+30
-101
lines changed

src/rules/ban-observables.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ export const banObservablesRule = ruleCreator({
99
meta: {
1010
docs: {
1111
description: 'Forbids the use of banned observables.',
12-
recommended: false,
1312
},
14-
fixable: undefined,
15-
hasSuggestions: false,
1613
messages: {
1714
forbidden: 'RxJS observable is banned: {{name}}{{explanation}}.',
1815
},

src/rules/ban-operators.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ export const banOperatorsRule = ruleCreator({
99
meta: {
1010
docs: {
1111
description: 'Forbids the use of banned operators.',
12-
recommended: false,
1312
},
14-
fixable: undefined,
15-
hasSuggestions: false,
1613
messages: {
1714
forbidden: 'RxJS operator is banned: {{name}}{{explanation}}.',
1815
},

src/rules/finnish.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ export const finnishRule = ruleCreator({
2121
meta: {
2222
docs: {
2323
description: 'Enforces the use of Finnish notation.',
24-
recommended: false,
24+
requiresTypeChecking: true,
2525
},
26-
fixable: undefined,
27-
hasSuggestions: false,
2826
messages: {
2927
shouldBeFinnish: 'Finnish notation should be used here.',
3028
shouldNotBeFinnish: 'Finnish notation should not be used here.',

src/rules/just.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ export const justRule = ruleCreator({
66
meta: {
77
docs: {
88
description: 'Enforces the use of a `just` alias for `of`.',
9-
recommended: false,
109
},
1110
fixable: 'code',
12-
hasSuggestions: false,
1311
messages: {
1412
forbidden: 'Use just alias.',
1513
},

src/rules/macro.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ export const macroRule = ruleCreator({
99
meta: {
1010
docs: {
1111
description: 'Enforces the use of the RxJS Tools Babel macro.',
12-
recommended: false,
1312
},
1413
fixable: 'code',
15-
hasSuggestions: false,
1614
messages: {
1715
macro: 'Use the RxJS Tools Babel macro.',
1816
},

src/rules/no-async-subscribe.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ export const noAsyncSubscribeRule = ruleCreator({
88
docs: {
99
description: 'Forbids passing `async` functions to `subscribe`.',
1010
recommended: true,
11+
requiresTypeChecking: true,
1112
},
12-
fixable: undefined,
13-
hasSuggestions: false,
1413
messages: {
1514
forbidden: 'Passing async functions to subscribe is forbidden.',
1615
},

src/rules/no-compat.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ export const noCompatRule = ruleCreator({
77
docs: {
88
description:
99
'Forbids importation from locations that depend upon `rxjs-compat`.',
10-
recommended: false,
1110
},
12-
fixable: undefined,
13-
hasSuggestions: false,
1411
messages: {
1512
forbidden: '\'rxjs-compat\'-dependent import locations are forbidden.',
1613
},

src/rules/no-connectable.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ export const noConnectableRule = ruleCreator({
77
meta: {
88
docs: {
99
description: 'Forbids operators that return connectable observables.',
10-
recommended: false,
10+
requiresTypeChecking: true,
1111
},
12-
fixable: undefined,
13-
hasSuggestions: false,
1412
messages: {
1513
forbidden: 'Connectable observables are forbidden.',
1614
},

src/rules/no-create.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ export const noCreateRule = ruleCreator({
88
docs: {
99
description: 'Forbids the calling of `Observable.create`.',
1010
recommended: true,
11+
requiresTypeChecking: true,
1112
},
12-
fixable: undefined,
13-
hasSuggestions: false,
1413
messages: {
1514
forbidden: 'Observable.create is forbidden; use new Observable.',
1615
},

src/rules/no-cyclic-action.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ export const noCyclicActionRule = ruleCreator({
1919
meta: {
2020
docs: {
2121
description: 'Forbids effects and epics that re-emit filtered actions.',
22-
recommended: false,
22+
requiresTypeChecking: true,
2323
},
24-
fixable: undefined,
25-
hasSuggestions: false,
2624
messages: {
2725
forbidden:
2826
'Effects and epics that re-emit filtered actions are forbidden.',

0 commit comments

Comments
 (0)