@ngrx/eslint-plugin 18.0.0-beta.1 → 18.0.0-rc.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.
Files changed (205) hide show
  1. package/jest.config.d.ts +15 -0
  2. package/package.json +3 -5
  3. package/schematics/ng-add/index.d.ts +3 -0
  4. package/schematics/ng-add/index.js +32 -20
  5. package/schematics/ng-add/index.js.map +1 -1
  6. package/schematics/ng-add/schema.d.ts +3 -0
  7. package/schematics/ng-add/schema.js.map +1 -1
  8. package/schematics/ng-add/schema.json +16 -51
  9. package/scripts/generate-config.d.ts +1 -0
  10. package/scripts/generate-config.js +73 -73
  11. package/scripts/generate-config.js.map +1 -1
  12. package/scripts/generate-docs.d.ts +1 -0
  13. package/scripts/generate-docs.js +33 -65
  14. package/scripts/generate-docs.js.map +1 -1
  15. package/scripts/generate-overview.d.ts +1 -0
  16. package/scripts/generate-overview.js +43 -75
  17. package/scripts/generate-overview.js.map +1 -1
  18. package/spec/utils/from-fixture.d.ts +8 -0
  19. package/spec/utils/from-fixture.js +62 -0
  20. package/spec/utils/from-fixture.js.map +1 -0
  21. package/spec/utils/index.d.ts +2 -0
  22. package/spec/utils/index.js +16 -19
  23. package/spec/utils/index.js.map +1 -1
  24. package/spec/utils/rule-tester.d.ts +5 -0
  25. package/spec/utils/rule-tester.js +23 -0
  26. package/spec/utils/rule-tester.js.map +1 -0
  27. package/src/configs/all.d.ts +7 -0
  28. package/src/configs/all.js +56 -32
  29. package/src/configs/all.js.map +1 -1
  30. package/src/configs/all.json +42 -0
  31. package/src/configs/component-store.d.ts +7 -0
  32. package/src/configs/component-store.js +23 -8
  33. package/src/configs/component-store.js.map +1 -1
  34. package/src/configs/component-store.json +9 -0
  35. package/src/configs/effects.d.ts +7 -0
  36. package/src/configs/effects.js +32 -11
  37. package/src/configs/effects.js.map +1 -1
  38. package/src/configs/effects.json +13 -0
  39. package/src/configs/operators.d.ts +7 -0
  40. package/src/configs/operators.js +28 -0
  41. package/src/configs/operators.js.map +1 -0
  42. package/src/configs/operators.json +7 -0
  43. package/src/configs/signals.d.ts +7 -0
  44. package/src/configs/signals.js +34 -0
  45. package/src/configs/signals.js.map +1 -0
  46. package/src/configs/signals.json +8 -0
  47. package/src/configs/store.d.ts +7 -0
  48. package/src/configs/store.js +38 -23
  49. package/src/configs/store.js.map +1 -1
  50. package/src/configs/store.json +24 -0
  51. package/src/index.d.ts +141 -0
  52. package/src/index.js +18 -3
  53. package/src/index.js.map +1 -1
  54. package/src/rule-creator.d.ts +24 -0
  55. package/src/rule-creator.js +12 -58
  56. package/src/rule-creator.js.map +1 -1
  57. package/src/rules/component-store/avoid-combining-component-store-selectors.d.ts +3 -0
  58. package/src/rules/component-store/avoid-combining-component-store-selectors.js +22 -47
  59. package/src/rules/component-store/avoid-combining-component-store-selectors.js.map +1 -1
  60. package/src/rules/component-store/avoid-mapping-component-store-selectors.d.ts +3 -0
  61. package/src/rules/component-store/avoid-mapping-component-store-selectors.js +17 -20
  62. package/src/rules/component-store/avoid-mapping-component-store-selectors.js.map +1 -1
  63. package/src/rules/component-store/updater-explicit-return-type.d.ts +3 -0
  64. package/src/rules/component-store/updater-explicit-return-type.js +17 -20
  65. package/src/rules/component-store/updater-explicit-return-type.js.map +1 -1
  66. package/src/rules/effects/avoid-cyclic-effects.d.ts +4 -0
  67. package/src/rules/effects/avoid-cyclic-effects.js +47 -109
  68. package/src/rules/effects/avoid-cyclic-effects.js.map +1 -1
  69. package/src/rules/effects/no-dispatch-in-effects.d.ts +5 -0
  70. package/src/rules/effects/no-dispatch-in-effects.js +17 -21
  71. package/src/rules/effects/no-dispatch-in-effects.js.map +1 -1
  72. package/src/rules/effects/no-effects-in-providers.d.ts +3 -0
  73. package/src/rules/effects/no-effects-in-providers.js +18 -49
  74. package/src/rules/effects/no-effects-in-providers.js.map +1 -1
  75. package/src/rules/effects/no-multiple-actions-in-effects.d.ts +5 -0
  76. package/src/rules/effects/no-multiple-actions-in-effects.js +31 -24
  77. package/src/rules/effects/no-multiple-actions-in-effects.js.map +1 -1
  78. package/src/rules/effects/prefer-action-creator-in-of-type.d.ts +3 -0
  79. package/src/rules/effects/prefer-action-creator-in-of-type.js +10 -13
  80. package/src/rules/effects/prefer-action-creator-in-of-type.js.map +1 -1
  81. package/src/rules/effects/prefer-effect-callback-in-block-statement.d.ts +4 -0
  82. package/src/rules/effects/prefer-effect-callback-in-block-statement.js +24 -43
  83. package/src/rules/effects/prefer-effect-callback-in-block-statement.js.map +1 -1
  84. package/src/rules/effects/use-effects-lifecycle-interface.d.ts +3 -0
  85. package/src/rules/effects/use-effects-lifecycle-interface.js +21 -24
  86. package/src/rules/effects/use-effects-lifecycle-interface.js.map +1 -1
  87. package/src/rules/index.d.ts +33 -0
  88. package/src/rules/index.js +69 -53
  89. package/src/rules/index.js.map +1 -1
  90. package/src/rules/operators/prefer-concat-latest-from.d.ts +7 -0
  91. package/src/rules/operators/prefer-concat-latest-from.js +123 -0
  92. package/src/rules/operators/prefer-concat-latest-from.js.map +1 -0
  93. package/src/rules/signals/signal-state-no-arrays-at-root-level.d.ts +3 -0
  94. package/src/rules/signals/signal-state-no-arrays-at-root-level.js +59 -0
  95. package/src/rules/signals/signal-state-no-arrays-at-root-level.js.map +1 -0
  96. package/src/rules/signals/with-state-no-arrays-at-root-level.d.ts +4 -0
  97. package/src/rules/signals/with-state-no-arrays-at-root-level.js +72 -0
  98. package/src/rules/signals/with-state-no-arrays-at-root-level.js.map +1 -0
  99. package/src/rules/store/avoid-combining-selectors.d.ts +3 -0
  100. package/src/rules/store/avoid-combining-selectors.js +20 -45
  101. package/src/rules/store/avoid-combining-selectors.js.map +1 -1
  102. package/src/rules/store/avoid-dispatching-multiple-actions-sequentially.d.ts +3 -0
  103. package/src/rules/store/avoid-dispatching-multiple-actions-sequentially.js +20 -47
  104. package/src/rules/store/avoid-dispatching-multiple-actions-sequentially.js.map +1 -1
  105. package/src/rules/store/avoid-duplicate-actions-in-reducer.d.ts +5 -0
  106. package/src/rules/store/avoid-duplicate-actions-in-reducer.js +33 -101
  107. package/src/rules/store/avoid-duplicate-actions-in-reducer.js.map +1 -1
  108. package/src/rules/store/avoid-mapping-selectors.d.ts +3 -0
  109. package/src/rules/store/avoid-mapping-selectors.js +24 -30
  110. package/src/rules/store/avoid-mapping-selectors.js.map +1 -1
  111. package/src/rules/store/good-action-hygiene.d.ts +3 -0
  112. package/src/rules/store/good-action-hygiene.js +14 -34
  113. package/src/rules/store/good-action-hygiene.js.map +1 -1
  114. package/src/rules/store/no-multiple-global-stores.d.ts +6 -0
  115. package/src/rules/store/no-multiple-global-stores.js +34 -96
  116. package/src/rules/store/no-multiple-global-stores.js.map +1 -1
  117. package/src/rules/store/no-reducer-in-key-names.d.ts +5 -0
  118. package/src/rules/store/no-reducer-in-key-names.js +16 -20
  119. package/src/rules/store/no-reducer-in-key-names.js.map +1 -1
  120. package/src/rules/store/no-store-subscription.d.ts +3 -0
  121. package/src/rules/store/no-store-subscription.js +13 -16
  122. package/src/rules/store/no-store-subscription.js.map +1 -1
  123. package/src/rules/store/no-typed-global-store.d.ts +5 -0
  124. package/src/rules/store/no-typed-global-store.js +29 -70
  125. package/src/rules/store/no-typed-global-store.js.map +1 -1
  126. package/src/rules/store/on-function-explicit-return-type.d.ts +6 -0
  127. package/src/rules/store/on-function-explicit-return-type.js +23 -43
  128. package/src/rules/store/on-function-explicit-return-type.js.map +1 -1
  129. package/src/rules/store/prefer-action-creator-in-dispatch.d.ts +3 -0
  130. package/src/rules/store/prefer-action-creator-in-dispatch.js +15 -18
  131. package/src/rules/store/prefer-action-creator-in-dispatch.js.map +1 -1
  132. package/src/rules/store/prefer-action-creator.d.ts +3 -0
  133. package/src/rules/store/prefer-action-creator.js +10 -13
  134. package/src/rules/store/prefer-action-creator.js.map +1 -1
  135. package/src/rules/store/prefer-inline-action-props.d.ts +5 -0
  136. package/src/rules/store/prefer-inline-action-props.js +14 -18
  137. package/src/rules/store/prefer-inline-action-props.js.map +1 -1
  138. package/src/rules/store/prefer-one-generic-in-create-for-feature-selector.d.ts +5 -0
  139. package/src/rules/store/prefer-one-generic-in-create-for-feature-selector.js +16 -37
  140. package/src/rules/store/prefer-one-generic-in-create-for-feature-selector.js.map +1 -1
  141. package/src/rules/store/prefer-selector-in-select.d.ts +3 -0
  142. package/src/rules/store/prefer-selector-in-select.js +21 -46
  143. package/src/rules/store/prefer-selector-in-select.js.map +1 -1
  144. package/src/rules/store/prefix-selectors-with-select.d.ts +5 -0
  145. package/src/rules/store/prefix-selectors-with-select.js +26 -39
  146. package/src/rules/store/prefix-selectors-with-select.js.map +1 -1
  147. package/src/rules/store/select-style.d.ts +11 -0
  148. package/src/rules/store/select-style.js +53 -108
  149. package/src/rules/store/select-style.js.map +1 -1
  150. package/src/rules/store/use-consistent-global-store-name.d.ts +6 -0
  151. package/src/rules/store/use-consistent-global-store-name.js +24 -80
  152. package/src/rules/store/use-consistent-global-store-name.js.map +1 -1
  153. package/src/utils/helper-functions/docs.d.ts +1 -0
  154. package/src/utils/helper-functions/docs.js +1 -3
  155. package/src/utils/helper-functions/docs.js.map +1 -1
  156. package/src/utils/helper-functions/folder.d.ts +5 -0
  157. package/src/utils/helper-functions/folder.js +16 -88
  158. package/src/utils/helper-functions/folder.js.map +1 -1
  159. package/src/utils/helper-functions/guards.d.ts +97 -0
  160. package/src/utils/helper-functions/guards.js +27 -31
  161. package/src/utils/helper-functions/guards.js.map +1 -1
  162. package/src/utils/helper-functions/index.d.ts +6 -0
  163. package/src/utils/helper-functions/ngrx-modules.d.ts +8 -0
  164. package/src/utils/helper-functions/ngrx-modules.js +7 -6
  165. package/src/utils/helper-functions/ngrx-modules.js.map +1 -1
  166. package/src/utils/helper-functions/rules.d.ts +3 -0
  167. package/src/utils/helper-functions/rules.js +47 -0
  168. package/src/utils/helper-functions/rules.js.map +1 -0
  169. package/src/utils/helper-functions/utils.d.ts +48 -0
  170. package/src/utils/helper-functions/utils.js +68 -143
  171. package/src/utils/helper-functions/utils.js.map +1 -1
  172. package/src/utils/helper-functions/versions.d.ts +1 -0
  173. package/src/utils/helper-functions/versions.js +9 -10
  174. package/src/utils/helper-functions/versions.js.map +1 -1
  175. package/src/utils/index.d.ts +2 -0
  176. package/src/utils/selectors/index.d.ts +29 -0
  177. package/src/utils/selectors/index.js +30 -44
  178. package/src/utils/selectors/index.js.map +1 -1
  179. package/v9/index.d.ts +29 -0
  180. package/v9/index.js +38 -0
  181. package/v9/index.js.map +1 -0
  182. package/src/configs/all-requiring-type-checking.js +0 -46
  183. package/src/configs/all-requiring-type-checking.js.map +0 -1
  184. package/src/configs/component-store-strict.js +0 -15
  185. package/src/configs/component-store-strict.js.map +0 -1
  186. package/src/configs/effects-requiring-type-checking.js +0 -25
  187. package/src/configs/effects-requiring-type-checking.js.map +0 -1
  188. package/src/configs/effects-strict-requiring-type-checking.js +0 -25
  189. package/src/configs/effects-strict-requiring-type-checking.js.map +0 -1
  190. package/src/configs/effects-strict.js +0 -18
  191. package/src/configs/effects-strict.js.map +0 -1
  192. package/src/configs/index.js +0 -33
  193. package/src/configs/index.js.map +0 -1
  194. package/src/configs/recommended-requiring-type-checking.js +0 -46
  195. package/src/configs/recommended-requiring-type-checking.js.map +0 -1
  196. package/src/configs/recommended.js +0 -39
  197. package/src/configs/recommended.js.map +0 -1
  198. package/src/configs/store-strict.js +0 -30
  199. package/src/configs/store-strict.js.map +0 -1
  200. package/src/configs/strict-requiring-type-checking.js +0 -46
  201. package/src/configs/strict-requiring-type-checking.js.map +0 -1
  202. package/src/configs/strict.js +0 -39
  203. package/src/configs/strict.js.map +0 -1
  204. package/src/rules/effects/prefer-concat-latest-from.js +0 -153
  205. package/src/rules/effects/prefer-concat-latest-from.js.map +0 -1
