You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13-5
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
Please see [the README](./README.md) for details of added rules.
9
9
10
+
## 5.4.0
11
+
12
+
- no-indexed-access-on-enums - fix missing import that caused eslint to crash when using this rule
13
+
- Mark Angular and Typescript peerDependencies as optional
14
+
- Switch from eslint-plugin-node to eslint-plugin-n
15
+
- eslint-plugin-node is no no longer maintained, eslint-plugin-n is a fork
16
+
- no-spreading-accumulators - pass error message in to remove eslint-plugin/prefer-message-ids lint error
17
+
10
18
## [5.3.0]
11
19
12
20
- Disable the rule `no-call-expression` from `@angular-eslint/eslint-plugin-template` to allow using [signals](https://angular.dev/guide/signals)
@@ -34,9 +42,9 @@ Please see [the README](./README.md) for details of added rules.
34
42
### Changed
35
43
36
44
- Removal of the rules `deny-constructor-di` and `import-inject-object` from `@rdlabo/eslint-plugin-rules` because the auto-fix has too many issues:
37
-
- It applies on irrelevant places cf https://github.com/rdlabo-team/eslint-plugin-rules/issues/1#issuecomment-1980955010
38
-
- It gets lost with access modifiers cf https://github.com/rdlabo-team/eslint-plugin-rules/issues/4
39
-
- It generates broken code cf https://github.com/rdlabo-team/eslint-plugin-rules/issues/5
45
+
- It applies on irrelevant places cf <https://github.com/rdlabo-team/eslint-plugin-rules/issues/1#issuecomment-1980955010>
46
+
- It gets lost with access modifiers cf <https://github.com/rdlabo-team/eslint-plugin-rules/issues/4>
47
+
- It generates broken code cf <https://github.com/rdlabo-team/eslint-plugin-rules/issues/5>
40
48
- Removal of deprecated configurations
41
49
42
50
## [5.1.0]
@@ -59,7 +67,7 @@ Please see [the README](./README.md) for details of added rules.
59
67
60
68
### Changed
61
69
62
-
- Rule `no-indexed-access-on-enums` disabled due to the bug https://github.com/criteo/eslint-plugin-criteo/issues/30
70
+
- Rule `no-indexed-access-on-enums` disabled due to the bug <https://github.com/criteo/eslint-plugin-criteo/issues/30>
63
71
- Rule `ngx-component-display` now ignores components matching `^.*(?:Dialog|Modal)Component$` (previously, only `^.*DialogComponent$` were ignored)
64
72
65
73
## [4.12.0]
@@ -165,7 +173,7 @@ Please see [the README](./README.md) for details of added rules.
165
173
### Changed
166
174
167
175
-[BREAKING] Upgrade Angular plugins to version 13 for compatibility with Angular 13
168
-
-[BREAKING] Move dependent plugins to peerDependencies so that they appear in the root node_modules (https://github.com/criteo/eslint-plugin-criteo/issues/15)
176
+
-[BREAKING] Move dependent plugins to peerDependencies so that they appear in the root node_modules (<https://github.com/criteo/eslint-plugin-criteo/issues/15>)
169
177
-[BREAKING] Update `engines` field in package.json to only allow npm versions >= 7
Copy file name to clipboardExpand all lines: lib/rules/no-spreading-accumulators.js
+10-9
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,14 @@ module.exports = {
12
12
type: 'problem',
13
13
fixable: 'code',
14
14
schema: [],
15
+
messages: {
16
+
objectMessage: `Creating a new object by spreading the previous accumulator at every iteration of a .reduce() call has O(n^2) time & spatial complexity. If possible, make this O(n) by assigning to the existing accumulator or use mappedBy() or mappedByUnique() instead of .reduce(). ${moreInfo}`,
17
+
arrayMessage: `Creating a new array by spreading the previous accumulator at every iteration of a .reduce() call has O(n^2) time & spatial complexity. If possible, make this O(n) by pushing to the existing accumulator instead. ${moreInfo}`,
constobjectMessage=`Creating a new object by spreading the previous accumulator at every iteration of a .reduce() call has O(n^2) time & spatial complexity. If possible, make this O(n) by assigning to the existing accumulator or use mappedBy() or mappedByUnique() instead of .reduce(). ${moreInfo}`;
20
-
constarrayMessage=`Creating a new array by spreading the previous accumulator at every iteration of a .reduce() call has O(n^2) time & spatial complexity. If possible, make this O(n) by pushing to the existing accumulator instead. ${moreInfo}`;
21
-
22
23
// only fetch the source code if getNodeText is called, and only fetch it once if we do
0 commit comments