@leancodepl/eslint-config 8.3.6 → 8.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [8.4.0](https://github.com/leancodepl/js_corelibrary/compare/v8.3.6...v8.4.0) (2025-06-20)
7
+
8
+ ### Bug Fixes
9
+
10
+ - replace globs with regexes to align with perfectionist breaking changes
11
+ ([d4562eb](https://github.com/leancodepl/js_corelibrary/commit/d4562eb6e3454dc51decd45d6958b6fe9ecd2889))
12
+
13
+ # Change Log
14
+
15
+ All notable changes to this project will be documented in this file. See
16
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
17
+
6
18
  ## [8.3.6](https://github.com/leancodepl/js_corelibrary/compare/v8.3.5...v8.3.6) (2025-02-14)
7
19
 
8
20
  **Note:** Version bump only for package @leancodepl/eslint-config
@@ -16,8 +28,8 @@ All notable changes to this project will be documented in this file. See
16
28
 
17
29
  ### Features
18
30
 
19
- - add no useless fragment lint
20
- ([a82d29c](https://github.com/leancodepl/js_corelibrary/commit/a82d29c45b3f8a171b3181cf5e47c469509c1795))
31
+ - add no useless fragment lint
32
+ ([a82d29c](https://github.com/leancodepl/js_corelibrary/commit/a82d29c45b3f8a171b3181cf5e47c469509c1795))
21
33
 
22
34
  # Change Log
23
35
 
@@ -145,8 +157,8 @@ All notable changes to this project will be documented in this file. See
145
157
 
146
158
  ### Bug Fixes
147
159
 
148
- - lint imports side effects to be on top
149
- ([5acecee](https://github.com/leancodepl/js_corelibrary/commit/5acecee1a2f67edc043760fdfe04f5e0f7a16e88))
160
+ - lint imports side effects to be on top
161
+ ([5acecee](https://github.com/leancodepl/js_corelibrary/commit/5acecee1a2f67edc043760fdfe04f5e0f7a16e88))
150
162
 
151
163
  # Change Log
152
164
 
@@ -166,12 +178,12 @@ All notable changes to this project will be documented in this file. See
166
178
 
167
179
  ### Features
168
180
 
169
- - add import sorting
170
- ([5a20d92](https://github.com/leancodepl/js_corelibrary/commit/5a20d92d932427ec98656bc823a76765d0bdb5e6))
171
- - add new rules and perfectionist plugin
172
- ([d069802](https://github.com/leancodepl/js_corelibrary/commit/d0698021c47440c1e82175a4920ec265974dbbd6))
173
- - remove sort-exports rule
174
- ([60a6a6d](https://github.com/leancodepl/js_corelibrary/commit/60a6a6dbfcbb30fa08ff743da294823e1219d7c6))
181
+ - add import sorting
182
+ ([5a20d92](https://github.com/leancodepl/js_corelibrary/commit/5a20d92d932427ec98656bc823a76765d0bdb5e6))
183
+ - add new rules and perfectionist plugin
184
+ ([d069802](https://github.com/leancodepl/js_corelibrary/commit/d0698021c47440c1e82175a4920ec265974dbbd6))
185
+ - remove sort-exports rule
186
+ ([60a6a6d](https://github.com/leancodepl/js_corelibrary/commit/60a6a6dbfcbb30fa08ff743da294823e1219d7c6))
175
187
 
176
188
  # Change Log
177
189
 
@@ -218,8 +230,8 @@ All notable changes to this project will be documented in this file. See
218
230
 
219
231
  ### Bug Fixes
220
232
 
221
- - eslint unused vars rule
222
- ([5497df2](https://github.com/leancodepl/js_corelibrary/commit/5497df295ab784be76073238caa3b8a6825eb655))
233
+ - eslint unused vars rule
234
+ ([5497df2](https://github.com/leancodepl/js_corelibrary/commit/5497df295ab784be76073238caa3b8a6825eb655))
223
235
 
224
236
  # Change Log
225
237
 
@@ -239,8 +251,8 @@ All notable changes to this project will be documented in this file. See
239
251
 
240
252
  ### Bug Fixes
241
253
 
242
- - bring back eslint plugin unused imports
243
- ([f1f0be3](https://github.com/leancodepl/js_corelibrary/commit/f1f0be3977699ed8be9e9a9496fb79f2cde65437))
254
+ - bring back eslint plugin unused imports
255
+ ([f1f0be3](https://github.com/leancodepl/js_corelibrary/commit/f1f0be3977699ed8be9e9a9496fb79f2cde65437))
244
256
 
245
257
  # Change Log
246
258
 
@@ -343,8 +355,8 @@ All notable changes to this project will be documented in this file. See
343
355
 
344
356
  ### Bug Fixes
345
357
 
346
- - use peer dependencies for eslint config
347
- ([ae78f41](https://github.com/projects/leancodepl/repos/js_corelibrary/commits/ae78f41))
358
+ - use peer dependencies for eslint config
359
+ ([ae78f41](https://github.com/projects/leancodepl/repos/js_corelibrary/commits/ae78f41))
348
360
 
349
361
  <a name="6.5.0"></a>
350
362
 
@@ -352,7 +364,7 @@ All notable changes to this project will be documented in this file. See
352
364
 
353
365
  ### Features
354
366
 
355
- - upgrade linters deps ([0d265aa](https://github.com/projects/leancodepl/repos/js_corelibrary/commits/0d265aa))
367
+ - upgrade linters deps ([0d265aa](https://github.com/projects/leancodepl/repos/js_corelibrary/commits/0d265aa))
356
368
 
357
369
  <a name="6.3.0"></a>
358
370
 
@@ -366,8 +378,8 @@ All notable changes to this project will be documented in this file. See
366
378
 
367
379
  ### Features
368
380
 
369
- - update packages ([e7a3cb8](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/e7a3cb8))
370
- - update packages ([f67355c](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/f67355c))
381
+ - update packages ([e7a3cb8](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/e7a3cb8))
382
+ - update packages ([f67355c](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/f67355c))
371
383
 
372
384
  <a name="6.1.1"></a>
373
385
 
@@ -381,8 +393,8 @@ All notable changes to this project will be documented in this file. See
381
393
 
382
394
  ### Features
383
395
 
384
- - add pluggable eslint rules for imports
385
- ([1dc8351](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/1dc8351))
396
+ - add pluggable eslint rules for imports
397
+ ([1dc8351](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/1dc8351))
386
398
 
387
399
  <a name="6.0.0"></a>
388
400
 
@@ -390,7 +402,7 @@ All notable changes to this project will be documented in this file. See
390
402
 
391
403
  ### Features
392
404
 
393
- - update dependencies ([0fed8db](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/0fed8db))
405
+ - update dependencies ([0fed8db](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/0fed8db))
394
406
 
395
407
  <a name="5.2.0"></a>
396
408
 
@@ -398,11 +410,11 @@ All notable changes to this project will be documented in this file. See
398
410
 
399
411
  ### Features
400
412
 
401
- - update eslint ([d82764f](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/d82764f))
402
- - update typescript to 4.1
403
- ([d37dd16](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/d37dd16))
404
- - update typescript to 4.1.3
405
- ([5e125da](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/5e125da))
413
+ - update eslint ([d82764f](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/d82764f))
414
+ - update typescript to 4.1
415
+ ([d37dd16](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/d37dd16))
416
+ - update typescript to 4.1.3
417
+ ([5e125da](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/5e125da))
406
418
 
407
419
  <a name="5.1.0"></a>
408
420
 
@@ -410,7 +422,7 @@ All notable changes to this project will be documented in this file. See
410
422
 
411
423
  ### Features
412
424
 
413
- - extend eslint rules ([018fae4](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/018fae4))
425
+ - extend eslint rules ([018fae4](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/018fae4))
414
426
 
415
427
  <a name="5.0.2"></a>
416
428
 
@@ -418,11 +430,10 @@ All notable changes to this project will be documented in this file. See
418
430
 
419
431
  ### Bug Fixes
420
432
 
421
- - bump ts parser version
422
- ([1080e75](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/1080e75))
423
- - change eslint typescript version
424
- ([66eaa63](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/66eaa63))
425
- - typescript builds ([d17bb0c](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/d17bb0c))
433
+ - bump ts parser version ([1080e75](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/1080e75))
434
+ - change eslint typescript version
435
+ ([66eaa63](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/66eaa63))
436
+ - typescript builds ([d17bb0c](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/d17bb0c))
426
437
 
427
438
  <a name="5.0.1"></a>
428
439
 
@@ -430,7 +441,7 @@ All notable changes to this project will be documented in this file. See
430
441
 
431
442
  ### Bug Fixes
432
443
 
433
- - tests ([a48ec0f](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/a48ec0f))
444
+ - tests ([a48ec0f](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/a48ec0f))
434
445
 
435
446
  <a name="5.0.0"></a>
436
447
 
@@ -438,16 +449,16 @@ All notable changes to this project will be documented in this file. See
438
449
 
439
450
  ### Bug Fixes
440
451
 
441
- - tests ([c5e8edf](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/c5e8edf))
452
+ - tests ([c5e8edf](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/c5e8edf))
442
453
 
443
454
  ### Features
444
455
 
445
- - update to typescript 4.0
446
- ([271f089](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/271f089))
456
+ - update to typescript 4.0
457
+ ([271f089](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/271f089))
447
458
 
448
459
  ### BREAKING CHANGES
449
460
 
450
- - update peer dependency of TS to 4.0
461
+ - update peer dependency of TS to 4.0
451
462
 
452
463
  <a name="4.5.0"></a>
453
464
 
@@ -455,8 +466,8 @@ All notable changes to this project will be documented in this file. See
455
466
 
456
467
  ### Features
457
468
 
458
- - **eslint-config:** add opt-in a11y config
459
- ([a8b65bf](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/a8b65bf))
469
+ - **eslint-config:** add opt-in a11y config
470
+ ([a8b65bf](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/a8b65bf))
460
471
 
461
472
  <a name="4.4.1"></a>
462
473
 
@@ -488,10 +499,10 @@ All notable changes to this project will be documented in this file. See
488
499
 
489
500
  ### Features
490
501
 
491
- - **eslint-config:** iterate linters config
492
- ([88dac1f](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/88dac1f))
493
- - **prettier-config:** upgrade prettier to v2
494
- ([866576d](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/866576d))
502
+ - **eslint-config:** iterate linters config
503
+ ([88dac1f](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/88dac1f))
504
+ - **prettier-config:** upgrade prettier to v2
505
+ ([866576d](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/866576d))
495
506
 
496
507
  <a name="4.2.0"></a>
497
508
 
@@ -515,41 +526,40 @@ All notable changes to this project will be documented in this file. See
515
526
 
516
527
  ## 4.1.0 (2020-02-06)
517
528
 
518
- - v4.1.0-alpha.6 ([b8f6eb1](https://bitbucket.org/leancode-team/core-js-library/commits/b8f6eb1))
529
+ - v4.1.0-alpha.6 ([b8f6eb1](https://bitbucket.org/leancode-team/core-js-library/commits/b8f6eb1))
519
530
 
520
531
  ## 4.1.0-alpha.5 (2020-02-06)
521
532
 
522
- - Relax linters versioning ([6ff5707](https://bitbucket.org/leancode-team/core-js-library/commits/6ff5707))
523
- - v4.1.0-alpha.5 ([981a306](https://bitbucket.org/leancode-team/core-js-library/commits/981a306))
533
+ - Relax linters versioning ([6ff5707](https://bitbucket.org/leancode-team/core-js-library/commits/6ff5707))
534
+ - v4.1.0-alpha.5 ([981a306](https://bitbucket.org/leancode-team/core-js-library/commits/981a306))
524
535
 
525
536
  ## 4.1.0-alpha.4 (2020-02-06)
526
537
 
527
- - Fix linters configuration and upgrade
528
- ([72ee3c5](https://bitbucket.org/leancode-team/core-js-library/commits/72ee3c5))
529
- - v4.1.0-alpha.4 ([d778eb6](https://bitbucket.org/leancode-team/core-js-library/commits/d778eb6))
538
+ - Fix linters configuration and upgrade ([72ee3c5](https://bitbucket.org/leancode-team/core-js-library/commits/72ee3c5))
539
+ - v4.1.0-alpha.4 ([d778eb6](https://bitbucket.org/leancode-team/core-js-library/commits/d778eb6))
530
540
 
531
541
  ## 4.1.0-alpha.1 (2019-11-06)
532
542
 
533
- - Extend typescript default configuration
534
- ([3c3024e](https://bitbucket.org/leancode-team/core-js-library/commits/3c3024e))
535
- - v4.1.0-alpha.1 ([e51eab2](https://bitbucket.org/leancode-team/core-js-library/commits/e51eab2))
543
+ - Extend typescript default configuration
544
+ ([3c3024e](https://bitbucket.org/leancode-team/core-js-library/commits/3c3024e))
545
+ - v4.1.0-alpha.1 ([e51eab2](https://bitbucket.org/leancode-team/core-js-library/commits/e51eab2))
536
546
 
537
547
  ## 4.1.0-alpha.0 (2019-11-06)
538
548
 
539
- - Update linters dependencies ([aa28dce](https://bitbucket.org/leancode-team/core-js-library/commits/aa28dce))
540
- - v4.1.0-alpha.0 ([5fd0ce1](https://bitbucket.org/leancode-team/core-js-library/commits/5fd0ce1))
549
+ - Update linters dependencies ([aa28dce](https://bitbucket.org/leancode-team/core-js-library/commits/aa28dce))
550
+ - v4.1.0-alpha.0 ([5fd0ce1](https://bitbucket.org/leancode-team/core-js-library/commits/5fd0ce1))
541
551
 
542
552
  ## 4.0.0 (2019-10-23)
543
553
 
544
- - v4.0.0 ([1d5b7a4](https://bitbucket.org/leancode-team/core-js-library/commits/1d5b7a4))
554
+ - v4.0.0 ([1d5b7a4](https://bitbucket.org/leancode-team/core-js-library/commits/1d5b7a4))
545
555
 
546
556
  ## <small>3.4.95 (2019-09-20)</small>
547
557
 
548
- - Add build system and bump packages versions
549
- ([097d5c3](https://bitbucket.org/leancode-team/core-js-library/commits/097d5c3))
550
- - Add linting configuration ([d047ffa](https://bitbucket.org/leancode-team/core-js-library/commits/d047ffa))
551
- - Make linters configuration more detailed
552
- ([617dde4](https://bitbucket.org/leancode-team/core-js-library/commits/617dde4))
553
- - Unignore eslint configuration ([b26380f](https://bitbucket.org/leancode-team/core-js-library/commits/b26380f))
554
- - Update linters dependencies ([07d26dc](https://bitbucket.org/leancode-team/core-js-library/commits/07d26dc))
555
- - v3.4.95 ([c84752b](https://bitbucket.org/leancode-team/core-js-library/commits/c84752b))
558
+ - Add build system and bump packages versions
559
+ ([097d5c3](https://bitbucket.org/leancode-team/core-js-library/commits/097d5c3))
560
+ - Add linting configuration ([d047ffa](https://bitbucket.org/leancode-team/core-js-library/commits/d047ffa))
561
+ - Make linters configuration more detailed
562
+ ([617dde4](https://bitbucket.org/leancode-team/core-js-library/commits/617dde4))
563
+ - Unignore eslint configuration ([b26380f](https://bitbucket.org/leancode-team/core-js-library/commits/b26380f))
564
+ - Update linters dependencies ([07d26dc](https://bitbucket.org/leancode-team/core-js-library/commits/07d26dc))
565
+ - v3.4.95 ([c84752b](https://bitbucket.org/leancode-team/core-js-library/commits/c84752b))
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@leancodepl/eslint-config",
3
- "version": "8.3.6",
3
+ "version": "8.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "src/index.js",
6
6
  "dependencies": {
7
7
  "eslint-plugin-import": ">=2.31.0",
8
8
  "eslint-plugin-jsx-a11y": ">=6.10.0",
9
- "eslint-plugin-perfectionist": ">=3.0.0",
10
- "eslint-plugin-react-hooks": "5.1.0-rc-3edc000d-20240926",
9
+ "eslint-plugin-perfectionist": ">=4.0.0",
10
+ "eslint-plugin-react-hooks": ">=5.2.0",
11
11
  "eslint-plugin-unused-imports": ">=4.1.0",
12
12
  "globals": ">=15.0.0"
13
13
  },
@@ -42,15 +42,15 @@ module.exports = [
42
42
  ],
43
43
  customGroups: {
44
44
  value: {
45
- react: ["react", "react-*"],
46
- "client-server-only": ["client-only", "server-only"],
45
+ react: ["^react$", "^react-.+"],
46
+ "client-server-only": ["^client-only$", "^server-only$"],
47
47
  },
48
48
  type: {
49
- react: "react",
49
+ react: "^react$",
50
50
  },
51
51
  },
52
52
  newlinesBetween: "never",
53
- internalPattern: ["@leancodepl/**"],
53
+ internalPattern: ["^@leancodepl/.+"],
54
54
  },
55
55
  ],
56
56
  "perfectionist/sort-named-imports": [