@ngrx/eslint-plugin 21.1.1 → 22.0.0-beta.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/migrations/22_0_0-beta_0-rename-eslint-plugin-v9-imports/index.d.ts +2 -0
- package/migrations/22_0_0-beta_0-rename-eslint-plugin-v9-imports/index.js +40 -0
- package/migrations/22_0_0-beta_0-rename-eslint-plugin-v9-imports/index.js.map +1 -0
- package/migrations/migration.json +8 -1
- package/package.json +3 -8
- package/schematics/ng-add/index.js +8 -61
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/schema.d.ts +1 -1
- package/schematics/ng-add/schema.js.map +1 -1
- package/schematics/ng-add/schema.json +12 -12
- package/scripts/generate-config.js +0 -10
- package/scripts/generate-config.js.map +1 -1
- package/scripts/generate-overview.js +1 -1
- package/scripts/generate-overview.js.map +1 -1
- package/src/index.d.ts +138 -138
- package/src/index.js +32 -18
- package/src/index.js.map +1 -1
- package/src/rule-creator.d.ts +3 -1
- package/src/rule-creator.js +1 -22
- package/src/rule-creator.js.map +1 -1
- package/src/rules/component-store/avoid-combining-component-store-selectors.d.ts +3 -1
- package/src/rules/component-store/avoid-mapping-component-store-selectors.d.ts +3 -1
- package/src/rules/component-store/require-super-ondestroy.d.ts +3 -1
- package/src/rules/component-store/updater-explicit-return-type.d.ts +3 -1
- package/src/rules/effects/avoid-cyclic-effects.d.ts +3 -1
- package/src/rules/effects/no-dispatch-in-effects.d.ts +3 -1
- package/src/rules/effects/no-effects-in-providers.d.ts +3 -1
- package/src/rules/effects/no-multiple-actions-in-effects.d.ts +3 -1
- package/src/rules/effects/prefer-action-creator-in-of-type.d.ts +3 -1
- package/src/rules/effects/prefer-effect-callback-in-block-statement.d.ts +3 -1
- package/src/rules/effects/use-effects-lifecycle-interface.d.ts +3 -1
- package/src/rules/index.d.ts +105 -35
- package/src/rules/operators/prefer-concat-latest-from.d.ts +3 -1
- package/src/rules/signals/enforce-type-call.d.ts +3 -1
- package/src/rules/signals/prefer-protected-state.d.ts +3 -1
- package/src/rules/signals/signal-state-no-arrays-at-root-level.d.ts +3 -1
- package/src/rules/signals/signal-store-feature-should-use-generic-type.d.ts +3 -1
- package/src/rules/signals/with-state-no-arrays-at-root-level.d.ts +3 -1
- package/src/rules/store/avoid-combining-selectors.d.ts +3 -1
- package/src/rules/store/avoid-dispatching-multiple-actions-sequentially.d.ts +3 -1
- package/src/rules/store/avoid-duplicate-actions-in-reducer.d.ts +3 -1
- package/src/rules/store/avoid-mapping-selectors.d.ts +3 -1
- package/src/rules/store/good-action-hygiene.d.ts +3 -1
- package/src/rules/store/no-multiple-global-stores.d.ts +3 -1
- package/src/rules/store/no-reducer-in-key-names.d.ts +3 -1
- package/src/rules/store/no-store-subscription.d.ts +3 -1
- package/src/rules/store/no-typed-global-store.d.ts +3 -1
- package/src/rules/store/on-function-explicit-return-type.d.ts +3 -1
- package/src/rules/store/prefer-action-creator-in-dispatch.d.ts +3 -1
- package/src/rules/store/prefer-action-creator.d.ts +3 -1
- package/src/rules/store/prefer-inline-action-props.d.ts +3 -1
- package/src/rules/store/prefer-one-generic-in-create-for-feature-selector.d.ts +3 -1
- package/src/rules/store/prefer-selector-in-select.d.ts +3 -1
- package/src/rules/store/prefix-selectors-with-select.d.ts +3 -1
- package/src/rules/store/select-style.d.ts +3 -1
- package/src/rules/store/use-consistent-global-store-name.d.ts +3 -1
- package/src/utils/helper-functions/rules.d.ts +3 -1
- package/src/utils/helper-functions/rules.js +1 -1
- package/src/utils/helper-functions/rules.js.map +1 -1
- package/src/configs/all-type-checked.json +0 -41
- package/src/configs/all.json +0 -37
- package/src/configs/component-store.json +0 -10
- package/src/configs/effects-type-checked.json +0 -13
- package/src/configs/effects.json +0 -11
- package/src/configs/operators.json +0 -7
- package/src/configs/signals-type-checked.json +0 -11
- package/src/configs/signals.json +0 -9
- package/src/configs/store.json +0 -24
- package/v9/index.d.ts +0 -35
- package/v9/index.js +0 -44
- package/v9/index.js.map +0 -1
package/src/index.d.ts
CHANGED
|
@@ -1,145 +1,145 @@
|
|
|
1
|
+
import type { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
+
import { rules } from './rules';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
name: string;
|
|
5
|
+
version: string;
|
|
6
|
+
};
|
|
7
|
+
declare const configs: {
|
|
8
|
+
all: TSESLint.FlatConfig.ConfigArray;
|
|
9
|
+
allTypeChecked: TSESLint.FlatConfig.ConfigArray;
|
|
10
|
+
store: TSESLint.FlatConfig.ConfigArray;
|
|
11
|
+
effects: TSESLint.FlatConfig.ConfigArray;
|
|
12
|
+
effectsTypeChecked: TSESLint.FlatConfig.ConfigArray;
|
|
13
|
+
componentStore: TSESLint.FlatConfig.ConfigArray;
|
|
14
|
+
operators: TSESLint.FlatConfig.ConfigArray;
|
|
15
|
+
signals: TSESLint.FlatConfig.ConfigArray;
|
|
16
|
+
signalsTypeChecked: TSESLint.FlatConfig.ConfigArray;
|
|
17
|
+
};
|
|
1
18
|
declare const _default: {
|
|
19
|
+
meta: {
|
|
20
|
+
name: string;
|
|
21
|
+
version: string;
|
|
22
|
+
};
|
|
2
23
|
configs: {
|
|
3
|
-
all:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"@ngrx/no-effects-in-providers": string;
|
|
13
|
-
"@ngrx/prefer-action-creator-in-of-type": string;
|
|
14
|
-
"@ngrx/prefer-effect-callback-in-block-statement": string;
|
|
15
|
-
"@ngrx/use-effects-lifecycle-interface": string;
|
|
16
|
-
"@ngrx/prefer-concat-latest-from": string;
|
|
17
|
-
"@ngrx/enforce-type-call": string;
|
|
18
|
-
"@ngrx/prefer-protected-state": string;
|
|
19
|
-
"@ngrx/signal-store-feature-should-use-generic-type": string;
|
|
20
|
-
"@ngrx/avoid-combining-selectors": string;
|
|
21
|
-
"@ngrx/avoid-dispatching-multiple-actions-sequentially": string;
|
|
22
|
-
"@ngrx/avoid-duplicate-actions-in-reducer": string;
|
|
23
|
-
"@ngrx/avoid-mapping-selectors": string;
|
|
24
|
-
"@ngrx/good-action-hygiene": string;
|
|
25
|
-
"@ngrx/no-multiple-global-stores": string;
|
|
26
|
-
"@ngrx/no-reducer-in-key-names": string;
|
|
27
|
-
"@ngrx/no-store-subscription": string;
|
|
28
|
-
"@ngrx/no-typed-global-store": string;
|
|
29
|
-
"@ngrx/on-function-explicit-return-type": string;
|
|
30
|
-
"@ngrx/prefer-action-creator-in-dispatch": string;
|
|
31
|
-
"@ngrx/prefer-action-creator": string;
|
|
32
|
-
"@ngrx/prefer-inline-action-props": string;
|
|
33
|
-
"@ngrx/prefer-one-generic-in-create-for-feature-selector": string;
|
|
34
|
-
"@ngrx/prefer-selector-in-select": string;
|
|
35
|
-
"@ngrx/prefix-selectors-with-select": string;
|
|
36
|
-
"@ngrx/select-style": string;
|
|
37
|
-
"@ngrx/use-consistent-global-store-name": string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
'all-type-checked': (plugin: import("typescript-eslint").FlatConfig.Plugin, parser: import("typescript-eslint").FlatConfig.Parser) => import("typescript-eslint").FlatConfig.ConfigArray;
|
|
41
|
-
'component-store': {
|
|
42
|
-
parser: string;
|
|
43
|
-
plugins: string[];
|
|
44
|
-
rules: {
|
|
45
|
-
"@ngrx/avoid-combining-component-store-selectors": string;
|
|
46
|
-
"@ngrx/avoid-mapping-component-store-selectors": string;
|
|
47
|
-
"@ngrx/require-super-ondestroy": string;
|
|
48
|
-
"@ngrx/updater-explicit-return-type": string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
effects: {
|
|
52
|
-
parser: string;
|
|
53
|
-
plugins: string[];
|
|
54
|
-
rules: {
|
|
55
|
-
"@ngrx/no-dispatch-in-effects": string;
|
|
56
|
-
"@ngrx/no-effects-in-providers": string;
|
|
57
|
-
"@ngrx/prefer-action-creator-in-of-type": string;
|
|
58
|
-
"@ngrx/prefer-effect-callback-in-block-statement": string;
|
|
59
|
-
"@ngrx/use-effects-lifecycle-interface": string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
'effects-type-checked': (plugin: import("typescript-eslint").FlatConfig.Plugin, parser: import("typescript-eslint").FlatConfig.Parser) => import("typescript-eslint").FlatConfig.ConfigArray;
|
|
63
|
-
store: {
|
|
64
|
-
parser: string;
|
|
65
|
-
plugins: string[];
|
|
66
|
-
rules: {
|
|
67
|
-
"@ngrx/avoid-combining-selectors": string;
|
|
68
|
-
"@ngrx/avoid-dispatching-multiple-actions-sequentially": string;
|
|
69
|
-
"@ngrx/avoid-duplicate-actions-in-reducer": string;
|
|
70
|
-
"@ngrx/avoid-mapping-selectors": string;
|
|
71
|
-
"@ngrx/good-action-hygiene": string;
|
|
72
|
-
"@ngrx/no-multiple-global-stores": string;
|
|
73
|
-
"@ngrx/no-reducer-in-key-names": string;
|
|
74
|
-
"@ngrx/no-store-subscription": string;
|
|
75
|
-
"@ngrx/no-typed-global-store": string;
|
|
76
|
-
"@ngrx/on-function-explicit-return-type": string;
|
|
77
|
-
"@ngrx/prefer-action-creator-in-dispatch": string;
|
|
78
|
-
"@ngrx/prefer-action-creator": string;
|
|
79
|
-
"@ngrx/prefer-inline-action-props": string;
|
|
80
|
-
"@ngrx/prefer-one-generic-in-create-for-feature-selector": string;
|
|
81
|
-
"@ngrx/prefer-selector-in-select": string;
|
|
82
|
-
"@ngrx/prefix-selectors-with-select": string;
|
|
83
|
-
"@ngrx/select-style": string;
|
|
84
|
-
"@ngrx/use-consistent-global-store-name": string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
operators: {
|
|
88
|
-
parser: string;
|
|
89
|
-
plugins: string[];
|
|
90
|
-
rules: {
|
|
91
|
-
"@ngrx/prefer-concat-latest-from": string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
signals: {
|
|
95
|
-
parser: string;
|
|
96
|
-
plugins: string[];
|
|
97
|
-
rules: {
|
|
98
|
-
"@ngrx/enforce-type-call": string;
|
|
99
|
-
"@ngrx/prefer-protected-state": string;
|
|
100
|
-
"@ngrx/signal-store-feature-should-use-generic-type": string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
'signals-type-checked': (plugin: import("typescript-eslint").FlatConfig.Plugin, parser: import("typescript-eslint").FlatConfig.Parser) => import("typescript-eslint").FlatConfig.ConfigArray;
|
|
24
|
+
all: TSESLint.FlatConfig.ConfigArray;
|
|
25
|
+
allTypeChecked: TSESLint.FlatConfig.ConfigArray;
|
|
26
|
+
store: TSESLint.FlatConfig.ConfigArray;
|
|
27
|
+
effects: TSESLint.FlatConfig.ConfigArray;
|
|
28
|
+
effectsTypeChecked: TSESLint.FlatConfig.ConfigArray;
|
|
29
|
+
componentStore: TSESLint.FlatConfig.ConfigArray;
|
|
30
|
+
operators: TSESLint.FlatConfig.ConfigArray;
|
|
31
|
+
signals: TSESLint.FlatConfig.ConfigArray;
|
|
32
|
+
signalsTypeChecked: TSESLint.FlatConfig.ConfigArray;
|
|
104
33
|
};
|
|
105
34
|
rules: {
|
|
106
|
-
'avoid-combining-component-store-selectors':
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
'
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
'
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
'
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
'avoid-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
'
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
'no-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
'
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
'prefer-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
'
|
|
134
|
-
|
|
135
|
-
|
|
35
|
+
'avoid-combining-component-store-selectors': TSESLint.RuleModule<"avoidCombiningComponentStoreSelectors", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
36
|
+
name: string;
|
|
37
|
+
};
|
|
38
|
+
'avoid-mapping-component-store-selectors': TSESLint.RuleModule<"avoidMappingComponentStoreSelectors", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
39
|
+
name: string;
|
|
40
|
+
};
|
|
41
|
+
'updater-explicit-return-type': TSESLint.RuleModule<"updaterExplicitReturnType", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
42
|
+
name: string;
|
|
43
|
+
};
|
|
44
|
+
'require-super-ondestroy': TSESLint.RuleModule<"requireSuperOnDestroy", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
45
|
+
name: string;
|
|
46
|
+
};
|
|
47
|
+
'avoid-cyclic-effects': TSESLint.RuleModule<"avoidCyclicEffects", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
48
|
+
name: string;
|
|
49
|
+
};
|
|
50
|
+
'no-dispatch-in-effects': TSESLint.RuleModule<"noDispatchInEffects" | "noDispatchInEffectsSuggest", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
51
|
+
name: string;
|
|
52
|
+
};
|
|
53
|
+
'no-effects-in-providers': TSESLint.RuleModule<"noEffectsInProviders", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
54
|
+
name: string;
|
|
55
|
+
};
|
|
56
|
+
'no-multiple-actions-in-effects': TSESLint.RuleModule<"noMultipleActionsInEffects", readonly unknown[], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
57
|
+
name: string;
|
|
58
|
+
};
|
|
59
|
+
'prefer-action-creator-in-of-type': TSESLint.RuleModule<"preferActionCreatorInOfType", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
60
|
+
name: string;
|
|
61
|
+
};
|
|
62
|
+
'prefer-effect-callback-in-block-statement': TSESLint.RuleModule<"preferEffectCallbackInBlockStatement", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
63
|
+
name: string;
|
|
64
|
+
};
|
|
65
|
+
'use-effects-lifecycle-interface': TSESLint.RuleModule<"useEffectsLifecycleInterface", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
66
|
+
name: string;
|
|
67
|
+
};
|
|
68
|
+
'avoid-combining-selectors': TSESLint.RuleModule<"avoidCombiningSelectors", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
69
|
+
name: string;
|
|
70
|
+
};
|
|
71
|
+
'avoid-dispatching-multiple-actions-sequentially': TSESLint.RuleModule<"avoidDispatchingMultipleActionsSequentially", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
72
|
+
name: string;
|
|
73
|
+
};
|
|
74
|
+
'avoid-duplicate-actions-in-reducer': TSESLint.RuleModule<"avoidDuplicateActionsInReducer" | "avoidDuplicateActionsInReducerSuggest", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
75
|
+
name: string;
|
|
76
|
+
};
|
|
77
|
+
'avoid-mapping-selectors': TSESLint.RuleModule<"avoidMapppingSelectors", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
78
|
+
name: string;
|
|
79
|
+
};
|
|
80
|
+
'good-action-hygiene': TSESLint.RuleModule<"goodActionHygiene", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
81
|
+
name: string;
|
|
82
|
+
};
|
|
83
|
+
'no-multiple-global-stores': TSESLint.RuleModule<"noMultipleGlobalStores" | "noMultipleGlobalStoresSuggest", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
84
|
+
name: string;
|
|
85
|
+
};
|
|
86
|
+
'no-reducer-in-key-names': TSESLint.RuleModule<"noReducerInKeyNames" | "noReducerInKeyNamesSuggest", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
87
|
+
name: string;
|
|
88
|
+
};
|
|
89
|
+
'no-store-subscription': TSESLint.RuleModule<"noStoreSubscription", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
90
|
+
name: string;
|
|
91
|
+
};
|
|
92
|
+
'no-typed-global-store': TSESLint.RuleModule<"noTypedStore" | "noTypedStoreSuggest", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
93
|
+
name: string;
|
|
94
|
+
};
|
|
95
|
+
'on-function-explicit-return-type': TSESLint.RuleModule<"onFunctionExplicitReturnType" | "onFunctionExplicitReturnTypeSuggest", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
96
|
+
name: string;
|
|
97
|
+
};
|
|
98
|
+
'prefer-action-creator': TSESLint.RuleModule<"preferActionCreator", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
99
|
+
name: string;
|
|
100
|
+
};
|
|
101
|
+
'prefer-action-creator-in-dispatch': TSESLint.RuleModule<"preferActionCreatorInDispatch", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
102
|
+
name: string;
|
|
103
|
+
};
|
|
104
|
+
'prefer-inline-action-props': TSESLint.RuleModule<"preferInlineActionProps" | "preferInlineActionPropsSuggest", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
105
|
+
name: string;
|
|
106
|
+
};
|
|
107
|
+
'prefer-one-generic-in-create-for-feature-selector': TSESLint.RuleModule<"preferOneGenericInCreateForFeatureSelector" | "preferOneGenericInCreateForFeatureSelectorSuggest", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
108
|
+
name: string;
|
|
109
|
+
};
|
|
110
|
+
'prefer-selector-in-select': TSESLint.RuleModule<"preferSelectorInSelect", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
111
|
+
name: string;
|
|
112
|
+
};
|
|
113
|
+
'prefix-selectors-with-select': TSESLint.RuleModule<"prefixSelectorsWithSelect" | "prefixSelectorsWithSelectSuggest", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
114
|
+
name: string;
|
|
115
|
+
};
|
|
116
|
+
'select-style': TSESLint.RuleModule<"operator" | "method", readonly ["operator" | "method"], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
117
|
+
name: string;
|
|
118
|
+
};
|
|
119
|
+
'use-consistent-global-store-name': TSESLint.RuleModule<"useConsistentGlobalStoreName" | "useConsistentGlobalStoreNameSuggest", readonly [string], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
120
|
+
name: string;
|
|
121
|
+
};
|
|
122
|
+
'prefer-concat-latest-from': TSESLint.RuleModule<"preferConcatLatestFrom", readonly [{
|
|
136
123
|
readonly strict: boolean;
|
|
137
|
-
}], import("./rule-creator").NgRxRuleDocs,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
'
|
|
141
|
-
|
|
142
|
-
|
|
124
|
+
}], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
125
|
+
name: string;
|
|
126
|
+
};
|
|
127
|
+
'signal-state-no-arrays-at-root-level': TSESLint.RuleModule<"signalStateNoArraysAtRootLevel", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
128
|
+
name: string;
|
|
129
|
+
};
|
|
130
|
+
'signal-store-feature-should-use-generic-type': TSESLint.RuleModule<"signalStoreFeatureShouldUseGenericType", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
131
|
+
name: string;
|
|
132
|
+
};
|
|
133
|
+
'prefer-protected-state': TSESLint.RuleModule<"preferProtectedState" | "preferProtectedStateSuggest", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
134
|
+
name: string;
|
|
135
|
+
};
|
|
136
|
+
'with-state-no-arrays-at-root-level': TSESLint.RuleModule<"withStateNoArraysAtRootLevel", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
137
|
+
name: string;
|
|
138
|
+
};
|
|
139
|
+
'enforce-type-call': TSESLint.RuleModule<"enforceTypeCall", readonly [], import("./rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
140
|
+
name: string;
|
|
141
|
+
};
|
|
143
142
|
};
|
|
144
143
|
};
|
|
145
|
-
export
|
|
144
|
+
export default _default;
|
|
145
|
+
export { configs, meta, rules };
|
package/src/index.js
CHANGED
|
@@ -2,28 +2,42 @@
|
|
|
2
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.rules = exports.meta = exports.configs = void 0;
|
|
7
|
+
const typescript_eslint_1 = require("typescript-eslint");
|
|
5
8
|
const rules_1 = require("./rules");
|
|
6
|
-
|
|
9
|
+
Object.defineProperty(exports, "rules", { enumerable: true, get: function () { return rules_1.rules; } });
|
|
10
|
+
const package_json_1 = require("../package.json");
|
|
11
|
+
const all_1 = __importDefault(require("./configs/all"));
|
|
7
12
|
const all_type_checked_1 = __importDefault(require("./configs/all-type-checked"));
|
|
8
|
-
const
|
|
9
|
-
const
|
|
13
|
+
const store_1 = __importDefault(require("./configs/store"));
|
|
14
|
+
const effects_1 = __importDefault(require("./configs/effects"));
|
|
10
15
|
const effects_type_checked_1 = __importDefault(require("./configs/effects-type-checked"));
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
16
|
+
const component_store_1 = __importDefault(require("./configs/component-store"));
|
|
17
|
+
const operators_1 = __importDefault(require("./configs/operators"));
|
|
18
|
+
const signals_1 = __importDefault(require("./configs/signals"));
|
|
14
19
|
const signals_type_checked_1 = __importDefault(require("./configs/signals-type-checked"));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
const meta = { name: package_json_1.name, version: package_json_1.version };
|
|
21
|
+
exports.meta = meta;
|
|
22
|
+
const tsPlugin = {
|
|
23
|
+
meta,
|
|
24
|
+
rules: rules_1.rules,
|
|
25
|
+
};
|
|
26
|
+
const configs = {
|
|
27
|
+
all: (0, all_1.default)(tsPlugin, typescript_eslint_1.parser),
|
|
28
|
+
allTypeChecked: (0, all_type_checked_1.default)(tsPlugin, typescript_eslint_1.parser),
|
|
29
|
+
store: (0, store_1.default)(tsPlugin, typescript_eslint_1.parser),
|
|
30
|
+
effects: (0, effects_1.default)(tsPlugin, typescript_eslint_1.parser),
|
|
31
|
+
effectsTypeChecked: (0, effects_type_checked_1.default)(tsPlugin, typescript_eslint_1.parser),
|
|
32
|
+
componentStore: (0, component_store_1.default)(tsPlugin, typescript_eslint_1.parser),
|
|
33
|
+
operators: (0, operators_1.default)(tsPlugin, typescript_eslint_1.parser),
|
|
34
|
+
signals: (0, signals_1.default)(tsPlugin, typescript_eslint_1.parser),
|
|
35
|
+
signalsTypeChecked: (0, signals_type_checked_1.default)(tsPlugin, typescript_eslint_1.parser),
|
|
36
|
+
};
|
|
37
|
+
exports.configs = configs;
|
|
38
|
+
exports.default = {
|
|
39
|
+
meta,
|
|
40
|
+
configs,
|
|
27
41
|
rules: rules_1.rules,
|
|
28
42
|
};
|
|
29
43
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../modules/eslint-plugin/src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../modules/eslint-plugin/src/index.ts"],"names":[],"mappings":";;;;;;AACA,yDAA2C;AAC3C,mCAAgC;AAuCR,sFAvCf,aAAK,OAuCe;AAtC7B,kDAGyB;AACzB,wDAAgC;AAChC,kFAAwD;AACxD,4DAAoC;AACpC,gEAAwC;AACxC,0FAAgE;AAChE,gFAAuD;AACvD,oEAA4C;AAC5C,gEAAwC;AACxC,0FAAgE;AAEhE,MAAM,IAAI,GAAG,EAAE,IAAI,EAAE,mBAAW,EAAE,OAAO,EAAE,sBAAc,EAAE,CAAC;AAwB1C,oBAAI;AAtBtB,MAAM,QAAQ,GAA+B;IAC3C,IAAI;IACJ,KAAK,EAAL,aAAK;CACN,CAAC;AAEF,MAAM,OAAO,GAAG;IACd,GAAG,EAAE,IAAA,aAAG,EAAC,QAAQ,EAAE,0BAAM,CAAC;IAC1B,cAAc,EAAE,IAAA,0BAAc,EAAC,QAAQ,EAAE,0BAAM,CAAC;IAChD,KAAK,EAAE,IAAA,eAAK,EAAC,QAAQ,EAAE,0BAAM,CAAC;IAC9B,OAAO,EAAE,IAAA,iBAAO,EAAC,QAAQ,EAAE,0BAAM,CAAC;IAClC,kBAAkB,EAAE,IAAA,8BAAkB,EAAC,QAAQ,EAAE,0BAAM,CAAC;IACxD,cAAc,EAAE,IAAA,yBAAc,EAAC,QAAQ,EAAE,0BAAM,CAAC;IAChD,SAAS,EAAE,IAAA,mBAAS,EAAC,QAAQ,EAAE,0BAAM,CAAC;IACtC,OAAO,EAAE,IAAA,iBAAO,EAAC,QAAQ,EAAE,0BAAM,CAAC;IAClC,kBAAkB,EAAE,IAAA,8BAAkB,EAAC,QAAQ,EAAE,0BAAM,CAAC;CACzD,CAAC;AAOO,0BAAO;AALhB,kBAAe;IACb,IAAI;IACJ,OAAO;IACP,KAAK,EAAL,aAAK;CACN,CAAC","sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils';\nimport { parser } from 'typescript-eslint';\nimport { rules } from './rules';\nimport {\n name as packageName,\n version as packageVersion,\n} from '../package.json';\nimport all from './configs/all';\nimport allTypeChecked from './configs/all-type-checked';\nimport store from './configs/store';\nimport effects from './configs/effects';\nimport effectsTypeChecked from './configs/effects-type-checked';\nimport componentStore from './configs/component-store';\nimport operators from './configs/operators';\nimport signals from './configs/signals';\nimport signalsTypeChecked from './configs/signals-type-checked';\n\nconst meta = { name: packageName, version: packageVersion };\n\nconst tsPlugin: TSESLint.FlatConfig.Plugin = {\n meta,\n rules,\n};\n\nconst configs = {\n all: all(tsPlugin, parser),\n allTypeChecked: allTypeChecked(tsPlugin, parser),\n store: store(tsPlugin, parser),\n effects: effects(tsPlugin, parser),\n effectsTypeChecked: effectsTypeChecked(tsPlugin, parser),\n componentStore: componentStore(tsPlugin, parser),\n operators: operators(tsPlugin, parser),\n signals: signals(tsPlugin, parser),\n signalsTypeChecked: signalsTypeChecked(tsPlugin, parser),\n};\n\nexport default {\n meta,\n configs,\n rules,\n};\nexport { configs, meta, rules };\n"]}
|
package/src/rule-creator.d.ts
CHANGED
|
@@ -5,4 +5,6 @@ export interface NgRxRuleDocs {
|
|
|
5
5
|
requiresTypeChecking?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export type NgRxRule = ReturnType<ReturnType<typeof ESLintUtils.RuleCreator<NgRxRuleDocs>>>;
|
|
8
|
-
export declare const createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds, NgRxRuleDocs>>) => ESLintUtils.RuleModule<MessageIds, Options, NgRxRuleDocs, ESLintUtils.RuleListener
|
|
8
|
+
export declare const createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds, NgRxRuleDocs>>) => ESLintUtils.RuleModule<MessageIds, Options, NgRxRuleDocs, ESLintUtils.RuleListener> & {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
package/src/rule-creator.js
CHANGED
|
@@ -2,26 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createRule = void 0;
|
|
4
4
|
const utils_1 = require("@typescript-eslint/utils");
|
|
5
|
-
|
|
6
|
-
* We need to patch the RuleCreator in order to preserve the defaultOptions
|
|
7
|
-
* to use as part of documentation generation.
|
|
8
|
-
*/
|
|
9
|
-
const patchedRuleCreator = (urlCreator) => {
|
|
10
|
-
return function createRule({ name, meta, defaultOptions, create }) {
|
|
11
|
-
return {
|
|
12
|
-
meta: Object.assign(Object.assign({}, meta), {
|
|
13
|
-
docs: Object.assign(Object.assign({}, meta.docs), {
|
|
14
|
-
url: urlCreator(name),
|
|
15
|
-
}),
|
|
16
|
-
}),
|
|
17
|
-
defaultOptions,
|
|
18
|
-
create(context) {
|
|
19
|
-
const optionsWithDefault = utils_1.ESLintUtils.applyDefault(defaultOptions, context.options);
|
|
20
|
-
return create(context, optionsWithDefault);
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
patchedRuleCreator.withoutDocs = utils_1.ESLintUtils.RuleCreator.withoutDocs;
|
|
26
|
-
exports.createRule = patchedRuleCreator((ruleName) => `https://ngrx.io/guide/eslint-plugin/rules/${ruleName}`);
|
|
5
|
+
exports.createRule = utils_1.ESLintUtils.RuleCreator((ruleName) => `https://ngrx.io/guide/eslint-plugin/rules/${ruleName}`);
|
|
27
6
|
//# sourceMappingURL=rule-creator.js.map
|
package/src/rule-creator.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-creator.js","sourceRoot":"","sources":["../../../../modules/eslint-plugin/src/rule-creator.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;
|
|
1
|
+
{"version":3,"file":"rule-creator.js","sourceRoot":"","sources":["../../../../modules/eslint-plugin/src/rule-creator.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AAY1C,QAAA,UAAU,GAAG,mBAAW,CAAC,WAAW,CAC/C,CAAC,QAAQ,EAAE,EAAE,CAAC,6CAA6C,QAAQ,EAAE,CACtE,CAAC","sourcesContent":["import { ESLintUtils } from '@typescript-eslint/utils';\nimport { NGRX_MODULE } from './utils';\n\nexport interface NgRxRuleDocs {\n ngrxModule: NGRX_MODULE;\n requiresTypeChecking?: boolean;\n}\n\nexport type NgRxRule = ReturnType<\n ReturnType<typeof ESLintUtils.RuleCreator<NgRxRuleDocs>>\n>;\n\nexport const createRule = ESLintUtils.RuleCreator<NgRxRuleDocs>(\n (ruleName) => `https://ngrx.io/guide/eslint-plugin/rules/${ruleName}`\n);\n"]}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const messageId = "avoidCombiningComponentStoreSelectors";
|
|
2
|
-
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"avoidCombiningComponentStoreSelectors", readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener
|
|
2
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"avoidCombiningComponentStoreSelectors", readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
3
5
|
export default _default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const messageId = "avoidMappingComponentStoreSelectors";
|
|
2
|
-
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"avoidMappingComponentStoreSelectors", readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener
|
|
2
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"avoidMappingComponentStoreSelectors", readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
3
5
|
export default _default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const messageId = "requireSuperOnDestroy";
|
|
2
|
-
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"requireSuperOnDestroy", readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener
|
|
2
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"requireSuperOnDestroy", readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
3
5
|
export default _default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const messageId = "updaterExplicitReturnType";
|
|
2
|
-
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"updaterExplicitReturnType", readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener
|
|
2
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"updaterExplicitReturnType", readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
3
5
|
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
2
|
export declare const messageId = "avoidCyclicEffects";
|
|
3
|
-
declare const _default: ESLintUtils.RuleModule<"avoidCyclicEffects", readonly [], import("../../rule-creator").NgRxRuleDocs, ESLintUtils.RuleListener
|
|
3
|
+
declare const _default: ESLintUtils.RuleModule<"avoidCyclicEffects", readonly [], import("../../rule-creator").NgRxRuleDocs, ESLintUtils.RuleListener> & {
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
4
6
|
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const noDispatchInEffects = "noDispatchInEffects";
|
|
2
2
|
export declare const noDispatchInEffectsSuggest = "noDispatchInEffectsSuggest";
|
|
3
3
|
type MessageIds = typeof noDispatchInEffects | typeof noDispatchInEffectsSuggest;
|
|
4
|
-
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener
|
|
4
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
5
7
|
export default _default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const messageId = "noEffectsInProviders";
|
|
2
|
-
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noEffectsInProviders", readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener
|
|
2
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noEffectsInProviders", readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
3
5
|
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
2
|
export declare const messageId = "noMultipleActionsInEffects";
|
|
3
3
|
type Options = readonly unknown[];
|
|
4
|
-
declare const _default: ESLintUtils.RuleModule<"noMultipleActionsInEffects", Options, import("../../rule-creator").NgRxRuleDocs, ESLintUtils.RuleListener
|
|
4
|
+
declare const _default: ESLintUtils.RuleModule<"noMultipleActionsInEffects", Options, import("../../rule-creator").NgRxRuleDocs, ESLintUtils.RuleListener> & {
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
5
7
|
export default _default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const messageId = "preferActionCreatorInOfType";
|
|
2
|
-
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferActionCreatorInOfType", readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener
|
|
2
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferActionCreatorInOfType", readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
3
5
|
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { TSESLint } from '@typescript-eslint/utils';
|
|
2
2
|
export declare const messageId = "preferEffectCallbackInBlockStatement";
|
|
3
|
-
declare const _default: TSESLint.RuleModule<"preferEffectCallbackInBlockStatement", readonly [], import("../../rule-creator").NgRxRuleDocs, TSESLint.RuleListener
|
|
3
|
+
declare const _default: TSESLint.RuleModule<"preferEffectCallbackInBlockStatement", readonly [], import("../../rule-creator").NgRxRuleDocs, TSESLint.RuleListener> & {
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
4
6
|
export default _default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const messageId = "useEffectsLifecycleInterface";
|
|
2
|
-
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"useEffectsLifecycleInterface", readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener
|
|
2
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"useEffectsLifecycleInterface", readonly [], import("../../rule-creator").NgRxRuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
3
5
|
export default _default;
|