@dextinity/eslint-config 2.0.0-canary-20260729062014

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/CHANGELOG.md ADDED
@@ -0,0 +1,1098 @@
1
+ # @comet/eslint-config
2
+
3
+ ## 2.0.0-canary-20260729062014
4
+
5
+ ### Patch Changes
6
+
7
+ - @dextinity/eslint-plugin@2.0.0-canary-20260729062014
8
+
9
+ ## 9.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - @comet/eslint-plugin@9.2.2
14
+
15
+ ## 9.2.1
16
+
17
+ ### Patch Changes
18
+
19
+ - @comet/eslint-plugin@9.2.1
20
+
21
+ ## 9.2.0
22
+
23
+ ### Patch Changes
24
+
25
+ - @comet/eslint-plugin@9.2.0
26
+
27
+ ## 9.1.1
28
+
29
+ ### Patch Changes
30
+
31
+ - @comet/eslint-plugin@9.1.1
32
+
33
+ ## 9.1.0
34
+
35
+ ### Patch Changes
36
+
37
+ - @comet/eslint-plugin@9.1.0
38
+
39
+ ## 9.0.1
40
+
41
+ ### Patch Changes
42
+
43
+ - @comet/eslint-plugin@9.0.1
44
+
45
+ ## 9.0.0
46
+
47
+ ### Major Changes
48
+
49
+ - 23a09c2: Add `curly` ESLint rule to enforce braces for control statements
50
+
51
+ This rule requires braces around the body of all control statements (if, else, for, while, etc.) to improve code readability and reduce diff size when adding statements.
52
+
53
+ - 1f903b6: Enable `@typescript-eslint/no-import-type-side-effects` rule
54
+ - f51972c: Enable `@graphql-eslint/naming-convention` in `react.js` and `nextjs.js`
55
+
56
+ GraphQL code generation appends the operation kind (`Fragment`, `Query`, `Mutation`, `Subscription`) to the generated TypeScript type name. Naming an operation `FooFragment` / `FooQuery` therefore produces duplicated types like `GQLFooFragmentFragment` / `GQLFooQueryQuery`. The `@graphql-eslint/naming-convention` rule from `@graphql-eslint/eslint-plugin` reports such names inside `gql`/`graphql`-tagged template literals.
57
+
58
+ - 99140f8: Bump MUI X Data Grid peer dependency to v8
59
+
60
+ See the migration guide for information on how to upgrade.
61
+
62
+ - db6b83a: Prevent lib imports from `@comet/` packages
63
+
64
+ Use `no-restricted-imports` to prevent importing private files from `@comet/*/lib`. For example, the following import would be forbidden:
65
+
66
+ ```ts
67
+ import { something } from "@comet/admin/lib/some/private/file";
68
+ ```
69
+
70
+ - 77a371e: Prevent importing dev dependencies in the API
71
+
72
+ Add `import/no-extraneous-dependencies` rule with `devDependencies` restriction to the NestJS ESLint config, preventing accidental imports of dev-only packages in production source files. Dev dependencies may only be imported in test files.
73
+
74
+ Fix `@comet/brevo-api` to correctly declare `@nestjs/graphql`, `graphql`, `graphql-scalars`, `lodash.isequal`, and `uuid` as dependencies/peerDependencies instead of devDependencies, since they are imported in source code.
75
+
76
+ - 695a9c9: Promote `future/*` ESLint rules into the main configs
77
+
78
+ The rules previously only available via `@comet/eslint-config/future/*` are now part of the main configs and apply by default. The `future/*` subpaths are kept as aliases that re-export the main configs, so existing imports continue to work without changes.
79
+
80
+ **Newly active rules in the main configs**
81
+ - `react.js`:
82
+ - `react/jsx-no-literals` (with a small allowlist of common symbols)
83
+ - `@typescript-eslint/consistent-type-exports`
84
+ - `formatjs/enforce-default-message` is now enforced as `"literal"`
85
+ - `nextjs.js`:
86
+ - `node-cache` is restricted via `no-restricted-imports`
87
+ - `nestjs.js`:
88
+ - `node-cache` is restricted via `no-restricted-imports` (and `restrictedImportPaths` is now exported)
89
+
90
+ - 740dba8: Add support for Next.js 15 and 16
91
+
92
+ `@comet/site-nextjs` now supports Next.js 14, 15, and 16. We recommend using Next.js 16.
93
+
94
+ ### Patch Changes
95
+
96
+ - c57e54e: Allow `console.info` and `console.debug` in the `no-console` ESLint rule
97
+ - 4b1d586: Fix missing Rules of React in `@comet/eslint-config/nextjs.js`
98
+ - Updated dependencies [db6b83a]
99
+ - @comet/eslint-plugin@9.0.0
100
+
101
+ ## 9.0.0-beta.6
102
+
103
+ ### Patch Changes
104
+
105
+ - @comet/eslint-plugin@9.0.0-beta.6
106
+
107
+ ## 9.0.0-beta.5
108
+
109
+ ### Major Changes
110
+
111
+ - f51972c: Enable `@graphql-eslint/naming-convention` in `react.js` and `nextjs.js`
112
+
113
+ GraphQL code generation appends the operation kind (`Fragment`, `Query`, `Mutation`, `Subscription`) to the generated TypeScript type name. Naming an operation `FooFragment` / `FooQuery` therefore produces duplicated types like `GQLFooFragmentFragment` / `GQLFooQueryQuery`. The `@graphql-eslint/naming-convention` rule from `@graphql-eslint/eslint-plugin` reports such names inside `gql`/`graphql`-tagged template literals.
114
+
115
+ ### Patch Changes
116
+
117
+ - @comet/eslint-plugin@9.0.0-beta.5
118
+
119
+ ## 9.0.0-beta.4
120
+
121
+ ### Major Changes
122
+
123
+ - 695a9c9: Promote `future/*` ESLint rules into the main configs
124
+
125
+ The rules previously only available via `@comet/eslint-config/future/*` are now part of the main configs and apply by default. The `future/*` subpaths are kept as aliases that re-export the main configs, so existing imports continue to work without changes.
126
+
127
+ **Newly active rules in the main configs**
128
+ - `react.js`:
129
+ - `react/jsx-no-literals` (with a small allowlist of common symbols)
130
+ - `@typescript-eslint/consistent-type-exports`
131
+ - `formatjs/enforce-default-message` is now enforced as `"literal"`
132
+ - `nextjs.js`:
133
+ - `node-cache` is restricted via `no-restricted-imports`
134
+ - `nestjs.js`:
135
+ - `node-cache` is restricted via `no-restricted-imports` (and `restrictedImportPaths` is now exported)
136
+
137
+ ### Patch Changes
138
+
139
+ - @comet/eslint-plugin@9.0.0-beta.4
140
+
141
+ ## 9.0.0-beta.3
142
+
143
+ ### Major Changes
144
+
145
+ - 23a09c2: Add `curly` ESLint rule to enforce braces for control statements
146
+
147
+ This rule requires braces around the body of all control statements (if, else, for, while, etc.) to improve code readability and reduce diff size when adding statements.
148
+
149
+ - 1f903b6: Enable `@typescript-eslint/no-import-type-side-effects` rule
150
+ - 77a371e: Prevent importing dev dependencies in the API
151
+
152
+ Add `import/no-extraneous-dependencies` rule with `devDependencies` restriction to the NestJS ESLint config, preventing accidental imports of dev-only packages in production source files. Dev dependencies may only be imported in test files.
153
+
154
+ Fix `@comet/brevo-api` to correctly declare `@nestjs/graphql`, `graphql`, `graphql-scalars`, `lodash.isequal`, and `uuid` as dependencies/peerDependencies instead of devDependencies, since they are imported in source code.
155
+
156
+ ### Patch Changes
157
+
158
+ - c57e54e: Allow `console.info` and `console.debug` in the `no-console` ESLint rule
159
+ - @comet/eslint-plugin@9.0.0-beta.3
160
+
161
+ ## 9.0.0-beta.2
162
+
163
+ ### Major Changes
164
+
165
+ - 99140f8: Bump MUI X Data Grid peer dependency to v8
166
+
167
+ See the migration guide for information on how to upgrade.
168
+
169
+ ### Patch Changes
170
+
171
+ - @comet/eslint-plugin@9.0.0-beta.2
172
+
173
+ ## 9.0.0-beta.1
174
+
175
+ ### Patch Changes
176
+
177
+ - 4b1d586: Fix missing Rules of React in `@comet/eslint-config/nextjs.js`
178
+ - @comet/eslint-plugin@9.0.0-beta.1
179
+
180
+ ## 9.0.0-beta.0
181
+
182
+ ### Major Changes
183
+
184
+ - db6b83a: Prevent lib imports from `@comet/` packages
185
+
186
+ Use `no-restricted-imports` to prevent importing private files from `@comet/*/lib`. For example, the following import would be forbidden:
187
+
188
+ ```ts
189
+ import { something } from "@comet/admin/lib/some/private/file";
190
+ ```
191
+
192
+ - 740dba8: Bump Next.js peer dependency to v16
193
+
194
+ Follow the official migration guides ([v15](https://nextjs.org/docs/app/guides/upgrading/version-15), [v16](https://nextjs.org/docs/app/guides/upgrading/version-16)) to upgrade.
195
+
196
+ ### Patch Changes
197
+
198
+ - Updated dependencies [db6b83a]
199
+ - @comet/eslint-plugin@9.0.0-beta.0
200
+
201
+ ## 8.20.0
202
+
203
+ ### Patch Changes
204
+
205
+ - @comet/eslint-plugin@8.20.0
206
+
207
+ ## 8.19.0
208
+
209
+ ### Patch Changes
210
+
211
+ - @comet/eslint-plugin@8.19.0
212
+
213
+ ## 8.18.0
214
+
215
+ ### Patch Changes
216
+
217
+ - @comet/eslint-plugin@8.18.0
218
+
219
+ ## 8.17.1
220
+
221
+ ### Patch Changes
222
+
223
+ - @comet/eslint-plugin@8.17.1
224
+
225
+ ## 8.17.0
226
+
227
+ ### Patch Changes
228
+
229
+ - @comet/eslint-plugin@8.17.0
230
+
231
+ ## 8.16.0
232
+
233
+ ### Patch Changes
234
+
235
+ - @comet/eslint-plugin@8.16.0
236
+
237
+ ## 8.15.0
238
+
239
+ ### Patch Changes
240
+
241
+ - @comet/eslint-plugin@8.15.0
242
+
243
+ ## 8.14.0
244
+
245
+ ### Minor Changes
246
+
247
+ - af265a8: Clarify `next/image` import restriction in `@comet/eslint-config/nextjs.js`
248
+
249
+ ### Patch Changes
250
+
251
+ - 3d0af69: Fix extending Next.js' ESLint config in `@comet/eslint-config/nextjs.js`
252
+ - @comet/eslint-plugin@8.14.0
253
+
254
+ ## 8.13.0
255
+
256
+ ### Patch Changes
257
+
258
+ - @comet/eslint-plugin@8.13.0
259
+
260
+ ## 8.12.0
261
+
262
+ ### Patch Changes
263
+
264
+ - @comet/eslint-plugin@8.12.0
265
+
266
+ ## 8.11.1
267
+
268
+ ### Patch Changes
269
+
270
+ - @comet/eslint-plugin@8.11.1
271
+
272
+ ## 8.11.0
273
+
274
+ ### Minor Changes
275
+
276
+ - 4b448f6: Format.JS: enforce literal default messages
277
+
278
+ Prevent function calls or variables in `defaultMessage` which are not supported in our internationalization workflow.
279
+
280
+ - e5427a0: Future: Ban `node-cache` because it's unmaintained
281
+
282
+ Introduce a new rule in `future/nestjs` and `future/nextjs` that bans importing `node-cache` and recommends `cache-manager` / `@cacheable/node-cache` / `@nestjs/cache-manager` instead.
283
+
284
+ This rule is now in the future configs and will be enforced generally in v9.
285
+
286
+ - 9d5e331: Enable `@typescript-eslint/consistent-type-exports` in `@comet/eslint-config/future/react.js`
287
+
288
+ ### Patch Changes
289
+
290
+ - @comet/eslint-plugin@8.11.0
291
+
292
+ ## 8.10.0
293
+
294
+ ### Patch Changes
295
+
296
+ - @comet/eslint-plugin@8.10.0
297
+
298
+ ## 8.9.0
299
+
300
+ ### Patch Changes
301
+
302
+ - @comet/eslint-plugin@8.9.0
303
+
304
+ ## 8.8.0
305
+
306
+ ### Minor Changes
307
+
308
+ - f8bf3f5: Detect React version in `@comet/eslint-config/react.js` and `@comet/eslint-config/nextjs.js`
309
+
310
+ Removes the `React version not specified in eslint-plugin-react settings. See https://github.com/jsx-eslint/eslint-plugin-react#configuration.` warning.
311
+
312
+ ### Patch Changes
313
+
314
+ - @comet/eslint-plugin@8.8.0
315
+
316
+ ## 8.7.1
317
+
318
+ ### Patch Changes
319
+
320
+ - @comet/eslint-plugin@8.7.1
321
+
322
+ ## 8.7.0
323
+
324
+ ### Patch Changes
325
+
326
+ - @comet/eslint-plugin@8.7.0
327
+
328
+ ## 8.6.0
329
+
330
+ ### Patch Changes
331
+
332
+ - @comet/eslint-plugin@8.6.0
333
+
334
+ ## 8.5.2
335
+
336
+ ### Patch Changes
337
+
338
+ - @comet/eslint-plugin@8.5.2
339
+
340
+ ## 8.5.1
341
+
342
+ ### Patch Changes
343
+
344
+ - dcb9712: Disable `@next/next/no-img-element` rule
345
+ - @comet/eslint-plugin@8.5.1
346
+
347
+ ## 8.5.0
348
+
349
+ ### Patch Changes
350
+
351
+ - @comet/eslint-plugin@8.5.0
352
+
353
+ ## 8.4.2
354
+
355
+ ### Patch Changes
356
+
357
+ - @comet/eslint-plugin@8.4.2
358
+
359
+ ## 8.4.1
360
+
361
+ ### Patch Changes
362
+
363
+ - @comet/eslint-plugin@8.4.1
364
+
365
+ ## 8.4.0
366
+
367
+ ### Patch Changes
368
+
369
+ - 576731f: Allow `%` as a string literal in `future/react.js`
370
+ - @comet/eslint-plugin@8.4.0
371
+
372
+ ## 8.3.0
373
+
374
+ ### Minor Changes
375
+
376
+ - dd4e4a8: Introduce a new future/react.js configuration and enable the ESLint rule react/jsx-no-literals.
377
+
378
+ ### Patch Changes
379
+
380
+ - @comet/eslint-plugin@8.3.0
381
+
382
+ ## 8.2.0
383
+
384
+ ### Patch Changes
385
+
386
+ - 594331e: Fix import restriction of `@mui/material` components: `Alert`, `Button`, `Dialog`, `Tooltip`
387
+
388
+ The restriction was not working for deep imports like `import Button from "@mui/material/Button"`.
389
+ - @comet/eslint-plugin@8.2.0
390
+
391
+ ## 8.1.1
392
+
393
+ ### Patch Changes
394
+
395
+ - @comet/eslint-plugin@8.1.1
396
+
397
+ ## 8.1.0
398
+
399
+ ### Patch Changes
400
+
401
+ - @comet/eslint-plugin@8.1.0
402
+
403
+ ## 8.0.0
404
+
405
+ ### Major Changes
406
+
407
+ - 6d3c196: Add import restriction for MUI's `Button`
408
+
409
+ Buttons used in Comet DXP applications should match the Comet CI.
410
+ Use `Button` from `@comet/admin` instead.
411
+
412
+ - ceaf99d: Bump ESLint peer dependency to v9
413
+ - f904b71: Require Node v22
414
+
415
+ The minimum required Node version is now v22.0.0.
416
+ See the migration guide for instructions on how to upgrade your project.
417
+
418
+ - 4d0d820: Prevent `@mui/material` tooltip imports
419
+
420
+ Tooltips used in Comet DXP applications should match the Comet CI.
421
+ Use tooltips from `@comet/admin` instead.
422
+
423
+ - c6d87a2: Bump Prettier peer dependency to v3
424
+ - 9509f97: Enable rule to restrict barrel React imports
425
+
426
+ Importing `React` is no longer necessary due to the new JSX transform, which automatically imports the necessary `react/jsx-runtime` functions.
427
+ Use individual named imports instead, e.g, `import { useState } from "react"`.
428
+
429
+ ### Minor Changes
430
+
431
+ - a8edddb: Enable `@typescript-eslint/consistent-type-imports` rule
432
+
433
+ ### Patch Changes
434
+
435
+ - 6ec43c9: Use recommended config from eslint-plugin-package-json correctly
436
+ - 649297e: Readd `@comet/eslint-plugin` dependency that was mistakenly removed
437
+ - Updated dependencies [f904b71]
438
+ - @comet/eslint-plugin@8.0.0
439
+
440
+ ## 8.0.0-beta.6
441
+
442
+ ### Patch Changes
443
+
444
+ - @comet/eslint-plugin@8.0.0-beta.6
445
+
446
+ ## 8.0.0-beta.5
447
+
448
+ ### Major Changes
449
+
450
+ - 6d3c196: Add import restriction for MUI's `Button`
451
+
452
+ Buttons used in Comet DXP applications should match the Comet CI.
453
+ Use `Button` from `@comet/admin` instead.
454
+
455
+ ### Patch Changes
456
+
457
+ - @comet/eslint-plugin@8.0.0-beta.5
458
+
459
+ ## 8.0.0-beta.4
460
+
461
+ ### Patch Changes
462
+
463
+ - 6ec43c9: Use recommended config from eslint-plugin-package-json correctly
464
+ - @comet/eslint-plugin@8.0.0-beta.4
465
+
466
+ ## 8.0.0-beta.3
467
+
468
+ ### Patch Changes
469
+
470
+ - @comet/eslint-plugin@8.0.0-beta.3
471
+
472
+ ## 8.0.0-beta.2
473
+
474
+ ### Major Changes
475
+
476
+ - f904b71: Require Node v22
477
+
478
+ The minimum required Node version is now v22.0.0.
479
+ See the migration guide for instructions on how to upgrade your project.
480
+
481
+ ### Patch Changes
482
+
483
+ - Updated dependencies [f904b71]
484
+ - @comet/eslint-plugin@8.0.0-beta.2
485
+
486
+ ## 8.0.0-beta.1
487
+
488
+ ### Patch Changes
489
+
490
+ - 649297e: Readd `@comet/eslint-plugin` dependency that was mistakenly removed
491
+ - @comet/eslint-plugin@8.0.0-beta.1
492
+
493
+ ## 8.0.0-beta.0
494
+
495
+ ### Major Changes
496
+
497
+ - ceaf99d: Bump ESLint peer dependency to v9
498
+ - 4d0d820: Prevent `@mui/material` tooltip imports
499
+
500
+ Tooltips used in Comet DXP applications should match the Comet CI.
501
+ Use tooltips from `@comet/admin` instead.
502
+
503
+ - c6d87a2: Bump Prettier peer dependency to v3
504
+ - 9509f97: Enable rule to restrict barrel React imports
505
+
506
+ Importing `React` is no longer necessary due to the new JSX transform, which automatically imports the necessary `react/jsx-runtime` functions.
507
+ Use individual named imports instead, e.g, `import { useState } from "react"`.
508
+
509
+ ### Minor Changes
510
+
511
+ - a8edddb: Enable `@typescript-eslint/consistent-type-imports` rule
512
+
513
+ ## 7.25.3
514
+
515
+ ### Patch Changes
516
+
517
+ - @comet/eslint-plugin@7.25.3
518
+
519
+ ## 7.25.2
520
+
521
+ ### Patch Changes
522
+
523
+ - @comet/eslint-plugin@7.25.2
524
+
525
+ ## 7.25.1
526
+
527
+ ### Patch Changes
528
+
529
+ - Updated dependencies [85e80218f]
530
+ - @comet/eslint-plugin@7.25.1
531
+
532
+ ## 7.25.0
533
+
534
+ ### Patch Changes
535
+
536
+ - @comet/eslint-plugin@7.25.0
537
+
538
+ ## 7.24.0
539
+
540
+ ### Patch Changes
541
+
542
+ - @comet/eslint-plugin@7.24.0
543
+
544
+ ## 7.23.0
545
+
546
+ ### Patch Changes
547
+
548
+ - @comet/eslint-plugin@7.23.0
549
+
550
+ ## 7.22.0
551
+
552
+ ### Patch Changes
553
+
554
+ - @comet/eslint-plugin@7.22.0
555
+
556
+ ## 7.21.1
557
+
558
+ ### Patch Changes
559
+
560
+ - @comet/eslint-plugin@7.21.1
561
+
562
+ ## 7.21.0
563
+
564
+ ### Patch Changes
565
+
566
+ - @comet/eslint-plugin@7.21.0
567
+
568
+ ## 7.20.0
569
+
570
+ ### Patch Changes
571
+
572
+ - @comet/eslint-plugin@7.20.0
573
+
574
+ ## 7.19.0
575
+
576
+ ### Patch Changes
577
+
578
+ - @comet/eslint-plugin@7.19.0
579
+
580
+ ## 7.18.0
581
+
582
+ ### Patch Changes
583
+
584
+ - @comet/eslint-plugin@7.18.0
585
+
586
+ ## 7.17.0
587
+
588
+ ### Patch Changes
589
+
590
+ - @comet/eslint-plugin@7.17.0
591
+
592
+ ## 7.16.0
593
+
594
+ ### Patch Changes
595
+
596
+ - @comet/eslint-plugin@7.16.0
597
+
598
+ ## 7.15.0
599
+
600
+ ### Patch Changes
601
+
602
+ - @comet/eslint-plugin@7.15.0
603
+
604
+ ## 7.14.0
605
+
606
+ ### Patch Changes
607
+
608
+ - @comet/eslint-plugin@7.14.0
609
+
610
+ ## 7.13.0
611
+
612
+ ### Patch Changes
613
+
614
+ - @comet/eslint-plugin@7.13.0
615
+
616
+ ## 7.12.0
617
+
618
+ ### Patch Changes
619
+
620
+ - @comet/eslint-plugin@7.12.0
621
+
622
+ ## 7.11.0
623
+
624
+ ### Patch Changes
625
+
626
+ - @comet/eslint-plugin@7.11.0
627
+
628
+ ## 7.10.0
629
+
630
+ ### Patch Changes
631
+
632
+ - @comet/eslint-plugin@7.10.0
633
+
634
+ ## 7.9.0
635
+
636
+ ### Patch Changes
637
+
638
+ - @comet/eslint-plugin@7.9.0
639
+
640
+ ## 7.8.0
641
+
642
+ ### Patch Changes
643
+
644
+ - @comet/eslint-plugin@7.8.0
645
+
646
+ ## 7.7.0
647
+
648
+ ### Patch Changes
649
+
650
+ - @comet/eslint-plugin@7.7.0
651
+
652
+ ## 7.6.0
653
+
654
+ ### Patch Changes
655
+
656
+ - @comet/eslint-plugin@7.6.0
657
+
658
+ ## 7.5.0
659
+
660
+ ### Patch Changes
661
+
662
+ - @comet/eslint-plugin@7.5.0
663
+
664
+ ## 7.4.2
665
+
666
+ ### Patch Changes
667
+
668
+ - @comet/eslint-plugin@7.4.2
669
+
670
+ ## 7.4.1
671
+
672
+ ### Patch Changes
673
+
674
+ - @comet/eslint-plugin@7.4.1
675
+
676
+ ## 7.4.0
677
+
678
+ ### Patch Changes
679
+
680
+ - @comet/eslint-plugin@7.4.0
681
+
682
+ ## 7.3.2
683
+
684
+ ### Patch Changes
685
+
686
+ - @comet/eslint-plugin@7.3.2
687
+
688
+ ## 7.3.1
689
+
690
+ ### Patch Changes
691
+
692
+ - @comet/eslint-plugin@7.3.1
693
+
694
+ ## 7.3.0
695
+
696
+ ### Patch Changes
697
+
698
+ - @comet/eslint-plugin@7.3.0
699
+
700
+ ## 7.2.1
701
+
702
+ ### Patch Changes
703
+
704
+ - @comet/eslint-plugin@7.2.1
705
+
706
+ ## 7.2.0
707
+
708
+ ### Patch Changes
709
+
710
+ - @comet/eslint-plugin@7.2.0
711
+
712
+ ## 7.1.0
713
+
714
+ ### Patch Changes
715
+
716
+ - @comet/eslint-plugin@7.1.0
717
+
718
+ ## 7.0.0
719
+
720
+ ### Major Changes
721
+
722
+ - 45585f4cc: Add the rule `@typescript-eslint/prefer-enum-initializers` to require enum initializers
723
+
724
+ ```ts
725
+ // ✅
726
+ enum ExampleEnum {
727
+ One = "One",
728
+ Two = "Two",
729
+ }
730
+ ```
731
+
732
+ ```ts
733
+ // ❌
734
+ enum ExampleEnum {
735
+ One,
736
+ Two,
737
+ }
738
+ ```
739
+
740
+ - af37ac9d1: nextjs: Enable `react/jsx-curly-brace-presence` rule
741
+ - 7a473ab8d: Prevent `@mui/icons-material` icon imports
742
+
743
+ Icons used in Comet DXP applications should match the Comet CI.
744
+ Use icons from `@comet/admin-icons` instead.
745
+
746
+ - 2e20a8684: nextjs/react: Enable `react/jsx-no-useless-fragment` rule
747
+
748
+ ### Minor Changes
749
+
750
+ - 769bd72f0: Use the Next.js Preview Mode for the site preview
751
+
752
+ The preview is entered by navigating to an API Route in the site, which has to be executed in a secured environment.
753
+ In the API Route the current scope is checked (and possibly stored), then the client is redirected to the preview.
754
+
755
+ ### Patch Changes
756
+
757
+ - @comet/eslint-plugin@7.0.0
758
+
759
+ ## 7.0.0-beta.6
760
+
761
+ ### Major Changes
762
+
763
+ - 2e20a8684: nextjs/react: Enable `react/jsx-no-useless-fragment` rule
764
+
765
+ ### Patch Changes
766
+
767
+ - @comet/eslint-plugin@7.0.0-beta.6
768
+
769
+ ## 7.0.0-beta.5
770
+
771
+ ### Patch Changes
772
+
773
+ - @comet/eslint-plugin@7.0.0-beta.5
774
+
775
+ ## 7.0.0-beta.4
776
+
777
+ ### Patch Changes
778
+
779
+ - @comet/eslint-plugin@7.0.0-beta.4
780
+
781
+ ## 7.0.0-beta.3
782
+
783
+ ### Major Changes
784
+
785
+ - 7a473ab8d: Prevent `@mui/icons-material` icon imports
786
+
787
+ Icons used in Comet DXP applications should match the Comet CI.
788
+ Use icons from `@comet/admin-icons` instead.
789
+
790
+ ### Patch Changes
791
+
792
+ - @comet/eslint-plugin@7.0.0-beta.3
793
+
794
+ ## 7.0.0-beta.2
795
+
796
+ ### Patch Changes
797
+
798
+ - @comet/eslint-plugin@7.0.0-beta.2
799
+
800
+ ## 7.0.0-beta.1
801
+
802
+ ### Patch Changes
803
+
804
+ - @comet/eslint-plugin@7.0.0-beta.1
805
+
806
+ ## 7.0.0-beta.0
807
+
808
+ ### Major Changes
809
+
810
+ - 45585f4cc: Enforce PascalCase for enums
811
+
812
+ Changing the casing of an existing enum can be problematic, e.g., if the enum values are persisted in the database.
813
+ In such cases, the rule can be disabled like so
814
+
815
+ ```diff
816
+ + /* eslint-disable @typescript-eslint/naming-convention */
817
+ export enum ExampleEnum {
818
+ attr1 = "attr1",
819
+ }
820
+ + /* eslint-enable @typescript-eslint/naming-convention */
821
+ ```
822
+
823
+ - 45585f4cc: Add the rule `@typescript-eslint/prefer-enum-initializers` to require enum initializers
824
+
825
+ ```ts
826
+ // ✅
827
+ enum ExampleEnum {
828
+ One = "One",
829
+ Two = "Two",
830
+ }
831
+ ```
832
+
833
+ ```ts
834
+ // ❌
835
+ enum ExampleEnum {
836
+ One,
837
+ Two,
838
+ }
839
+ ```
840
+
841
+ - af37ac9d1: nextjs: Enable `react/jsx-curly-brace-presence` rule
842
+
843
+ ### Minor Changes
844
+
845
+ - 769bd72f0: Uses the Next.JS Preview mode for the site preview
846
+
847
+ The preview is entered by navigating to an API-Route in the site, which has to be executed in a secured environment.
848
+ In the API-Routes the current scope is checked (and possibly stored), then the client is redirected to the Preview.
849
+
850
+ // TODO Move the following introduction to the migration guide before releasing
851
+
852
+ Requires following changes to site:
853
+ - Import `useRouter` from `next/router` (not exported from `@comet/cms-site` anymore)
854
+ - Import `Link` from `next/link` (not exported from `@comet/cms-site` anymore)
855
+ - Remove preview pages (pages in `src/pages/preview/` directory which call `createGetUniversalProps` with preview parameters)
856
+ - Remove `createGetUniversalProps`
857
+ - Just implement `getStaticProps`/`getServerSideProps` (Preview Mode will SSR automatically)
858
+ - Get `previewData` from `context` and use it to configure the GraphQL Client
859
+ - Add `SitePreviewProvider` to `App` (typically in `src/pages/_app.tsx`)
860
+ - Provide a protected environment for the site
861
+ - Make sure that a Authorization-Header is present in this environment
862
+ - Add a Next.JS API-Route for the site preview (eg. `/api/site-preview`)
863
+ - Call `getValidatedSitePreviewParams()` in the API-Route (calls the API which checks the Authorization-Header with the submitted scope)
864
+ - Use the `path`-part of the return value to redirect to the preview
865
+
866
+ Requires following changes to admin
867
+ - The `SitesConfig` must provide a `sitePreviewApiUrl`
868
+
869
+ ### Patch Changes
870
+
871
+ - @comet/eslint-plugin@7.0.0-beta.0
872
+
873
+ ## 6.17.1
874
+
875
+ ### Patch Changes
876
+
877
+ - @comet/eslint-plugin@6.17.1
878
+
879
+ ## 6.17.0
880
+
881
+ ### Patch Changes
882
+
883
+ - @comet/eslint-plugin@6.17.0
884
+
885
+ ## 6.16.0
886
+
887
+ ### Patch Changes
888
+
889
+ - @comet/eslint-plugin@6.16.0
890
+
891
+ ## 6.15.1
892
+
893
+ ### Patch Changes
894
+
895
+ - 6cb850567: Fix Prettier peer dependency
896
+
897
+ The dependency range was incorrectly set to `>= 2`. Change to `^2.0.0` since Prettier v3 isn't supported at the moment.
898
+ - @comet/eslint-plugin@6.15.1
899
+
900
+ ## 6.15.0
901
+
902
+ ### Patch Changes
903
+
904
+ - @comet/eslint-plugin@6.15.0
905
+
906
+ ## 6.14.1
907
+
908
+ ### Patch Changes
909
+
910
+ - @comet/eslint-plugin@6.14.1
911
+
912
+ ## 6.14.0
913
+
914
+ ### Patch Changes
915
+
916
+ - @comet/eslint-plugin@6.14.0
917
+
918
+ ## 6.13.0
919
+
920
+ ### Patch Changes
921
+
922
+ - @comet/eslint-plugin@6.13.0
923
+
924
+ ## 6.12.0
925
+
926
+ ### Patch Changes
927
+
928
+ - @comet/eslint-plugin@6.12.0
929
+
930
+ ## 6.11.0
931
+
932
+ ### Patch Changes
933
+
934
+ - @comet/eslint-plugin@6.11.0
935
+
936
+ ## 6.10.0
937
+
938
+ ### Patch Changes
939
+
940
+ - @comet/eslint-plugin@6.10.0
941
+
942
+ ## 6.9.0
943
+
944
+ ### Patch Changes
945
+
946
+ - @comet/eslint-plugin@6.9.0
947
+
948
+ ## 6.8.0
949
+
950
+ ### Patch Changes
951
+
952
+ - @comet/eslint-plugin@6.8.0
953
+
954
+ ## 6.7.0
955
+
956
+ ### Patch Changes
957
+
958
+ - @comet/eslint-plugin@6.7.0
959
+
960
+ ## 6.6.2
961
+
962
+ ### Patch Changes
963
+
964
+ - @comet/eslint-plugin@6.6.2
965
+
966
+ ## 6.6.1
967
+
968
+ ### Patch Changes
969
+
970
+ - @comet/eslint-plugin@6.6.1
971
+
972
+ ## 6.6.0
973
+
974
+ ### Patch Changes
975
+
976
+ - @comet/eslint-plugin@6.6.0
977
+
978
+ ## 6.5.0
979
+
980
+ ### Patch Changes
981
+
982
+ - @comet/eslint-plugin@6.5.0
983
+
984
+ ## 6.4.0
985
+
986
+ ### Patch Changes
987
+
988
+ - @comet/eslint-plugin@6.4.0
989
+
990
+ ## 6.3.0
991
+
992
+ ### Patch Changes
993
+
994
+ - @comet/eslint-plugin@6.3.0
995
+
996
+ ## 6.2.1
997
+
998
+ ### Patch Changes
999
+
1000
+ - @comet/eslint-plugin@6.2.1
1001
+
1002
+ ## 6.2.0
1003
+
1004
+ ### Patch Changes
1005
+
1006
+ - @comet/eslint-plugin@6.2.0
1007
+
1008
+ ## 6.1.0
1009
+
1010
+ ### Patch Changes
1011
+
1012
+ - @comet/eslint-plugin@6.1.0
1013
+
1014
+ ## 6.0.0
1015
+
1016
+ ### Major Changes
1017
+
1018
+ - 72f98c7a: Enable `import/newline-after-import`
1019
+ - 47eb81c6: Enable no-other-module-relative-import rule by default
1020
+
1021
+ ### Patch Changes
1022
+
1023
+ - @comet/eslint-plugin@6.0.0
1024
+
1025
+ ## 5.6.0
1026
+
1027
+ ### Patch Changes
1028
+
1029
+ - @comet/eslint-plugin@5.6.0
1030
+
1031
+ ## 5.5.0
1032
+
1033
+ ### Patch Changes
1034
+
1035
+ - 80a6d8d3: Move import restriction for MUI's `Alert` to correct ESLint config
1036
+ - @comet/eslint-plugin@5.5.0
1037
+
1038
+ ## 5.4.0
1039
+
1040
+ ### Patch Changes
1041
+
1042
+ - @comet/eslint-plugin@5.4.0
1043
+
1044
+ ## 5.3.0
1045
+
1046
+ ### Patch Changes
1047
+
1048
+ - @comet/eslint-plugin@5.3.0
1049
+
1050
+ ## 5.2.0
1051
+
1052
+ ### Patch Changes
1053
+
1054
+ - @comet/eslint-plugin@5.2.0
1055
+
1056
+ ## 5.1.0
1057
+
1058
+ ### Patch Changes
1059
+
1060
+ - Updated dependencies [ec0582e6]
1061
+ - @comet/eslint-plugin@5.1.0
1062
+
1063
+ ## 5.0.0
1064
+
1065
+ ### Minor Changes
1066
+
1067
+ - b6f8cc0a: Add a new eslint rule that bans private sibling imports
1068
+
1069
+ A sibling file is, for example, a `Foo.gql.ts` file next to a `Foo.ts` file. `Foo.gql.ts` is considered a private sibling of `Foo.ts` and must not be used (imported) by any other file.
1070
+
1071
+ ### Patch Changes
1072
+
1073
+ - @comet/eslint-plugin@5.0.0
1074
+
1075
+ ## 4.7.0
1076
+
1077
+ ## 4.6.0
1078
+
1079
+ ## 4.5.0
1080
+
1081
+ ## 4.4.3
1082
+
1083
+ ## 4.4.2
1084
+
1085
+ ## 4.4.1
1086
+
1087
+ ## 4.4.0
1088
+
1089
+ ## 4.3.0
1090
+
1091
+ ## 4.2.0
1092
+
1093
+ ### Minor Changes
1094
+
1095
+ - 7a7d6e6f: Remove explicit-function-return-type rule for default nestjs eslint config
1096
+ - bc82bc34: Enable `json-files/sort-package-json` rule to sort package.json files automatically
1097
+
1098
+ ## 4.1.0