@@ -1,58 +1,44 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.mapLikeOperatorsImplicitReturn = exports.mapLikeOperatorsExplicitReturn = exports.actionReducerMap = exports.storeActionReducerMap = exports.onFunctionWithoutType = exports.createReducer = exports.dispatchInEffects = exports.dispatchExpression = exports.selectExpression = exports.pipeableSelect = exports.pipeExpression = exports.namedCallableExpression = exports.namedExpression = exports.effectsInNgModuleProviders = exports.effectsInNgModuleImports = exports.ngModuleProviders = exports.ngModuleImports = exports.ngModuleDecorator = exports.metadataProperty = exports.constructorDefinition = exports.actionCreatorPropsComputed = exports.actionCreatorProps = exports.actionCreatorWithLiteral = exports.actionCreator = exports.propertyDefinitionWithEffectDecorator = exports.effectDecorator = exports.createEffectExpression = exports.effectCreator = void 0;
4
- exports.effectCreator = "PropertyDefinition[value.callee.name='createEffect']";
5
- exports.createEffectExpression = "CallExpression[callee.name='createEffect']";
6
- exports.effectDecorator = "Decorator[expression.callee.name='Effect']";
7
- exports.propertyDefinitionWithEffectDecorator = "ClassDeclaration > ClassBody > PropertyDefinition > ".concat(exports.effectDecorator);
8
- exports.actionCreator = "CallExpression[callee.name='createAction']";
9
- exports.actionCreatorWithLiteral = "".concat(exports.actionCreator, "[arguments.0.type='Literal'][arguments.0.raw=/^'/]");
10
- exports.actionCreatorProps = "".concat(exports.actionCreator, " > CallExpression[callee.name='props']");
11
- exports.actionCreatorPropsComputed = "".concat(exports.actionCreatorProps, " > TSTypeParameterInstantiation > :matches(TSTypeReference[typeName.name!='Readonly'], [type=/^TS(.*)(Keyword|Type)$/])");
12
- exports.constructorDefinition = "MethodDefinition[kind='constructor']";
4
+ exports.effectCreator = `PropertyDefinition[value.callee.name='createEffect']`;
5
+ exports.createEffectExpression = `CallExpression[callee.name='createEffect']`;
6
+ exports.effectDecorator = `Decorator[expression.callee.name='Effect']`;
7
+ exports.propertyDefinitionWithEffectDecorator = `ClassDeclaration > ClassBody > PropertyDefinition > ${exports.effectDecorator}`;
8
+ exports.actionCreator = `CallExpression[callee.name='createAction']`;
9
+ exports.actionCreatorWithLiteral = `${exports.actionCreator}[arguments.0.type='Literal'][arguments.0.raw=/^'/]`;
10
+ exports.actionCreatorProps = `${exports.actionCreator} > CallExpression[callee.name='props']`;
11
+ exports.actionCreatorPropsComputed = `${exports.actionCreatorProps} > TSTypeParameterInstantiation > :matches(TSTypeReference[typeName.name!='Readonly'], [type=/^TS(.*)(Keyword|Type)$/])`;
12
+ exports.constructorDefinition = `MethodDefinition[kind='constructor']`;
13
13
  function metadataProperty(key) {
14
- return "Property:matches([key.name=".concat(key, "][computed=false], [key.value=").concat(key, "], [key.quasis.0.value.raw=").concat(key, "])");
14
+ return `Property:matches([key.name=${key}][computed=false], [key.value=${key}], [key.quasis.0.value.raw=${key}])`;
15
15
  }
16
16
  exports.metadataProperty = metadataProperty;
17
- exports.ngModuleDecorator = "ClassDeclaration > Decorator > CallExpression[callee.name='NgModule']";
18
- exports.ngModuleImports = "".concat(exports.ngModuleDecorator, " ObjectExpression ").concat(metadataProperty('imports'), " > ArrayExpression");
19
- exports.ngModuleProviders = "".concat(exports.ngModuleDecorator, " ObjectExpression ").concat(metadataProperty('providers'), " > ArrayExpression");
20
- exports.effectsInNgModuleImports = "".concat(exports.ngModuleImports, " CallExpression[callee.object.name='EffectsModule'][callee.property.name=/^for(Root|Feature)$/] ArrayExpression > Identifier");
21
- exports.effectsInNgModuleProviders = "".concat(exports.ngModuleProviders, " Identifier");
22
- var namedExpression = function (name) {
23
- return ":matches(".concat(exports.constructorDefinition, " CallExpression[callee.object.name=").concat(name, "], CallExpression[callee.object.object.type='ThisExpression'][callee.object.property.name=").concat(name, "])");
24
- };
17
+ exports.ngModuleDecorator = `ClassDeclaration > Decorator > CallExpression[callee.name='NgModule']`;
18
+ exports.ngModuleImports = `${exports.ngModuleDecorator} ObjectExpression ${metadataProperty('imports')} > ArrayExpression`;
19
+ exports.ngModuleProviders = `${exports.ngModuleDecorator} ObjectExpression ${metadataProperty('providers')} > ArrayExpression`;
20
+ exports.effectsInNgModuleImports = `${exports.ngModuleImports} CallExpression[callee.object.name='EffectsModule'][callee.property.name=/^for(Root|Feature)$/] ArrayExpression > Identifier`;
21
+ exports.effectsInNgModuleProviders = `${exports.ngModuleProviders} Identifier`;
22
+ const namedExpression = (name) => `:matches(${exports.constructorDefinition} CallExpression[callee.object.name=${name}], CallExpression[callee.object.object.type='ThisExpression'][callee.object.property.name=${name}])`;
25
23
  exports.namedExpression = namedExpression;
26
- var namedCallableExpression = function (name) {
27
- return ":matches(".concat((0, exports.namedExpression)(name), ", ").concat(exports.constructorDefinition, " CallExpression[callee.object.callee.object.name=").concat(name, "], CallExpression[callee.object.callee.object.object.type='ThisExpression'][callee.object.callee.object.property.name=").concat(name, "])");
28
- };
24
+ const namedCallableExpression = (name) => `:matches(${(0, exports.namedExpression)(name)}, ${exports.constructorDefinition} CallExpression[callee.object.callee.object.name=${name}], CallExpression[callee.object.callee.object.object.type='ThisExpression'][callee.object.callee.object.property.name=${name}])`;
29
25
  exports.namedCallableExpression = namedCallableExpression;
30
- var pipeExpression = function (name) {
31
- return "".concat((0, exports.namedExpression)(name), "[callee.property.name='pipe']");
32
- };
26
+ const pipeExpression = (name) => `${(0, exports.namedExpression)(name)}[callee.property.name='pipe']`;
33
27
  exports.pipeExpression = pipeExpression;
34
- var pipeableSelect = function (name) {
35
- return "".concat((0, exports.pipeExpression)(name), " CallExpression[callee.name='select']");
36
- };
28
+ const pipeableSelect = (name) => `${(0, exports.pipeExpression)(name)} CallExpression[callee.name='select']`;
37
29
  exports.pipeableSelect = pipeableSelect;
38
- var selectExpression = function (name) {
39
- return "".concat((0, exports.namedExpression)(name), "[callee.property.name='select']");
40
- };
30
+ const selectExpression = (name) => `${(0, exports.namedExpression)(name)}[callee.property.name='select']`;
41
31
  exports.selectExpression = selectExpression;
42
- var dispatchExpression = function (name) {
43
- return "".concat((0, exports.namedExpression)(name), "[callee.property.name='dispatch']");
44
- };
32
+ const dispatchExpression = (name) => `${(0, exports.namedExpression)(name)}[callee.property.name='dispatch']`;
45
33
  exports.dispatchExpression = dispatchExpression;
