@leancodepl/eslint-config 8.3.5 → 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 +83 -64
- package/package.json +3 -3
- package/src/lib/imports.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,12 +3,33 @@
|
|
|
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
|
+
|
|
18
|
+
## [8.3.6](https://github.com/leancodepl/js_corelibrary/compare/v8.3.5...v8.3.6) (2025-02-14)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @leancodepl/eslint-config
|
|
21
|
+
|
|
22
|
+
# Change Log
|
|
23
|
+
|
|
24
|
+
All notable changes to this project will be documented in this file. See
|
|
25
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
26
|
+
|
|
6
27
|
## [8.3.5](https://github.com/leancodepl/js_corelibrary/compare/v8.3.4...v8.3.5) (2025-01-30)
|
|
7
28
|
|
|
8
29
|
### Features
|
|
9
30
|
|
|
10
|
-
-
|
|
11
|
-
|
|
31
|
+
- add no useless fragment lint
|
|
32
|
+
([a82d29c](https://github.com/leancodepl/js_corelibrary/commit/a82d29c45b3f8a171b3181cf5e47c469509c1795))
|
|
12
33
|
|
|
13
34
|
# Change Log
|
|
14
35
|
|
|
@@ -136,8 +157,8 @@ All notable changes to this project will be documented in this file. See
|
|
|
136
157
|
|
|
137
158
|
### Bug Fixes
|
|
138
159
|
|
|
139
|
-
-
|
|
140
|
-
|
|
160
|
+
- lint imports side effects to be on top
|
|
161
|
+
([5acecee](https://github.com/leancodepl/js_corelibrary/commit/5acecee1a2f67edc043760fdfe04f5e0f7a16e88))
|
|
141
162
|
|
|
142
163
|
# Change Log
|
|
143
164
|
|
|
@@ -157,12 +178,12 @@ All notable changes to this project will be documented in this file. See
|
|
|
157
178
|
|
|
158
179
|
### Features
|
|
159
180
|
|
|
160
|
-
-
|
|
161
|
-
|
|
162
|
-
-
|
|
163
|
-
|
|
164
|
-
-
|
|
165
|
-
|
|
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))
|
|
166
187
|
|
|
167
188
|
# Change Log
|
|
168
189
|
|
|
@@ -209,8 +230,8 @@ All notable changes to this project will be documented in this file. See
|
|
|
209
230
|
|
|
210
231
|
### Bug Fixes
|
|
211
232
|
|
|
212
|
-
-
|
|
213
|
-
|
|
233
|
+
- eslint unused vars rule
|
|
234
|
+
([5497df2](https://github.com/leancodepl/js_corelibrary/commit/5497df295ab784be76073238caa3b8a6825eb655))
|
|
214
235
|
|
|
215
236
|
# Change Log
|
|
216
237
|
|
|
@@ -230,8 +251,8 @@ All notable changes to this project will be documented in this file. See
|
|
|
230
251
|
|
|
231
252
|
### Bug Fixes
|
|
232
253
|
|
|
233
|
-
-
|
|
234
|
-
|
|
254
|
+
- bring back eslint plugin unused imports
|
|
255
|
+
([f1f0be3](https://github.com/leancodepl/js_corelibrary/commit/f1f0be3977699ed8be9e9a9496fb79f2cde65437))
|
|
235
256
|
|
|
236
257
|
# Change Log
|
|
237
258
|
|
|
@@ -334,8 +355,8 @@ All notable changes to this project will be documented in this file. See
|
|
|
334
355
|
|
|
335
356
|
### Bug Fixes
|
|
336
357
|
|
|
337
|
-
-
|
|
338
|
-
|
|
358
|
+
- use peer dependencies for eslint config
|
|
359
|
+
([ae78f41](https://github.com/projects/leancodepl/repos/js_corelibrary/commits/ae78f41))
|
|
339
360
|
|
|
340
361
|
<a name="6.5.0"></a>
|
|
341
362
|
|
|
@@ -343,7 +364,7 @@ All notable changes to this project will be documented in this file. See
|
|
|
343
364
|
|
|
344
365
|
### Features
|
|
345
366
|
|
|
346
|
-
-
|
|
367
|
+
- upgrade linters deps ([0d265aa](https://github.com/projects/leancodepl/repos/js_corelibrary/commits/0d265aa))
|
|
347
368
|
|
|
348
369
|
<a name="6.3.0"></a>
|
|
349
370
|
|
|
@@ -357,8 +378,8 @@ All notable changes to this project will be documented in this file. See
|
|
|
357
378
|
|
|
358
379
|
### Features
|
|
359
380
|
|
|
360
|
-
-
|
|
361
|
-
-
|
|
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))
|
|
362
383
|
|
|
363
384
|
<a name="6.1.1"></a>
|
|
364
385
|
|
|
@@ -372,8 +393,8 @@ All notable changes to this project will be documented in this file. See
|
|
|
372
393
|
|
|
373
394
|
### Features
|
|
374
395
|
|
|
375
|
-
-
|
|
376
|
-
|
|
396
|
+
- add pluggable eslint rules for imports
|
|
397
|
+
([1dc8351](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/1dc8351))
|
|
377
398
|
|
|
378
399
|
<a name="6.0.0"></a>
|
|
379
400
|
|
|
@@ -381,7 +402,7 @@ All notable changes to this project will be documented in this file. See
|
|
|
381
402
|
|
|
382
403
|
### Features
|
|
383
404
|
|
|
384
|
-
-
|
|
405
|
+
- update dependencies ([0fed8db](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/0fed8db))
|
|
385
406
|
|
|
386
407
|
<a name="5.2.0"></a>
|
|
387
408
|
|
|
@@ -389,11 +410,11 @@ All notable changes to this project will be documented in this file. See
|
|
|
389
410
|
|
|
390
411
|
### Features
|
|
391
412
|
|
|
392
|
-
-
|
|
393
|
-
-
|
|
394
|
-
|
|
395
|
-
-
|
|
396
|
-
|
|
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))
|
|
397
418
|
|
|
398
419
|
<a name="5.1.0"></a>
|
|
399
420
|
|
|
@@ -401,7 +422,7 @@ All notable changes to this project will be documented in this file. See
|
|
|
401
422
|
|
|
402
423
|
### Features
|
|
403
424
|
|
|
404
|
-
-
|
|
425
|
+
- extend eslint rules ([018fae4](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/018fae4))
|
|
405
426
|
|
|
406
427
|
<a name="5.0.2"></a>
|
|
407
428
|
|
|
@@ -409,11 +430,10 @@ All notable changes to this project will be documented in this file. See
|
|
|
409
430
|
|
|
410
431
|
### Bug Fixes
|
|
411
432
|
|
|
412
|
-
-
|
|
413
|
-
|
|
414
|
-
-
|
|
415
|
-
|
|
416
|
-
- 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))
|
|
417
437
|
|
|
418
438
|
<a name="5.0.1"></a>
|
|
419
439
|
|
|
@@ -421,7 +441,7 @@ All notable changes to this project will be documented in this file. See
|
|
|
421
441
|
|
|
422
442
|
### Bug Fixes
|
|
423
443
|
|
|
424
|
-
-
|
|
444
|
+
- tests ([a48ec0f](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/a48ec0f))
|
|
425
445
|
|
|
426
446
|
<a name="5.0.0"></a>
|
|
427
447
|
|
|
@@ -429,16 +449,16 @@ All notable changes to this project will be documented in this file. See
|
|
|
429
449
|
|
|
430
450
|
### Bug Fixes
|
|
431
451
|
|
|
432
|
-
-
|
|
452
|
+
- tests ([c5e8edf](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/c5e8edf))
|
|
433
453
|
|
|
434
454
|
### Features
|
|
435
455
|
|
|
436
|
-
-
|
|
437
|
-
|
|
456
|
+
- update to typescript 4.0
|
|
457
|
+
([271f089](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/271f089))
|
|
438
458
|
|
|
439
459
|
### BREAKING CHANGES
|
|
440
460
|
|
|
441
|
-
-
|
|
461
|
+
- update peer dependency of TS to 4.0
|
|
442
462
|
|
|
443
463
|
<a name="4.5.0"></a>
|
|
444
464
|
|
|
@@ -446,8 +466,8 @@ All notable changes to this project will be documented in this file. See
|
|
|
446
466
|
|
|
447
467
|
### Features
|
|
448
468
|
|
|
449
|
-
-
|
|
450
|
-
|
|
469
|
+
- **eslint-config:** add opt-in a11y config
|
|
470
|
+
([a8b65bf](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/a8b65bf))
|
|
451
471
|
|
|
452
472
|
<a name="4.4.1"></a>
|
|
453
473
|
|
|
@@ -479,10 +499,10 @@ All notable changes to this project will be documented in this file. See
|
|
|
479
499
|
|
|
480
500
|
### Features
|
|
481
501
|
|
|
482
|
-
-
|
|
483
|
-
|
|
484
|
-
-
|
|
485
|
-
|
|
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))
|
|
486
506
|
|
|
487
507
|
<a name="4.2.0"></a>
|
|
488
508
|
|
|
@@ -506,41 +526,40 @@ All notable changes to this project will be documented in this file. See
|
|
|
506
526
|
|
|
507
527
|
## 4.1.0 (2020-02-06)
|
|
508
528
|
|
|
509
|
-
-
|
|
529
|
+
- v4.1.0-alpha.6 ([b8f6eb1](https://bitbucket.org/leancode-team/core-js-library/commits/b8f6eb1))
|
|
510
530
|
|
|
511
531
|
## 4.1.0-alpha.5 (2020-02-06)
|
|
512
532
|
|
|
513
|
-
-
|
|
514
|
-
-
|
|
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))
|
|
515
535
|
|
|
516
536
|
## 4.1.0-alpha.4 (2020-02-06)
|
|
517
537
|
|
|
518
|
-
-
|
|
519
|
-
|
|
520
|
-
- 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))
|
|
521
540
|
|
|
522
541
|
## 4.1.0-alpha.1 (2019-11-06)
|
|
523
542
|
|
|
524
|
-
-
|
|
525
|
-
|
|
526
|
-
-
|
|
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))
|
|
527
546
|
|
|
528
547
|
## 4.1.0-alpha.0 (2019-11-06)
|
|
529
548
|
|
|
530
|
-
-
|
|
531
|
-
-
|
|
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))
|
|
532
551
|
|
|
533
552
|
## 4.0.0 (2019-10-23)
|
|
534
553
|
|
|
535
|
-
-
|
|
554
|
+
- v4.0.0 ([1d5b7a4](https://bitbucket.org/leancode-team/core-js-library/commits/1d5b7a4))
|
|
536
555
|
|
|
537
556
|
## <small>3.4.95 (2019-09-20)</small>
|
|
538
557
|
|
|
539
|
-
-
|
|
540
|
-
|
|
541
|
-
-
|
|
542
|
-
-
|
|
543
|
-
|
|
544
|
-
-
|
|
545
|
-
-
|
|
546
|
-
-
|
|
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
|
+
"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": ">=
|
|
10
|
-
"eslint-plugin-react-hooks": "5.
|
|
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
|
},
|
package/src/lib/imports.js
CHANGED
|
@@ -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: ["
|
|
53
|
+
internalPattern: ["^@leancodepl/.+"],
|
|
54
54
|
},
|
|
55
55
|
],
|
|
56
56
|
"perfectionist/sort-named-imports": [
|