46
- var dispatchInEffects = function (name) {
47
- return "".concat(exports.createEffectExpression, " ").concat((0, exports.dispatchExpression)(name), " > MemberExpression:has(Identifier[name=").concat(name, "])");
48
- };
34
+ const dispatchInEffects = (name) => `${exports.createEffectExpression} ${(0, exports.dispatchExpression)(name)} > MemberExpression:has(Identifier[name=${name}])`;
49
35
  exports.dispatchInEffects = dispatchInEffects;
50
- exports.createReducer = "CallExpression[callee.name='createReducer']";
51
- exports.onFunctionWithoutType = "".concat(exports.createReducer, " CallExpression[callee.name='on'] > ArrowFunctionExpression:not([returnType.typeAnnotation], :has(CallExpression))");
52
- exports.storeActionReducerMap = "".concat(exports.ngModuleImports, " CallExpression[callee.object.name='StoreModule'][callee.property.name=/^for(Root|Feature)$/] > ObjectExpression:first-child");
53
- exports.actionReducerMap = "VariableDeclarator[id.typeAnnotation.typeAnnotation.typeName.name='ActionReducerMap'] > ObjectExpression";
54
- var mapLikeOperators = '/^(concat|exhaust|flat|merge|switch)Map$/';
55
- var mapLikeToOperators = '/^(concat|merge|switch)MapTo$/';
56
- exports.mapLikeOperatorsExplicitReturn = "CallExpression[callee.name=".concat(mapLikeOperators, "] ReturnStatement");
57
- exports.mapLikeOperatorsImplicitReturn = ":matches(CallExpression[callee.name=".concat(mapLikeToOperators, "], CallExpression[callee.name=").concat(mapLikeOperators, "] > ArrowFunctionExpression)");
36
+ exports.createReducer = `CallExpression[callee.name='createReducer']`;
37
+ exports.onFunctionWithoutType = `${exports.createReducer} CallExpression[callee.name='on'] > ArrowFunctionExpression:not([returnType.typeAnnotation], :has(CallExpression))`;
38
+ exports.storeActionReducerMap = `${exports.ngModuleImports} CallExpression[callee.object.name='StoreModule'][callee.property.name=/^for(Root|Feature)$/] > ObjectExpression:first-child`;
39
+ exports.actionReducerMap = `VariableDeclarator[id.typeAnnotation.typeAnnotation.typeName.name='ActionReducerMap'] > ObjectExpression`;
40
+ const mapLikeOperators = '/^(concat|exhaust|flat|merge|switch)Map$/';
41
+ const mapLikeToOperators = '/^(concat|merge|switch)MapTo$/';
42
+ exports.mapLikeOperatorsExplicitReturn = `CallExpression[callee.name=${mapLikeOperators}] ReturnStatement`;
43
+ exports.mapLikeOperatorsImplicitReturn = `:matches(CallExpression[callee.name=${mapLikeToOperators}], CallExpression[callee.name=${mapLikeOperators}] > ArrowFunctionExpression)`;
58
44
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../modules/eslint-plugin/src/utils/selectors/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,sDAAsD,CAAC;AACvE,QAAA,sBAAsB,GAAG,4CAA4C,CAAC;AAEtE,QAAA,eAAe,GAAG,4CAA4C,CAAC;AAC/D,QAAA,qCAAqC,GAChD,8DAAuD,uBAAe,CAAW,CAAC;AAEvE,QAAA,aAAa,GAAG,4CAA4C,CAAC;AAC7D,QAAA,wBAAwB,GACnC,UAAG,qBAAa,uDAA6D,CAAC;AACnE,QAAA,kBAAkB,GAC7B,UAAG,qBAAa,2CAAiD,CAAC;AACvD,QAAA,0BAA0B,GACrC,UAAG,0BAAkB,4HAAkI,CAAC;AAE7I,QAAA,qBAAqB,GAAG,sCAAsC,CAAC;AAM5E,SAAgB,gBAAgB,CAAC,GAAoB;IACnD,OAAO,qCAA8B,GAAG,2CAAiC,GAAG,wCAA8B,GAAG,OAAI,CAAC;AACpH,CAAC;AAFD,4CAEC;AAEY,QAAA,iBAAiB,GAAG,uEAAuE,CAAC;AAE5F,QAAA,eAAe,GAC1B,UAAG,yBAAiB,+BAAqB,gBAAgB,CACvD,SAAS,CACV,uBAA6B,CAAC;AAEpB,QAAA,iBAAiB,GAC5B,UAAG,yBAAiB,+BAAqB,gBAAgB,CACvD,WAAW,CACZ,uBAA6B,CAAC;AAEpB,QAAA,wBAAwB,GACnC,UAAG,uBAAe,iIAAuI,CAAC;AAE/I,QAAA,0BAA0B,GACrC,UAAG,yBAAiB,gBAAsB,CAAC;AAEtC,IAAM,eAAe,GAAG,UAAC,IAAqB;IACnD,OAAA,mBAAY,6BAAqB,gDAAsC,IAAI,uGAA6F,IAAI,OAAa;AAAzL,CAAyL,CAAC;AAD/K,QAAA,eAAe,mBACgK;AAErL,IAAM,uBAAuB,GAAG,UAAC,IAAqB;IAC3D,OAAA,mBAAY,IAAA,uBAAe,EACzB,IAAI,CACL,eAAK,6BAAqB,8DAAoD,IAAI,mIAAyH,IAAI,OAAa;AAF7N,CAE6N,CAAC;AAHnN,QAAA,uBAAuB,2BAG4L;AAEzN,IAAM,cAAc,GAAG,UAAC,IAAqB;IAClD,OAAA,UAAG,IAAA,uBAAe,EAAC,IAAI,CAAC,kCAAwC;AAAhE,CAAgE,CAAC;AADtD,QAAA,cAAc,kBACwC;AAE5D,IAAM,cAAc,GAAG,UAAC,IAAqB;IAClD,OAAA,UAAG,IAAA,sBAAc,EAAC,IAAI,CAAC,0CAAgD;AAAvE,CAAuE,CAAC;AAD7D,QAAA,cAAc,kBAC+C;AAEnE,IAAM,gBAAgB,GAAG,UAAC,IAAqB;IACpD,OAAA,UAAG,IAAA,uBAAe,EAAC,IAAI,CAAC,oCAA0C;AAAlE,CAAkE,CAAC;AADxD,QAAA,gBAAgB,oBACwC;AAE9D,IAAM,kBAAkB,GAAG,UAAC,IAAqB;IACtD,OAAA,UAAG,IAAA,uBAAe,EAAC,IAAI,CAAC,sCAA4C;AAApE,CAAoE,CAAC;AAD1D,QAAA,kBAAkB,sBACwC;AAEhE,IAAM,iBAAiB,GAAG,UAAC,IAAqB;IACrD,OAAA,UAAG,8BAAsB,cAAI,IAAA,0BAAkB,EAC7C,IAAI,CACL,qDAA2C,IAAI,OAAa;AAF7D,CAE6D,CAAC;AAHnD,QAAA,iBAAiB,qBAGkC;AAEnD,QAAA,aAAa,GAAG,6CAA6C,CAAC;AAE9D,QAAA,qBAAqB,GAChC,UAAG,qBAAa,uHAA6H,CAAC;AAEnI,QAAA,qBAAqB,GAChC,UAAG,uBAAe,iIAAuI,CAAC;AAE/I,QAAA,gBAAgB,GAAG,0GAA0G,CAAC;AAE3I,IAAM,gBAAgB,GAAG,2CAA2C,CAAC;AACrE,IAAM,kBAAkB,GAAG,gCAAgC,CAAC;AAC/C,QAAA,8BAA8B,GACzC,qCAA8B,gBAAgB,sBAA4B,CAAC;AAChE,QAAA,8BAA8B,GACzC,8CAAuC,kBAAkB,2CAAiC,gBAAgB,iCAAuC,CAAC","sourcesContent":["export const effectCreator = `PropertyDefinition[value.callee.name='createEffect']`;\nexport const createEffectExpression = `CallExpression[callee.name='createEffect']`;\n\nexport const effectDecorator = `Decorator[expression.callee.name='Effect']`;\nexport const propertyDefinitionWithEffectDecorator =\n `ClassDeclaration > ClassBody > PropertyDefinition > ${effectDecorator}` as const;\n\nexport const actionCreator = `CallExpression[callee.name='createAction']`;\nexport const actionCreatorWithLiteral =\n `${actionCreator}[arguments.0.type='Literal'][arguments.0.raw=/^'/]` as const;\nexport const actionCreatorProps =\n `${actionCreator} > CallExpression[callee.name='props']` as const;\nexport const actionCreatorPropsComputed =\n `${actionCreatorProps} > TSTypeParameterInstantiation > :matches(TSTypeReference[typeName.name!='Readonly'], [type=/^TS(.*)(Keyword|Type)$/])` as const;\n\nexport const constructorDefinition = `MethodDefinition[kind='constructor']`;\n\nexport function metadataProperty(key: RegExp): string;\nexport function metadataProperty<TKey extends string>(\n key: TKey\n): `Property:matches([key.name=${TKey}][computed=false], [key.value=${TKey}], [key.quasis.0.value.raw=${TKey}])`;\nexport function metadataProperty(key: RegExp | string): string {\n return `Property:matches([key.name=${key}][computed=false], [key.value=${key}], [key.quasis.0.value.raw=${key}])`;\n}\n\nexport const ngModuleDecorator = `ClassDeclaration > Decorator > CallExpression[callee.name='NgModule']`;\n\nexport const ngModuleImports =\n `${ngModuleDecorator} ObjectExpression ${metadataProperty(\n 'imports'\n )} > ArrayExpression` as const;\n\nexport const ngModuleProviders =\n `${ngModuleDecorator} ObjectExpression ${metadataProperty(\n 'providers'\n )} > ArrayExpression` as const;\n\nexport const effectsInNgModuleImports =\n `${ngModuleImports} CallExpression[callee.object.name='EffectsModule'][callee.property.name=/^for(Root|Feature)$/] ArrayExpression > Identifier` as const;\n\nexport const effectsInNgModuleProviders =\n `${ngModuleProviders} Identifier` as const;\n\nexport const namedExpression = (name: RegExp | string) =>\n `:matches(${constructorDefinition} CallExpression[callee.object.name=${name}], CallExpression[callee.object.object.type='ThisExpression'][callee.object.property.name=${name}])` as const;\n\nexport const namedCallableExpression = (name: RegExp | string) =>\n `:matches(${namedExpression(\n name\n )}, ${constructorDefinition} CallExpression[callee.object.callee.object.name=${name}], CallExpression[callee.object.callee.object.object.type='ThisExpression'][callee.object.callee.object.property.name=${name}])` as const;\n\nexport const pipeExpression = (name: RegExp | string) =>\n `${namedExpression(name)}[callee.property.name='pipe']` as const;\n\nexport const pipeableSelect = (name: RegExp | string) =>\n `${pipeExpression(name)} CallExpression[callee.name='select']` as const;\n\nexport const selectExpression = (name: RegExp | string) =>\n `${namedExpression(name)}[callee.property.name='select']` as const;\n\nexport const dispatchExpression = (name: RegExp | string) =>\n `${namedExpression(name)}[callee.property.name='dispatch']` as const;\n\nexport const dispatchInEffects = (name: RegExp | string) =>\n `${createEffectExpression} ${dispatchExpression(\n name\n )} > MemberExpression:has(Identifier[name=${name}])` as const;\n\nexport const createReducer = `CallExpression[callee.name='createReducer']`;\n\nexport const onFunctionWithoutType =\n `${createReducer} CallExpression[callee.name='on'] > ArrowFunctionExpression:not([returnType.typeAnnotation], :has(CallExpression))` as const;\n\nexport const storeActionReducerMap =\n `${ngModuleImports} CallExpression[callee.object.name='StoreModule'][callee.property.name=/^for(Root|Feature)$/] > ObjectExpression:first-child` as const;\n\nexport const actionReducerMap = `VariableDeclarator[id.typeAnnotation.typeAnnotation.typeName.name='ActionReducerMap'] > ObjectExpression`;\n\nconst mapLikeOperators = '/^(concat|exhaust|flat|merge|switch)Map$/';\nconst mapLikeToOperators = '/^(concat|merge|switch)MapTo$/';\nexport const mapLikeOperatorsExplicitReturn =\n `CallExpression[callee.name=${mapLikeOperators}] ReturnStatement` as const;\nexport const mapLikeOperatorsImplicitReturn =\n `:matches(CallExpression[callee.name=${mapLikeToOperators}], CallExpression[callee.name=${mapLikeOperators}] > ArrowFunctionExpression)` as const;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../modules/eslint-plugin/src/utils/selectors/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,sDAAsD,CAAC;AACvE,QAAA,sBAAsB,GAAG,4CAA4C,CAAC;AAEtE,QAAA,eAAe,GAAG,4CAA4C,CAAC;AAC/D,QAAA,qCAAqC,GAChD,uDAAuD,uBAAe,EAAW,CAAC;AAEvE,QAAA,aAAa,GAAG,4CAA4C,CAAC;AAC7D,QAAA,wBAAwB,GACnC,GAAG,qBAAa,oDAA6D,CAAC;AACnE,QAAA,kBAAkB,GAC7B,GAAG,qBAAa,wCAAiD,CAAC;AACvD,QAAA,0BAA0B,GACrC,GAAG,0BAAkB,yHAAkI,CAAC;AAE7I,QAAA,qBAAqB,GAAG,sCAAsC,CAAC;AAM5E,SAAgB,gBAAgB,CAAC,GAAoB;IACnD,OAAO,8BAA8B,GAAG,iCAAiC,GAAG,8BAA8B,GAAG,IAAI,CAAC;AACpH,CAAC;AAFD,4CAEC;AAEY,QAAA,iBAAiB,GAAG,uEAAuE,CAAC;AAE5F,QAAA,eAAe,GAC1B,GAAG,yBAAiB,qBAAqB,gBAAgB,CACvD,SAAS,CACV,oBAA6B,CAAC;AAEpB,QAAA,iBAAiB,GAC5B,GAAG,yBAAiB,qBAAqB,gBAAgB,CACvD,WAAW,CACZ,oBAA6B,CAAC;AAEpB,QAAA,wBAAwB,GACnC,GAAG,uBAAe,8HAAuI,CAAC;AAE/I,QAAA,0BAA0B,GACrC,GAAG,yBAAiB,aAAsB,CAAC;AAEtC,MAAM,eAAe,GAAG,CAAC,IAAqB,EAAE,EAAE,CACvD,YAAY,6BAAqB,sCAAsC,IAAI,6FAA6F,IAAI,IAAa,CAAC;AAD/K,QAAA,eAAe,mBACgK;AAErL,MAAM,uBAAuB,GAAG,CAAC,IAAqB,EAAE,EAAE,CAC/D,YAAY,IAAA,uBAAe,EACzB,IAAI,CACL,KAAK,6BAAqB,oDAAoD,IAAI,yHAAyH,IAAI,IAAa,CAAC;AAHnN,QAAA,uBAAuB,2BAG4L;AAEzN,MAAM,cAAc,GAAG,CAAC,IAAqB,EAAE,EAAE,CACtD,GAAG,IAAA,uBAAe,EAAC,IAAI,CAAC,+BAAwC,CAAC;AADtD,QAAA,cAAc,kBACwC;AAE5D,MAAM,cAAc,GAAG,CAAC,IAAqB,EAAE,EAAE,CACtD,GAAG,IAAA,sBAAc,EAAC,IAAI,CAAC,uCAAgD,CAAC;AAD7D,QAAA,cAAc,kBAC+C;AAEnE,MAAM,gBAAgB,GAAG,CAAC,IAAqB,EAAE,EAAE,CACxD,GAAG,IAAA,uBAAe,EAAC,IAAI,CAAC,iCAA0C,CAAC;AADxD,QAAA,gBAAgB,oBACwC;AAE9D,MAAM,kBAAkB,GAAG,CAAC,IAAqB,EAAE,EAAE,CAC1D,GAAG,IAAA,uBAAe,EAAC,IAAI,CAAC,mCAA4C,CAAC;AAD1D,QAAA,kBAAkB,sBACwC;AAEhE,MAAM,iBAAiB,GAAG,CAAC,IAAqB,EAAE,EAAE,CACzD,GAAG,8BAAsB,IAAI,IAAA,0BAAkB,EAC7C,IAAI,CACL,2CAA2C,IAAI,IAAa,CAAC;AAHnD,QAAA,iBAAiB,qBAGkC;AAEnD,QAAA,aAAa,GAAG,6CAA6C,CAAC;AAE9D,QAAA,qBAAqB,GAChC,GAAG,qBAAa,oHAA6H,CAAC;AAEnI,QAAA,qBAAqB,GAChC,GAAG,uBAAe,8HAAuI,CAAC;AAE/I,QAAA,gBAAgB,GAAG,0GAA0G,CAAC;AAE3I,MAAM,gBAAgB,GAAG,2CAA2C,CAAC;AACrE,MAAM,kBAAkB,GAAG,gCAAgC,CAAC;AAC/C,QAAA,8BAA8B,GACzC,8BAA8B,gBAAgB,mBAA4B,CAAC;AAChE,QAAA,8BAA8B,GACzC,uCAAuC,kBAAkB,iCAAiC,gBAAgB,8BAAuC,CAAC","sourcesContent":["export const effectCreator = `PropertyDefinition[value.callee.name='createEffect']`;\nexport const createEffectExpression = `CallExpression[callee.name='createEffect']`;\n\nexport const effectDecorator = `Decorator[expression.callee.name='Effect']`;\nexport const propertyDefinitionWithEffectDecorator =\n `ClassDeclaration > ClassBody > PropertyDefinition > ${effectDecorator}` as const;\n\nexport const actionCreator = `CallExpression[callee.name='createAction']`;\nexport const actionCreatorWithLiteral =\n `${actionCreator}[arguments.0.type='Literal'][arguments.0.raw=/^'/]` as const;\nexport const actionCreatorProps =\n `${actionCreator} > CallExpression[callee.name='props']` as const;\nexport const actionCreatorPropsComputed =\n `${actionCreatorProps} > TSTypeParameterInstantiation > :matches(TSTypeReference[typeName.name!='Readonly'], [type=/^TS(.*)(Keyword|Type)$/])` as const;\n\nexport const constructorDefinition = `MethodDefinition[kind='constructor']`;\n\nexport function metadataProperty(key: RegExp): string;\nexport function metadataProperty<TKey extends string>(\n key: TKey\n): `Property:matches([key.name=${TKey}][computed=false], [key.value=${TKey}], [key.quasis.0.value.raw=${TKey}])`;\nexport function metadataProperty(key: RegExp | string): string {\n return `Property:matches([key.name=${key}][computed=false], [key.value=${key}], [key.quasis.0.value.raw=${key}])`;\n}\n\nexport const ngModuleDecorator = `ClassDeclaration > Decorator > CallExpression[callee.name='NgModule']`;\n\nexport const ngModuleImports =\n `${ngModuleDecorator} ObjectExpression ${metadataProperty(\n 'imports'\n )} > ArrayExpression` as const;\n\nexport const ngModuleProviders =\n `${ngModuleDecorator} ObjectExpression ${metadataProperty(\n 'providers'\n )} > ArrayExpression` as const;\n\nexport const effectsInNgModuleImports =\n `${ngModuleImports} CallExpression[callee.object.name='EffectsModule'][callee.property.name=/^for(Root|Feature)$/] ArrayExpression > Identifier` as const;\n\nexport const effectsInNgModuleProviders =\n `${ngModuleProviders} Identifier` as const;\n\nexport const namedExpression = (name: RegExp | string) =>\n `:matches(${constructorDefinition} CallExpression[callee.object.name=${name}], CallExpression[callee.object.object.type='ThisExpression'][callee.object.property.name=${name}])` as const;\n\nexport const namedCallableExpression = (name: RegExp | string) =>\n `:matches(${namedExpression(\n name\n )}, ${constructorDefinition} CallExpression[callee.object.callee.object.name=${name}], CallExpression[callee.object.callee.object.object.type='ThisExpression'][callee.object.callee.object.property.name=${name}])` as const;\n\nexport const pipeExpression = (name: RegExp | string) =>\n `${namedExpression(name)}[callee.property.name='pipe']` as const;\n\nexport const pipeableSelect = (name: RegExp | string) =>\n `${pipeExpression(name)} CallExpression[callee.name='select']` as const;\n\nexport const selectExpression = (name: RegExp | string) =>\n `${namedExpression(name)}[callee.property.name='select']` as const;\n\nexport const dispatchExpression = (name: RegExp | string) =>\n `${namedExpression(name)}[callee.property.name='dispatch']` as const;\n\nexport const dispatchInEffects = (name: RegExp | string) =>\n `${createEffectExpression} ${dispatchExpression(\n name\n )} > MemberExpression:has(Identifier[name=${name}])` as const;\n\nexport const createReducer = `CallExpression[callee.name='createReducer']`;\n\nexport const onFunctionWithoutType =\n `${createReducer} CallExpression[callee.name='on'] > ArrowFunctionExpression:not([returnType.typeAnnotation], :has(CallExpression))` as const;\n\nexport const storeActionReducerMap =\n `${ngModuleImports} CallExpression[callee.object.name='StoreModule'][callee.property.name=/^for(Root|Feature)$/] > ObjectExpression:first-child` as const;\n\nexport const actionReducerMap = `VariableDeclarator[id.typeAnnotation.typeAnnotation.typeName.name='ActionReducerMap'] > ObjectExpression`;\n\nconst mapLikeOperators = '/^(concat|exhaust|flat|merge|switch)Map$/';\nconst mapLikeToOperators = '/^(concat|merge|switch)MapTo$/';\nexport const mapLikeOperatorsExplicitReturn =\n `CallExpression[callee.name=${mapLikeOperators}] ReturnStatement` as const;\nexport const mapLikeOperatorsImplicitReturn =\n `:matches(CallExpression[callee.name=${mapLikeToOperators}], CallExpression[callee.name=${mapLikeOperators}] > ArrowFunctionExpression)` as const;\n"]}
package/v9/index.d.ts ADDED
@@ -0,0 +1,29 @@
1
+ import { TSESLint } from '@typescript-eslint/utils';
2
+ declare const meta: {
3
+ name: string;
4
+ version: string;
5
+ };
6
+ declare const configs: {
7
+ all: TSESLint.FlatConfig.ConfigArray;
8
+ store: TSESLint.FlatConfig.ConfigArray;
9
+ effects: TSESLint.FlatConfig.ConfigArray;
10
+ componentStore: TSESLint.FlatConfig.ConfigArray;
11
+ operators: TSESLint.FlatConfig.ConfigArray;
12
+ signals: TSESLint.FlatConfig.ConfigArray;
13
+ };
14
+ declare const _default: {
15
+ meta: {
16
+ name: string;
17
+ version: string;
18
+ };
19
+ configs: {
20
+ all: TSESLint.FlatConfig.ConfigArray;
21
+ store: TSESLint.FlatConfig.ConfigArray;
22
+ effects: TSESLint.FlatConfig.ConfigArray;
23
+ componentStore: TSESLint.FlatConfig.ConfigArray;
24
+ operators: TSESLint.FlatConfig.ConfigArray;
25
+ signals: TSESLint.FlatConfig.ConfigArray;
26
+ };
27
+ };
28
+ export default _default;
29
+ export { meta, configs };
package/v9/index.js ADDED
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.configs = exports.meta = void 0;
7
+ const typescript_eslint_1 = require("typescript-eslint");
8
+ const rules_1 = require("../src/rules");
9
+ const package_json_1 = require("../package.json");
10
+ const all_1 = __importDefault(require("../src/configs/all"));
11
+ const store_1 = __importDefault(require("../src/configs/store"));
12
+ const effects_1 = __importDefault(require("../src/configs/effects"));
13
+ const component_store_1 = __importDefault(require("../src/configs/component-store"));
14
+ const operators_1 = __importDefault(require("../src/configs/operators"));
15
+ const signals_1 = __importDefault(require("../src/configs/signals"));
16
+ const meta = { name: package_json_1.name, version: package_json_1.version };
17
+ exports.meta = meta;
18
+ const tsPlugin = {
19
+ rules: rules_1.rules,
20
+ };
21
+ const configs = {
22
+ all: (0, all_1.default)(tsPlugin, typescript_eslint_1.parser),
23
+ store: (0, store_1.default)(tsPlugin, typescript_eslint_1.parser),
24
+ effects: (0, effects_1.default)(tsPlugin, typescript_eslint_1.parser),
25
+ componentStore: (0, component_store_1.default)(tsPlugin, typescript_eslint_1.parser),
26
+ operators: (0, operators_1.default)(tsPlugin, typescript_eslint_1.parser),
27
+ signals: (0, signals_1.default)(tsPlugin, typescript_eslint_1.parser),
28
+ };
29
+ exports.configs = configs;
30
+ /*
31
+ As the angular-eslint plugin we do both a default and named exports to allow people to use this package from
32
+ both CJS and ESM in very natural ways.
33
+ */
34
+ exports.default = {
35
+ meta,
36
+ configs,
37
+ };
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../modules/eslint-plugin/v9/index.ts"],"names":[],"mappings":";;;;;;AACA,yDAA2C;AAC3C,wCAAqC;AACrC,kDAGyB;AACzB,6DAAqC;AACrC,iEAAyC;AACzC,qEAA6C;AAC7C,qFAA4D;AAC5D,yEAAiD;AACjD,qEAA6C;AAE7C,MAAM,IAAI,GAAG,EAAE,IAAI,EAAE,mBAAW,EAAE,OAAO,EAAE,sBAAc,EAAE,CAAC;AAuBnD,oBAAI;AArBb,MAAM,QAAQ,GAA+B;IAC3C,KAAK,EAAL,aAAK;CACN,CAAC;AAEF,MAAM,OAAO,GAAG;IACd,GAAG,EAAE,IAAA,aAAG,EAAC,QAAQ,EAAE,0BAAM,CAAC;IAC1B,KAAK,EAAE,IAAA,eAAK,EAAC,QAAQ,EAAE,0BAAM,CAAC;IAC9B,OAAO,EAAE,IAAA,iBAAO,EAAC,QAAQ,EAAE,0BAAM,CAAC;IAClC,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;CACnC,CAAC;AAUa,0BAAO;AARtB;;;EAGE;AACF,kBAAe;IACb,IAAI;IACJ,OAAO;CACR,CAAC","sourcesContent":["import { TSESLint } from '@typescript-eslint/utils';\nimport { parser } from 'typescript-eslint';\nimport { rules } from '../src/rules';\nimport {\n name as packageName,\n version as packageVersion,\n} from '../package.json';\nimport all from '../src/configs/all';\nimport store from '../src/configs/store';\nimport effects from '../src/configs/effects';\nimport componentStore from '../src/configs/component-store';\nimport operators from '../src/configs/operators';\nimport signals from '../src/configs/signals';\n\nconst meta = { name: packageName, version: packageVersion };\n\nconst tsPlugin: TSESLint.FlatConfig.Plugin = {\n rules,\n};\n\nconst configs = {\n all: all(tsPlugin, parser),\n store: store(tsPlugin, parser),\n effects: effects(tsPlugin, parser),\n componentStore: componentStore(tsPlugin, parser),\n operators: operators(tsPlugin, parser),\n signals: signals(tsPlugin, parser),\n};\n\n/*\nAs the angular-eslint plugin we do both a default and named exports to allow people to use this package from\nboth CJS and ESM in very natural ways. \n*/\nexport default {\n meta,\n configs,\n};\nexport { meta, configs };\n"]}
@@ -1,46 +0,0 @@
1
- "use strict";
2
- /**
3
- * DO NOT EDIT
4
- * This file is generated
5
- */
6
- module.exports = {
7
- parser: '@typescript-eslint/parser',
8
- parserOptions: {
9
- ecmaVersion: 2020,
10
- sourceType: 'module',
11
- project: './tsconfig.json',
12
- },
13
- plugins: ['@ngrx'],
14
- rules: {
15
- '@ngrx/avoid-combining-component-store-selectors': 'warn',
16
- '@ngrx/avoid-mapping-component-store-selectors': 'warn',
17
- '@ngrx/updater-explicit-return-type': 'warn',
18
- '@ngrx/avoid-cyclic-effects': 'warn',
19
- '@ngrx/no-dispatch-in-effects': 'warn',
20
- '@ngrx/no-effects-in-providers': 'error',
21
- '@ngrx/no-multiple-actions-in-effects': 'warn',
22
- '@ngrx/prefer-action-creator-in-of-type': 'warn',
23
- '@ngrx/prefer-concat-latest-from': 'warn',
24
- '@ngrx/prefer-effect-callback-in-block-statement': 'warn',
25
- '@ngrx/use-effects-lifecycle-interface': 'warn',
26
- '@ngrx/avoid-combining-selectors': 'warn',
27
- '@ngrx/avoid-dispatching-multiple-actions-sequentially': 'warn',
28
- '@ngrx/avoid-duplicate-actions-in-reducer': 'warn',
29
- '@ngrx/avoid-mapping-selectors': 'warn',
30
- '@ngrx/good-action-hygiene': 'warn',
31
- '@ngrx/no-multiple-global-stores': 'warn',
32
- '@ngrx/no-reducer-in-key-names': 'warn',
33
- '@ngrx/no-store-subscription': 'warn',
34
- '@ngrx/no-typed-global-store': 'warn',
35
- '@ngrx/on-function-explicit-return-type': 'warn',
36
- '@ngrx/prefer-action-creator-in-dispatch': 'warn',
37
- '@ngrx/prefer-action-creator': 'warn',
38
- '@ngrx/prefer-inline-action-props': 'warn',
39
- '@ngrx/prefer-one-generic-in-create-for-feature-selector': 'warn',
40
- '@ngrx/prefer-selector-in-select': 'warn',
41
- '@ngrx/prefix-selectors-with-select': 'warn',
42
- '@ngrx/select-style': 'warn',
43
- '@ngrx/use-consistent-global-store-name': 'warn',
44
- },
45
- };
46
- //# sourceMappingURL=all-requiring-type-checking.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"all-requiring-type-checking.js","sourceRoot":"","sources":["../../../../../modules/eslint-plugin/src/configs/all-requiring-type-checking.ts"],"names":[],"mappings":";AAAA;;;GAGG;AAEH,iBAAS;IACP,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,QAAQ;QACpB,OAAO,EAAE,iBAAiB;KAC3B;IACD,OAAO,EAAE,CAAC,OAAO,CAAC;IAClB,KAAK,EAAE;QACL,iDAAiD,EAAE,MAAM;QACzD,+CAA+C,EAAE,MAAM;QACvD,oCAAoC,EAAE,MAAM;QAC5C,4BAA4B,EAAE,MAAM;QACpC,8BAA8B,EAAE,MAAM;QACtC,+BAA+B,EAAE,OAAO;QACxC,sCAAsC,EAAE,MAAM;QAC9C,wCAAwC,EAAE,MAAM;QAChD,iCAAiC,EAAE,MAAM;QACzC,iDAAiD,EAAE,MAAM;QACzD,uCAAuC,EAAE,MAAM;QAC/C,iCAAiC,EAAE,MAAM;QACzC,uDAAuD,EAAE,MAAM;QAC/D,0CAA0C,EAAE,MAAM;QAClD,+BAA+B,EAAE,MAAM;QACvC,2BAA2B,EAAE,MAAM;QACnC,iCAAiC,EAAE,MAAM;QACzC,+BAA+B,EAAE,MAAM;QACvC,6BAA6B,EAAE,MAAM;QACrC,6BAA6B,EAAE,MAAM;QACrC,wCAAwC,EAAE,MAAM;QAChD,yCAAyC,EAAE,MAAM;QACjD,6BAA6B,EAAE,MAAM;QACrC,kCAAkC,EAAE,MAAM;QAC1C,yDAAyD,EAAE,MAAM;QACjE,iCAAiC,EAAE,MAAM;QACzC,oCAAoC,EAAE,MAAM;QAC5C,oBAAoB,EAAE,MAAM;QAC5B,wCAAwC,EAAE,MAAM;KACjD;CACF,CAAC","sourcesContent":["/**\n * DO NOT EDIT\n * This file is generated\n */\n\nexport = {\n parser: '@typescript-eslint/parser',\n parserOptions: {\n ecmaVersion: 2020,\n sourceType: 'module',\n project: './tsconfig.json',\n },\n plugins: ['@ngrx'],\n rules: {\n '@ngrx/avoid-combining-component-store-selectors': 'warn',\n '@ngrx/avoid-mapping-component-store-selectors': 'warn',\n '@ngrx/updater-explicit-return-type': 'warn',\n '@ngrx/avoid-cyclic-effects': 'warn',\n '@ngrx/no-dispatch-in-effects': 'warn',\n '@ngrx/no-effects-in-providers': 'error',\n '@ngrx/no-multiple-actions-in-effects': 'warn',\n '@ngrx/prefer-action-creator-in-of-type': 'warn',\n '@ngrx/prefer-concat-latest-from': 'warn',\n '@ngrx/prefer-effect-callback-in-block-statement': 'warn',\n '@ngrx/use-effects-lifecycle-interface': 'warn',\n '@ngrx/avoid-combining-selectors': 'warn',\n '@ngrx/avoid-dispatching-multiple-actions-sequentially': 'warn',\n '@ngrx/avoid-duplicate-actions-in-reducer': 'warn',\n '@ngrx/avoid-mapping-selectors': 'warn',\n '@ngrx/good-action-hygiene': 'warn',\n '@ngrx/no-multiple-global-stores': 'warn',\n '@ngrx/no-reducer-in-key-names': 'warn',\n '@ngrx/no-store-subscription': 'warn',\n '@ngrx/no-typed-global-store': 'warn',\n '@ngrx/on-function-explicit-return-type': 'warn',\n '@ngrx/prefer-action-creator-in-dispatch': 'warn',\n '@ngrx/prefer-action-creator': 'warn',\n '@ngrx/prefer-inline-action-props': 'warn',\n '@ngrx/prefer-one-generic-in-create-for-feature-selector': 'warn',\n '@ngrx/prefer-selector-in-select': 'warn',\n '@ngrx/prefix-selectors-with-select': 'warn',\n '@ngrx/select-style': 'warn',\n '@ngrx/use-consistent-global-store-name': 'warn',\n },\n};\n"]}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /**
3
- * DO NOT EDIT
4
- * This file is generated
5
- */
6
- module.exports = {
7
- parser: '@typescript-eslint/parser',
8
- plugins: ['@ngrx'],
9
- rules: {
10
- '@ngrx/avoid-combining-component-store-selectors': 'error',
11
- '@ngrx/avoid-mapping-component-store-selectors': 'error',
12
- '@ngrx/updater-explicit-return-type': 'error',
13
- },
14
- };
15
- //# sourceMappingURL=component-store-strict.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-store-strict.js","sourceRoot":"","sources":["../../../../../modules/eslint-plugin/src/configs/component-store-strict.ts"],"names":[],"mappings":";AAAA;;;GAGG;AAEH,iBAAS;IACP,MAAM,EAAE,2BAA2B;IAEnC,OAAO,EAAE,CAAC,OAAO,CAAC;IAClB,KAAK,EAAE;QACL,iDAAiD,EAAE,OAAO;QAC1D,+CAA+C,EAAE,OAAO;QACxD,oCAAoC,EAAE,OAAO;KAC9C;CACF,CAAC","sourcesContent":["/**\n * DO NOT EDIT\n * This file is generated\n */\n\nexport = {\n parser: '@typescript-eslint/parser',\n\n plugins: ['@ngrx'],\n rules: {\n '@ngrx/avoid-combining-component-store-selectors': 'error',\n '@ngrx/avoid-mapping-component-store-selectors': 'error',\n '@ngrx/updater-explicit-return-type': 'error',\n },\n};\n"]}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /**
3
- * DO NOT EDIT
4
- * This file is generated
5
- */
6
- module.exports = {
7
- parser: '@typescript-eslint/parser',
8
- parserOptions: {
9
- ecmaVersion: 2020,
10
- sourceType: 'module',
11
- project: './tsconfig.json',
12
- },
13
- plugins: ['@ngrx'],
14
- rules: {
15
- '@ngrx/avoid-cyclic-effects': 'warn',
16
- '@ngrx/no-dispatch-in-effects': 'warn',
17
- '@ngrx/no-effects-in-providers': 'error',
18
- '@ngrx/no-multiple-actions-in-effects': 'warn',
19
- '@ngrx/prefer-action-creator-in-of-type': 'warn',
20
- '@ngrx/prefer-concat-latest-from': 'warn',
21
- '@ngrx/prefer-effect-callback-in-block-statement': 'warn',
22
- '@ngrx/use-effects-lifecycle-interface': 'warn',
23
- },
24
- };
25
- //# sourceMappingURL=effects-requiring-type-checking.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"effects-requiring-type-checking.js","sourceRoot":"","sources":["../../../../../modules/eslint-plugin/src/configs/effects-requiring-type-checking.ts"],"names":[],"mappings":";AAAA;;;GAGG;AAEH,iBAAS;IACP,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,QAAQ;QACpB,OAAO,EAAE,iBAAiB;KAC3B;IACD,OAAO,EAAE,CAAC,OAAO,CAAC;IAClB,KAAK,EAAE;QACL,4BAA4B,EAAE,MAAM;QACpC,8BAA8B,EAAE,MAAM;QACtC,+BAA+B,EAAE,OAAO;QACxC,sCAAsC,EAAE,MAAM;QAC9C,wCAAwC,EAAE,MAAM;QAChD,iCAAiC,EAAE,MAAM;QACzC,iDAAiD,EAAE,MAAM;QACzD,uCAAuC,EAAE,MAAM;KAChD;CACF,CAAC","sourcesContent":["/**\n * DO NOT EDIT\n * This file is generated\n */\n\nexport = {\n parser: '@typescript-eslint/parser',\n parserOptions: {\n ecmaVersion: 2020,\n sourceType: 'module',\n project: './tsconfig.json',\n },\n plugins: ['@ngrx'],\n rules: {\n '@ngrx/avoid-cyclic-effects': 'warn',\n '@ngrx/no-dispatch-in-effects': 'warn',\n '@ngrx/no-effects-in-providers': 'error',\n '@ngrx/no-multiple-actions-in-effects': 'warn',\n '@ngrx/prefer-action-creator-in-of-type': 'warn',\n '@ngrx/prefer-concat-latest-from': 'warn',\n '@ngrx/prefer-effect-callback-in-block-statement': 'warn',\n '@ngrx/use-effects-lifecycle-interface': 'warn',\n },\n};\n"]}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /**
3
- * DO NOT EDIT
4
- * This file is generated
5
- */
6
- module.exports = {
7
- parser: '@typescript-eslint/parser',
8
- parserOptions: {
9
- ecmaVersion: 2020,
10
- sourceType: 'module',
11
- project: './tsconfig.json',
12
- },
13
- plugins: ['@ngrx'],
14
- rules: {
15
- '@ngrx/avoid-cyclic-effects': 'error',
16
- '@ngrx/no-dispatch-in-effects': 'error',
17
- '@ngrx/no-effects-in-providers': 'error',
18
- '@ngrx/no-multiple-actions-in-effects': 'error',
19
- '@ngrx/prefer-action-creator-in-of-type': 'error',
20
- '@ngrx/prefer-concat-latest-from': 'error',
21
- '@ngrx/prefer-effect-callback-in-block-statement': 'error',
22
- '@ngrx/use-effects-lifecycle-interface': 'error',
23
- },
24
- };
25
- //# sourceMappingURL=effects-strict-requiring-type-checking.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"effects-strict-requiring-type-checking.js","sourceRoot":"","sources":["../../../../../modules/eslint-plugin/src/configs/effects-strict-requiring-type-checking.ts"],"names":[],"mappings":";AAAA;;;GAGG;AAEH,iBAAS;IACP,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,QAAQ;QACpB,OAAO,EAAE,iBAAiB;KAC3B;IACD,OAAO,EAAE,CAAC,OAAO,CAAC;IAClB,KAAK,EAAE;QACL,4BAA4B,EAAE,OAAO;QACrC,8BAA8B,EAAE,OAAO;QACvC,+BAA+B,EAAE,OAAO;QACxC,sCAAsC,EAAE,OAAO;QAC/C,wCAAwC,EAAE,OAAO;QACjD,iCAAiC,EAAE,OAAO;QAC1C,iDAAiD,EAAE,OAAO;QAC1D,uCAAuC,EAAE,OAAO;KACjD;CACF,CAAC","sourcesContent":["/**\n * DO NOT EDIT\n * This file is generated\n */\n\nexport = {\n parser: '@typescript-eslint/parser',\n parserOptions: {\n ecmaVersion: 2020,\n sourceType: 'module',\n project: './tsconfig.json',\n },\n plugins: ['@ngrx'],\n rules: {\n '@ngrx/avoid-cyclic-effects': 'error',\n '@ngrx/no-dispatch-in-effects': 'error',\n '@ngrx/no-effects-in-providers': 'error',\n '@ngrx/no-multiple-actions-in-effects': 'error',\n '@ngrx/prefer-action-creator-in-of-type': 'error',\n '@ngrx/prefer-concat-latest-from': 'error',\n '@ngrx/prefer-effect-callback-in-block-statement': 'error',\n '@ngrx/use-effects-lifecycle-interface': 'error',\n },\n};\n"]}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- /**
3
- * DO NOT EDIT
4
- * This file is generated
5
- */
6
- module.exports = {
7
- parser: '@typescript-eslint/parser',
8
- plugins: ['@ngrx'],
9
- rules: {
10
- '@ngrx/no-dispatch-in-effects': 'error',
11
- '@ngrx/no-effects-in-providers': 'error',
12
- '@ngrx/prefer-action-creator-in-of-type': 'error',
13
- '@ngrx/prefer-concat-latest-from': 'error',
14
- '@ngrx/prefer-effect-callback-in-block-statement': 'error',
15
- '@ngrx/use-effects-lifecycle-interface': 'error',
16
- },
17
- };
18
- //# sourceMappingURL=effects-strict.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"effects-strict.js","sourceRoot":"","sources":["../../../../../modules/eslint-plugin/src/configs/effects-strict.ts"],"names":[],"mappings":";AAAA;;;GAGG;AAEH,iBAAS;IACP,MAAM,EAAE,2BAA2B;IAEnC,OAAO,EAAE,CAAC,OAAO,CAAC;IAClB,KAAK,EAAE;QACL,8BAA8B,EAAE,OAAO;QACvC,+BAA+B,EAAE,OAAO;QACxC,wCAAwC,EAAE,OAAO;QACjD,iCAAiC,EAAE,OAAO;QAC1C,iDAAiD,EAAE,OAAO;QAC1D,uCAAuC,EAAE,OAAO;KACjD;CACF,CAAC","sourcesContent":["/**\n * DO NOT EDIT\n * This file is generated\n */\n\nexport = {\n parser: '@typescript-eslint/parser',\n\n plugins: ['@ngrx'],\n rules: {\n '@ngrx/no-dispatch-in-effects': 'error',\n '@ngrx/no-effects-in-providers': 'error',\n '@ngrx/prefer-action-creator-in-of-type': 'error',\n '@ngrx/prefer-concat-latest-from': 'error',\n '@ngrx/prefer-effect-callback-in-block-statement': 'error',\n '@ngrx/use-effects-lifecycle-interface': 'error',\n },\n};\n"]}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.configs = void 0;
15
- var utils_1 = require("../utils");
16
- // Copied from https://github.com/jest-community/eslint-plugin-jest/blob/main/src/index.ts
17
- var interopRequireDefault = function (obj) {
18
- return (obj === null || obj === void 0 ? void 0 : obj.__esModule) ? obj : { default: obj };
19
- };
20
- var importDefault = function (moduleName) {
21
- // eslint-disable-next-line @typescript-eslint/no-var-requires
22
- return interopRequireDefault(require(moduleName)).default;
23
- };
24
- var configDir = __dirname;
25
- var excludedFiles = ['index'];
26
- exports.configs = Array.from((0, utils_1.traverseFolder)(configDir))
27
- .filter(function (config) { return !excludedFiles.includes(config.file); })
28
- .reduce(function (allConfigs, config) {
29
- var _a;
30
- var entry = importDefault(config.path);
31
- return __assign(__assign({}, allConfigs), (_a = {}, _a[config.file] = entry, _a));
32
- }, {});
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../modules/eslint-plugin/src/configs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,kCAA0C;AAE1C,0FAA0F;AAE1F,IAAM,qBAAqB,GAAG,UAAC,GAAQ;IACrC,OAAA,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,UAAU,EAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE;AAAxC,CAAwC,CAAC;AAE3C,IAAM,aAAa,GAAG,UAAC,UAAkB;IACvC,8DAA8D;IAC9D,OAAA,qBAAqB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO;AAAlD,CAAkD,CAAC;AAErD,IAAM,SAAS,GAAG,SAAS,CAAC;AAC5B,IAAM,aAAa,GAAG,CAAC,OAAO,CAAC,CAAC;AAEnB,QAAA,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAA,sBAAc,EAAC,SAAS,CAAC,CAAC;KACzD,MAAM,CAAC,UAAC,MAAM,IAAK,OAAA,CAAC,aAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAApC,CAAoC,CAAC;KACxD,MAAM,CAA4C,UAAC,UAAU,EAAE,MAAM;;IACpE,IAAM,KAAK,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAA8B,CAAC;IACtE,6BACK,UAAU,gBACZ,MAAM,CAAC,IAAI,IAAG,KAAK,OACpB;AACJ,CAAC,EAAE,EAAE,CAAC,CAAC","sourcesContent":["import type { TSESLint } from '@typescript-eslint/experimental-utils';\nimport { traverseFolder } from '../utils';\n\n// Copied from https://github.com/jest-community/eslint-plugin-jest/blob/main/src/index.ts\n\nconst interopRequireDefault = (obj: any): { default: unknown } =>\n obj?.__esModule ? obj : { default: obj };\n\nconst importDefault = (moduleName: string) =>\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n interopRequireDefault(require(moduleName)).default;\n\nconst configDir = __dirname;\nconst excludedFiles = ['index'];\n\nexport const configs = Array.from(traverseFolder(configDir))\n .filter((config) => !excludedFiles.includes(config.file))\n .reduce<Record<string, TSESLint.Linter.RuleEntry>>((allConfigs, config) => {\n const entry = importDefault(config.path) as TSESLint.Linter.RuleEntry;\n return {\n ...allConfigs,\n [config.file]: entry,\n };\n }, {});\n"]}
@@ -1,46 +0,0 @@
1
- "use strict";
2
- /**
3
- * DO NOT EDIT
4
- * This file is generated
5
- */
6
- module.exports = {
7
- parser: '@typescript-eslint/parser',
8
- parserOptions: {
9
- ecmaVersion: 2020,
10
- sourceType: 'module',
11
- project: './tsconfig.json',
12
- },
13
- plugins: ['@ngrx'],
14
- rules: {
15
- '@ngrx/avoid-combining-component-store-selectors': 'warn',
16
- '@ngrx/avoid-mapping-component-store-selectors': 'warn',
17
- '@ngrx/updater-explicit-return-type': 'warn',
18
- '@ngrx/avoid-cyclic-effects': 'warn',
19
- '@ngrx/no-dispatch-in-effects': 'warn',
20
- '@ngrx/no-effects-in-providers': 'error',
21
- '@ngrx/no-multiple-actions-in-effects': 'warn',
22
- '@ngrx/prefer-action-creator-in-of-type': 'warn',
23
- '@ngrx/prefer-concat-latest-from': 'warn',
24
- '@ngrx/prefer-effect-callback-in-block-statement': 'warn',
25
- '@ngrx/use-effects-lifecycle-interface': 'warn',
26
- '@ngrx/avoid-combining-selectors': 'warn',
27
- '@ngrx/avoid-dispatching-multiple-actions-sequentially': 'warn',
28
- '@ngrx/avoid-duplicate-actions-in-reducer': 'warn',
29
- '@ngrx/avoid-mapping-selectors': 'warn',
30
- '@ngrx/good-action-hygiene': 'warn',
31
- '@ngrx/no-multiple-global-stores': 'warn',
32
- '@ngrx/no-reducer-in-key-names': 'warn',
33
- '@ngrx/no-store-subscription': 'warn',
34
- '@ngrx/no-typed-global-store': 'warn',
35
- '@ngrx/on-function-explicit-return-type': 'warn',
36
- '@ngrx/prefer-action-creator-in-dispatch': 'warn',
37
- '@ngrx/prefer-action-creator': 'warn',
38
- '@ngrx/prefer-inline-action-props': 'warn',
39
- '@ngrx/prefer-one-generic-in-create-for-feature-selector': 'warn',
40
- '@ngrx/prefer-selector-in-select': 'warn',
41
- '@ngrx/prefix-selectors-with-select': 'warn',
42
- '@ngrx/select-style': 'warn',
43
- '@ngrx/use-consistent-global-store-name': 'warn',
44
- },
45
- };
46
- //# sourceMappingURL=recommended-requiring-type-checking.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recommended-requiring-type-checking.js","sourceRoot":"","sources":["../../../../../modules/eslint-plugin/src/configs/recommended-requiring-type-checking.ts"],"names":[],"mappings":";AAAA;;;GAGG;AAEH,iBAAS;IACP,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,QAAQ;QACpB,OAAO,EAAE,iBAAiB;KAC3B;IACD,OAAO,EAAE,CAAC,OAAO,CAAC;IAClB,KAAK,EAAE;QACL,iDAAiD,EAAE,MAAM;QACzD,+CAA+C,EAAE,MAAM;QACvD,oCAAoC,EAAE,MAAM;QAC5C,4BAA4B,EAAE,MAAM;QACpC,8BAA8B,EAAE,MAAM;QACtC,+BAA+B,EAAE,OAAO;QACxC,sCAAsC,EAAE,MAAM;QAC9C,wCAAwC,EAAE,MAAM;QAChD,iCAAiC,EAAE,MAAM;QACzC,iDAAiD,EAAE,MAAM;QACzD,uCAAuC,EAAE,MAAM;QAC/C,iCAAiC,EAAE,MAAM;QACzC,uDAAuD,EAAE,MAAM;QAC/D,0CAA0C,EAAE,MAAM;QAClD,+BAA+B,EAAE,MAAM;QACvC,2BAA2B,EAAE,MAAM;QACnC,iCAAiC,EAAE,MAAM;QACzC,+BAA+B,EAAE,MAAM;QACvC,6BAA6B,EAAE,MAAM;QACrC,6BAA6B,EAAE,MAAM;QACrC,wCAAwC,EAAE,MAAM;QAChD,yCAAyC,EAAE,MAAM;QACjD,6BAA6B,EAAE,MAAM;QACrC,kCAAkC,EAAE,MAAM;QAC1C,yDAAyD,EAAE,MAAM;QACjE,iCAAiC,EAAE,MAAM;QACzC,oCAAoC,EAAE,MAAM;QAC5C,oBAAoB,EAAE,MAAM;QAC5B,wCAAwC,EAAE,MAAM;KACjD;CACF,CAAC","sourcesContent":["/**\n * DO NOT EDIT\n * This file is generated\n */\n\nexport = {\n parser: '@typescript-eslint/parser',\n parserOptions: {\n ecmaVersion: 2020,\n sourceType: 'module',\n project: './tsconfig.json',\n },\n plugins: ['@ngrx'],\n rules: {\n '@ngrx/avoid-combining-component-store-selectors': 'warn',\n '@ngrx/avoid-mapping-component-store-selectors': 'warn',\n '@ngrx/updater-explicit-return-type': 'warn',\n '@ngrx/avoid-cyclic-effects': 'warn',\n '@ngrx/no-dispatch-in-effects': 'warn',\n '@ngrx/no-effects-in-providers': 'error',\n '@ngrx/no-multiple-actions-in-effects': 'warn',\n '@ngrx/prefer-action-creator-in-of-type': 'warn',\n '@ngrx/prefer-concat-latest-from': 'warn',\n '@ngrx/prefer-effect-callback-in-block-statement': 'warn',\n '@ngrx/use-effects-lifecycle-interface': 'warn',\n '@ngrx/avoid-combining-selectors': 'warn',\n '@ngrx/avoid-dispatching-multiple-actions-sequentially': 'warn',\n '@ngrx/avoid-duplicate-actions-in-reducer': 'warn',\n '@ngrx/avoid-mapping-selectors': 'warn',\n '@ngrx/good-action-hygiene': 'warn',\n '@ngrx/no-multiple-global-stores': 'warn',\n '@ngrx/no-reducer-in-key-names': 'warn',\n '@ngrx/no-store-subscription': 'warn',\n '@ngrx/no-typed-global-store': 'warn',\n '@ngrx/on-function-explicit-return-type': 'warn',\n '@ngrx/prefer-action-creator-in-dispatch': 'warn',\n '@ngrx/prefer-action-creator': 'warn',\n '@ngrx/prefer-inline-action-props': 'warn',\n '@ngrx/prefer-one-generic-in-create-for-feature-selector': 'warn',\n '@ngrx/prefer-selector-in-select': 'warn',\n '@ngrx/prefix-selectors-with-select': 'warn',\n '@ngrx/select-style': 'warn',\n '@ngrx/use-consistent-global-store-name': 'warn',\n },\n};\n"]}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- /**
3
- * DO NOT EDIT
4
- * This file is generated
5
- */
6
- module.exports = {
7
- parser: '@typescript-eslint/parser',
8
- plugins: ['@ngrx'],
9
- rules: {
10
- '@ngrx/avoid-combining-component-store-selectors': 'warn',
11
- '@ngrx/avoid-mapping-component-store-selectors': 'warn',
12
- '@ngrx/updater-explicit-return-type': 'warn',
13
- '@ngrx/no-dispatch-in-effects': 'warn',
14
- '@ngrx/no-effects-in-providers': 'error',
15
- '@ngrx/prefer-action-creator-in-of-type': 'warn',
16
- '@ngrx/prefer-concat-latest-from': 'warn',
17
- '@ngrx/prefer-effect-callback-in-block-statement': 'warn',
18
- '@ngrx/use-effects-lifecycle-interface': 'warn',
19
- '@ngrx/avoid-combining-selectors': 'warn',
20
- '@ngrx/avoid-dispatching-multiple-actions-sequentially': 'warn',
21
- '@ngrx/avoid-duplicate-actions-in-reducer': 'warn',
22
- '@ngrx/avoid-mapping-selectors': 'warn',
23
- '@ngrx/good-action-hygiene': 'warn',
24
- '@ngrx/no-multiple-global-stores': 'warn',
25
- '@ngrx/no-reducer-in-key-names': 'warn',
26
- '@ngrx/no-store-subscription': 'warn',
27
- '@ngrx/no-typed-global-store': 'warn',
28
- '@ngrx/on-function-explicit-return-type': 'warn',
29
- '@ngrx/prefer-action-creator-in-dispatch': 'warn',
30
- '@ngrx/prefer-action-creator': 'warn',
31
- '@ngrx/prefer-inline-action-props': 'warn',
32
- '@ngrx/prefer-one-generic-in-create-for-feature-selector': 'warn',
33
- '@ngrx/prefer-selector-in-select': 'warn',
34
- '@ngrx/prefix-selectors-with-select': 'warn',
35
- '@ngrx/select-style': 'warn',
36
- '@ngrx/use-consistent-global-store-name': 'warn',
37
- },
38
- };
39
- //# sourceMappingURL=recommended.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recommended.js","sourceRoot":"","sources":["../../../../../modules/eslint-plugin/src/configs/recommended.ts"],"names":[],"mappings":";AAAA;;;GAGG;AAEH,iBAAS;IACP,MAAM,EAAE,2BAA2B;IAEnC,OAAO,EAAE,CAAC,OAAO,CAAC;IAClB,KAAK,EAAE;QACL,iDAAiD,EAAE,MAAM;QACzD,+CAA+C,EAAE,MAAM;QACvD,oCAAoC,EAAE,MAAM;QAC5C,8BAA8B,EAAE,MAAM;QACtC,+BAA+B,EAAE,OAAO;QACxC,wCAAwC,EAAE,MAAM;QAChD,iCAAiC,EAAE,MAAM;QACzC,iDAAiD,EAAE,MAAM;QACzD,uCAAuC,EAAE,MAAM;QAC/C,iCAAiC,EAAE,MAAM;QACzC,uDAAuD,EAAE,MAAM;QAC/D,0CAA0C,EAAE,MAAM;QAClD,+BAA+B,EAAE,MAAM;QACvC,2BAA2B,EAAE,MAAM;QACnC,iCAAiC,EAAE,MAAM;QACzC,+BAA+B,EAAE,MAAM;QACvC,6BAA6B,EAAE,MAAM;QACrC,6BAA6B,EAAE,MAAM;QACrC,wCAAwC,EAAE,MAAM;QAChD,yCAAyC,EAAE,MAAM;QACjD,6BAA6B,EAAE,MAAM;QACrC,kCAAkC,EAAE,MAAM;QAC1C,yDAAyD,EAAE,MAAM;QACjE,iCAAiC,EAAE,MAAM;QACzC,oCAAoC,EAAE,MAAM;QAC5C,oBAAoB,EAAE,MAAM;QAC5B,wCAAwC,EAAE,MAAM;KACjD;CACF,CAAC","sourcesContent":["/**\n * DO NOT EDIT\n * This file is generated\n */\n\nexport = {\n parser: '@typescript-eslint/parser',\n\n plugins: ['@ngrx'],\n rules: {\n '@ngrx/avoid-combining-component-store-selectors': 'warn',\n '@ngrx/avoid-mapping-component-store-selectors': 'warn',\n '@ngrx/updater-explicit-return-type': 'warn',\n '@ngrx/no-dispatch-in-effects': 'warn',\n '@ngrx/no-effects-in-providers': 'error',\n '@ngrx/prefer-action-creator-in-of-type': 'warn',\n '@ngrx/prefer-concat-latest-from': 'warn',\n '@ngrx/prefer-effect-callback-in-block-statement': 'warn',\n '@ngrx/use-effects-lifecycle-interface': 'warn',\n '@ngrx/avoid-combining-selectors': 'warn',\n '@ngrx/avoid-dispatching-multiple-actions-sequentially': 'warn',\n '@ngrx/avoid-duplicate-actions-in-reducer': 'warn',\n '@ngrx/avoid-mapping-selectors': 'warn',\n '@ngrx/good-action-hygiene': 'warn',\n '@ngrx/no-multiple-global-stores': 'warn',\n '@ngrx/no-reducer-in-key-names': 'warn',\n '@ngrx/no-store-subscription': 'warn',\n '@ngrx/no-typed-global-store': 'warn',\n '@ngrx/on-function-explicit-return-type': 'warn',\n '@ngrx/prefer-action-creator-in-dispatch': 'warn',\n '@ngrx/prefer-action-creator': 'warn',\n '@ngrx/prefer-inline-action-props': 'warn',\n '@ngrx/prefer-one-generic-in-create-for-feature-selector': 'warn',\n '@ngrx/prefer-selector-in-select': 'warn',\n '@ngrx/prefix-selectors-with-select': 'warn',\n '@ngrx/select-style': 'warn',\n '@ngrx/use-consistent-global-store-name': 'warn',\n },\n};\n"]}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- /**
3
- * DO NOT EDIT
4
- * This file is generated
5
- */
6
- module.exports = {
7
- parser: '@typescript-eslint/parser',
8
- plugins: ['@ngrx'],
9
- rules: {
10
- '@ngrx/avoid-combining-selectors': 'error',
11
- '@ngrx/avoid-dispatching-multiple-actions-sequentially': 'error',
12
- '@ngrx/avoid-duplicate-actions-in-reducer': 'error',
13
- '@ngrx/avoid-mapping-selectors': 'error',
14
- '@ngrx/good-action-hygiene': 'error',
15
- '@ngrx/no-multiple-global-stores': 'error',
16
- '@ngrx/no-reducer-in-key-names': 'error',
17
- '@ngrx/no-store-subscription': 'error',
18
- '@ngrx/no-typed-global-store': 'error',
19
- '@ngrx/on-function-explicit-return-type': 'error',
20
- '@ngrx/prefer-action-creator-in-dispatch': 'error',
21
- '@ngrx/prefer-action-creator': 'error',
22
- '@ngrx/prefer-inline-action-props': 'error',
23
- '@ngrx/prefer-one-generic-in-create-for-feature-selector': 'error',
24
- '@ngrx/prefer-selector-in-select': 'error',
25
- '@ngrx/prefix-selectors-with-select': 'error',
26
- '@ngrx/select-style': 'error',
27
- '@ngrx/use-consistent-global-store-name': 'error',
28
- },
29
- };
30
- //# sourceMappingURL=store-strict.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"store-strict.js","sourceRoot":"","sources":["../../../../../modules/eslint-plugin/src/configs/store-strict.ts"],"names":[],"mappings":";AAAA;;;GAGG;AAEH,iBAAS;IACP,MAAM,EAAE,2BAA2B;IAEnC,OAAO,EAAE,CAAC,OAAO,CAAC;IAClB,KAAK,EAAE;QACL,iCAAiC,EAAE,OAAO;QAC1C,uDAAuD,EAAE,OAAO;QAChE,0CAA0C,EAAE,OAAO;QACnD,+BAA+B,EAAE,OAAO;QACxC,2BAA2B,EAAE,OAAO;QACpC,iCAAiC,EAAE,OAAO;QAC1C,+BAA+B,EAAE,OAAO;QACxC,6BAA6B,EAAE,OAAO;QACtC,6BAA6B,EAAE,OAAO;QACtC,wCAAwC,EAAE,OAAO;QACjD,yCAAyC,EAAE,OAAO;QAClD,6BAA6B,EAAE,OAAO;QACtC,kCAAkC,EAAE,OAAO;QAC3C,yDAAyD,EAAE,OAAO;QAClE,iCAAiC,EAAE,OAAO;QAC1C,oCAAoC,EAAE,OAAO;QAC7C,oBAAoB,EAAE,OAAO;QAC7B,wCAAwC,EAAE,OAAO;KAClD;CACF,CAAC","sourcesContent":["/**\n * DO NOT EDIT\n * This file is generated\n */\n\nexport = {\n parser: '@typescript-eslint/parser',\n\n plugins: ['@ngrx'],\n rules: {\n '@ngrx/avoid-combining-selectors': 'error',\n '@ngrx/avoid-dispatching-multiple-actions-sequentially': 'error',\n '@ngrx/avoid-duplicate-actions-in-reducer': 'error',\n '@ngrx/avoid-mapping-selectors': 'error',\n '@ngrx/good-action-hygiene': 'error',\n '@ngrx/no-multiple-global-stores': 'error',\n '@ngrx/no-reducer-in-key-names': 'error',\n '@ngrx/no-store-subscription': 'error',\n '@ngrx/no-typed-global-store': 'error',\n '@ngrx/on-function-explicit-return-type': 'error',\n '@ngrx/prefer-action-creator-in-dispatch': 'error',\n '@ngrx/prefer-action-creator': 'error',\n '@ngrx/prefer-inline-action-props': 'error',\n '@ngrx/prefer-one-generic-in-create-for-feature-selector': 'error',\n '@ngrx/prefer-selector-in-select': 'error',\n '@ngrx/prefix-selectors-with-select': 'error',\n '@ngrx/select-style': 'error',\n '@ngrx/use-consistent-global-store-name': 'error',\n },\n};\n"]}
@@ -1,46 +0,0 @@
1
- "use strict";
2
- /**
3
- * DO NOT EDIT
4
- * This file is generated
5
- */
6
- module.exports = {
7
- parser: '@typescript-eslint/parser',
8
- parserOptions: {
9
- ecmaVersion: 2020,
10
- sourceType: 'module',
11
- project: './tsconfig.json',
12
- },
13
- plugins: ['@ngrx'],
14
- rules: {
15
- '@ngrx/avoid-combining-component-store-selectors': 'error',
16
- '@ngrx/avoid-mapping-component-store-selectors': 'error',
17
- '@ngrx/updater-explicit-return-type': 'error',
18
- '@ngrx/avoid-cyclic-effects': 'error',
19
- '@ngrx/no-dispatch-in-effects': 'error',
20
- '@ngrx/no-effects-in-providers': 'error',
21
- '@ngrx/no-multiple-actions-in-effects': 'error',
22
- '@ngrx/prefer-action-creator-in-of-type': 'error',
23
- '@ngrx/prefer-concat-latest-from': 'error',
24
- '@ngrx/prefer-effect-callback-in-block-statement': 'error',
25
- '@ngrx/use-effects-lifecycle-interface': 'error',
26
- '@ngrx/avoid-combining-selectors': 'error',
27
- '@ngrx/avoid-dispatching-multiple-actions-sequentially': 'error',
28
- '@ngrx/avoid-duplicate-actions-in-reducer': 'error',
29
- '@ngrx/avoid-mapping-selectors': 'error',
30
- '@ngrx/good-action-hygiene': 'error',
31
- '@ngrx/no-multiple-global-stores': 'error',
32
- '@ngrx/no-reducer-in-key-names': 'error',
33
- '@ngrx/no-store-subscription': 'error',
34
- '@ngrx/no-typed-global-store': 'error',
35
- '@ngrx/on-function-explicit-return-type': 'error',
36
- '@ngrx/prefer-action-creator-in-dispatch': 'error',
37
- '@ngrx/prefer-action-creator': 'error',
38
- '@ngrx/prefer-inline-action-props': 'error',
39
- '@ngrx/prefer-one-generic-in-create-for-feature-selector': 'error',
40
- '@ngrx/prefer-selector-in-select': 'error',
41
- '@ngrx/prefix-selectors-with-select': 'error',
42
- '@ngrx/select-style': 'error',
43
- '@ngrx/use-consistent-global-store-name': 'error',
44
- },
45
- };
46
- //# sourceMappingURL=strict-requiring-type-checking.js.map