@leancodepl/eslint-config 8.3.6 → 8.5.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,41 @@
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.5.0](https://github.com/leancodepl/js_corelibrary/compare/v8.4.0...v8.5.0) (2025-07-11)
7
+
8
+ ### Bug Fixes
9
+
10
+ - bring back brackets
11
+ ([27fa689](https://github.com/leancodepl/js_corelibrary/commit/27fa689f3ce69696343693223c858d7bfddfeaea))
12
+ - remove variableLike rule
13
+ ([c05bd8a](https://github.com/leancodepl/js_corelibrary/commit/c05bd8a1a2fe73b2cd3d161db838c39039858f60))
14
+ - simplify rules
15
+ ([79007f9](https://github.com/leancodepl/js_corelibrary/commit/79007f996a8529d6f9e6f2ac17b960b1a711bd72))
16
+
17
+ ### Features
18
+
19
+ - add consistent rule to curly
20
+ ([f9dfe3c](https://github.com/leancodepl/js_corelibrary/commit/f9dfe3c7c8e7909f42882f9d7d4dde4ce8e5d919))
21
+ - add linting rules
22
+ ([a2f4879](https://github.com/leancodepl/js_corelibrary/commit/a2f487916916c9bfa96da7e97da106036a237610))
23
+
24
+ # Change Log
25
+
26
+ All notable changes to this project will be documented in this file. See
27
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
28
+
29
+ # [8.4.0](https://github.com/leancodepl/js_corelibrary/compare/v8.3.6...v8.4.0) (2025-06-20)
30
+
31
+ ### Bug Fixes
32
+
33
+ - replace globs with regexes to align with perfectionist breaking changes
34
+ ([d4562eb](https://github.com/leancodepl/js_corelibrary/commit/d4562eb6e3454dc51decd45d6958b6fe9ecd2889))
35
+
36
+ # Change Log
37
+
38
+ All notable changes to this project will be documented in this file. See
39
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
40
+
6
41
  ## [8.3.6](https://github.com/leancodepl/js_corelibrary/compare/v8.3.5...v8.3.6) (2025-02-14)
7
42
 
8
43
  **Note:** Version bump only for package @leancodepl/eslint-config
@@ -16,8 +51,8 @@ All notable changes to this project will be documented in this file. See
16
51
 
17
52
  ### Features
18
53
 
19
- - add no useless fragment lint
20
- ([a82d29c](https://github.com/leancodepl/js_corelibrary/commit/a82d29c45b3f8a171b3181cf5e47c469509c1795))
54
+ - add no useless fragment lint
55
+ ([a82d29c](https://github.com/leancodepl/js_corelibrary/commit/a82d29c45b3f8a171b3181cf5e47c469509c1795))
21
56
 
22
57
  # Change Log
23
58
 
@@ -145,8 +180,8 @@ All notable changes to this project will be documented in this file. See
145
180
 
146
181
  ### Bug Fixes
147
182
 
148
- - lint imports side effects to be on top
149
- ([5acecee](https://github.com/leancodepl/js_corelibrary/commit/5acecee1a2f67edc043760fdfe04f5e0f7a16e88))
183
+ - lint imports side effects to be on top
184
+ ([5acecee](https://github.com/leancodepl/js_corelibrary/commit/5acecee1a2f67edc043760fdfe04f5e0f7a16e88))
150
185
 
151
186
  # Change Log
152
187
 
@@ -166,12 +201,12 @@ All notable changes to this project will be documented in this file. See
166
201
 
167
202
  ### Features
168
203
 
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))
204
+ - add import sorting
205
+ ([5a20d92](https://github.com/leancodepl/js_corelibrary/commit/5a20d92d932427ec98656bc823a76765d0bdb5e6))
206
+ - add new rules and perfectionist plugin
207
+ ([d069802](https://github.com/leancodepl/js_corelibrary/commit/d0698021c47440c1e82175a4920ec265974dbbd6))
208
+ - remove sort-exports rule
209
+ ([60a6a6d](https://github.com/leancodepl/js_corelibrary/commit/60a6a6dbfcbb30fa08ff743da294823e1219d7c6))
175
210
 
176
211
  # Change Log
177
212
 
@@ -218,8 +253,8 @@ All notable changes to this project will be documented in this file. See
218
253
 
219
254
  ### Bug Fixes
220
255
 
221
- - eslint unused vars rule
222
- ([5497df2](https://github.com/leancodepl/js_corelibrary/commit/5497df295ab784be76073238caa3b8a6825eb655))
256
+ - eslint unused vars rule
257
+ ([5497df2](https://github.com/leancodepl/js_corelibrary/commit/5497df295ab784be76073238caa3b8a6825eb655))
223
258
 
224
259
  # Change Log
225
260
 
@@ -239,8 +274,8 @@ All notable changes to this project will be documented in this file. See
239
274
 
240
275
  ### Bug Fixes
241
276
 
242
- - bring back eslint plugin unused imports
243
- ([f1f0be3](https://github.com/leancodepl/js_corelibrary/commit/f1f0be3977699ed8be9e9a9496fb79f2cde65437))
277
+ - bring back eslint plugin unused imports
278
+ ([f1f0be3](https://github.com/leancodepl/js_corelibrary/commit/f1f0be3977699ed8be9e9a9496fb79f2cde65437))
244
279
 
245
280
  # Change Log
246
281
 
@@ -343,8 +378,8 @@ All notable changes to this project will be documented in this file. See
343
378
 
344
379
  ### Bug Fixes
345
380
 
346
- - use peer dependencies for eslint config
347
- ([ae78f41](https://github.com/projects/leancodepl/repos/js_corelibrary/commits/ae78f41))
381
+ - use peer dependencies for eslint config
382
+ ([ae78f41](https://github.com/projects/leancodepl/repos/js_corelibrary/commits/ae78f41))
348
383
 
349
384
  <a name="6.5.0"></a>
350
385
 
@@ -352,7 +387,7 @@ All notable changes to this project will be documented in this file. See
352
387
 
353
388
  ### Features
354
389
 
355
- - upgrade linters deps ([0d265aa](https://github.com/projects/leancodepl/repos/js_corelibrary/commits/0d265aa))
390
+ - upgrade linters deps ([0d265aa](https://github.com/projects/leancodepl/repos/js_corelibrary/commits/0d265aa))
356
391
 
357
392
  <a name="6.3.0"></a>
358
393
 
@@ -366,8 +401,8 @@ All notable changes to this project will be documented in this file. See
366
401
 
367
402
  ### Features
368
403
 
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))
404
+ - update packages ([e7a3cb8](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/e7a3cb8))
405
+ - update packages ([f67355c](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/f67355c))
371
406
 
372
407
  <a name="6.1.1"></a>
373
408
 
@@ -381,8 +416,8 @@ All notable changes to this project will be documented in this file. See
381
416
 
382
417
  ### Features
383
418
 
384
- - add pluggable eslint rules for imports
385
- ([1dc8351](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/1dc8351))
419
+ - add pluggable eslint rules for imports
420
+ ([1dc8351](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/1dc8351))
386
421
 
387
422
  <a name="6.0.0"></a>
388
423
 
@@ -390,7 +425,7 @@ All notable changes to this project will be documented in this file. See
390
425
 
391
426
  ### Features
392
427
 
393
- - update dependencies ([0fed8db](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/0fed8db))
428
+ - update dependencies ([0fed8db](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/0fed8db))
394
429
 
395
430
  <a name="5.2.0"></a>
396
431
 
@@ -398,11 +433,11 @@ All notable changes to this project will be documented in this file. See
398
433
 
399
434
  ### Features
400
435
 
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))
436
+ - update eslint ([d82764f](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/d82764f))
437
+ - update typescript to 4.1
438
+ ([d37dd16](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/d37dd16))
439
+ - update typescript to 4.1.3
440
+ ([5e125da](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/5e125da))
406
441
 
407
442
  <a name="5.1.0"></a>
408
443
 
@@ -410,7 +445,7 @@ All notable changes to this project will be documented in this file. See
410
445
 
411
446
  ### Features
412
447
 
413
- - extend eslint rules ([018fae4](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/018fae4))
448
+ - extend eslint rules ([018fae4](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/018fae4))
414
449
 
415
450
  <a name="5.0.2"></a>
416
451
 
@@ -418,11 +453,10 @@ All notable changes to this project will be documented in this file. See
418
453
 
419
454
  ### Bug Fixes
420
455
 
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))
456
+ - bump ts parser version ([1080e75](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/1080e75))
457
+ - change eslint typescript version
458
+ ([66eaa63](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/66eaa63))
459
+ - typescript builds ([d17bb0c](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/d17bb0c))
426
460
 
427
461
  <a name="5.0.1"></a>
428
462
 
@@ -430,7 +464,7 @@ All notable changes to this project will be documented in this file. See
430
464
 
431
465
  ### Bug Fixes
432
466
 
433
- - tests ([a48ec0f](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/a48ec0f))
467
+ - tests ([a48ec0f](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/a48ec0f))
434
468
 
435
469
  <a name="5.0.0"></a>
436
470
 
@@ -438,16 +472,16 @@ All notable changes to this project will be documented in this file. See
438
472
 
439
473
  ### Bug Fixes
440
474
 
441
- - tests ([c5e8edf](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/c5e8edf))
475
+ - tests ([c5e8edf](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/c5e8edf))
442
476
 
443
477
  ### Features
444
478
 
445
- - update to typescript 4.0
446
- ([271f089](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/271f089))
479
+ - update to typescript 4.0
480
+ ([271f089](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/271f089))
447
481
 
448
482
  ### BREAKING CHANGES
449
483
 
450
- - update peer dependency of TS to 4.0
484
+ - update peer dependency of TS to 4.0
451
485
 
452
486
  <a name="4.5.0"></a>
453
487
 
@@ -455,8 +489,8 @@ All notable changes to this project will be documented in this file. See
455
489
 
456
490
  ### Features
457
491
 
458
- - **eslint-config:** add opt-in a11y config
459
- ([a8b65bf](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/a8b65bf))
492
+ - **eslint-config:** add opt-in a11y config
493
+ ([a8b65bf](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/a8b65bf))
460
494
 
461
495
  <a name="4.4.1"></a>
462
496
 
@@ -488,10 +522,10 @@ All notable changes to this project will be documented in this file. See
488
522
 
489
523
  ### Features
490
524
 
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))
525
+ - **eslint-config:** iterate linters config
526
+ ([88dac1f](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/88dac1f))
527
+ - **prettier-config:** upgrade prettier to v2
528
+ ([866576d](https://bitbucket.org/projects/leancode-team/repos/core-js-library/commits/866576d))
495
529
 
496
530
  <a name="4.2.0"></a>
497
531
 
@@ -515,41 +549,40 @@ All notable changes to this project will be documented in this file. See
515
549
 
516
550
  ## 4.1.0 (2020-02-06)
517
551
 
518
- - v4.1.0-alpha.6 ([b8f6eb1](https://bitbucket.org/leancode-team/core-js-library/commits/b8f6eb1))
552
+ - v4.1.0-alpha.6 ([b8f6eb1](https://bitbucket.org/leancode-team/core-js-library/commits/b8f6eb1))
519
553
 
520
554
  ## 4.1.0-alpha.5 (2020-02-06)
521
555
 
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))
556
+ - Relax linters versioning ([6ff5707](https://bitbucket.org/leancode-team/core-js-library/commits/6ff5707))
557
+ - v4.1.0-alpha.5 ([981a306](https://bitbucket.org/leancode-team/core-js-library/commits/981a306))
524
558
 
525
559
  ## 4.1.0-alpha.4 (2020-02-06)
526
560
 
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))
561
+ - Fix linters configuration and upgrade ([72ee3c5](https://bitbucket.org/leancode-team/core-js-library/commits/72ee3c5))
562
+ - v4.1.0-alpha.4 ([d778eb6](https://bitbucket.org/leancode-team/core-js-library/commits/d778eb6))
530
563
 
531
564
  ## 4.1.0-alpha.1 (2019-11-06)
532
565
 
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))
566
+ - Extend typescript default configuration
567
+ ([3c3024e](https://bitbucket.org/leancode-team/core-js-library/commits/3c3024e))
568
+ - v4.1.0-alpha.1 ([e51eab2](https://bitbucket.org/leancode-team/core-js-library/commits/e51eab2))
536
569
 
537
570
  ## 4.1.0-alpha.0 (2019-11-06)
538
571
 
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))
572
+ - Update linters dependencies ([aa28dce](https://bitbucket.org/leancode-team/core-js-library/commits/aa28dce))
573
+ - v4.1.0-alpha.0 ([5fd0ce1](https://bitbucket.org/leancode-team/core-js-library/commits/5fd0ce1))
541
574
 
542
575
  ## 4.0.0 (2019-10-23)
543
576
 
544
- - v4.0.0 ([1d5b7a4](https://bitbucket.org/leancode-team/core-js-library/commits/1d5b7a4))
577
+ - v4.0.0 ([1d5b7a4](https://bitbucket.org/leancode-team/core-js-library/commits/1d5b7a4))
545
578
 
546
579
  ## <small>3.4.95 (2019-09-20)</small>
547
580
 
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))
581
+ - Add build system and bump packages versions
582
+ ([097d5c3](https://bitbucket.org/leancode-team/core-js-library/commits/097d5c3))
583
+ - Add linting configuration ([d047ffa](https://bitbucket.org/leancode-team/core-js-library/commits/d047ffa))
584
+ - Make linters configuration more detailed
585
+ ([617dde4](https://bitbucket.org/leancode-team/core-js-library/commits/617dde4))
586
+ - Unignore eslint configuration ([b26380f](https://bitbucket.org/leancode-team/core-js-library/commits/b26380f))
587
+ - Update linters dependencies ([07d26dc](https://bitbucket.org/leancode-team/core-js-library/commits/07d26dc))
588
+ - v3.4.95 ([c84752b](https://bitbucket.org/leancode-team/core-js-library/commits/c84752b))
package/README.md CHANGED
@@ -1,11 +1,52 @@
1
- # eslint-config
1
+ # @leancodepl/eslint-config
2
2
 
3
- This library was generated with [Nx](https://nx.dev).
3
+ ESLint configurations for TypeScript and React projects.
4
4
 
5
- ## Building
5
+ ## Installation
6
6
 
7
- Run `nx build eslint-config` to build the library.
7
+ ```bash
8
+ npm install --save-dev @leancodepl/eslint-config
9
+ # or
10
+ yarn add --dev @leancodepl/eslint-config
11
+ ```
8
12
 
9
- ## Running unit tests
13
+ ## Available Configurations
10
14
 
11
- Run `nx test eslint-config` to execute the unit tests via [Jest](https://jestjs.io).
15
+ - `base` - Core TypeScript rules with sorting and code quality
16
+ - `baseReact` - React-specific rules and JSX formatting
17
+ - `imports` - Import/export organization and unused import detection
18
+ - `a11y` - Accessibility rules for React components
19
+
20
+ ## Usage Examples
21
+
22
+ ### React TypeScript Project
23
+
24
+ ```javascript
25
+ // eslint.config.js
26
+ import { base, baseReact, imports, a11y } from '@leancodepl/eslint-config';
27
+
28
+ export default [
29
+ ...base,
30
+ ...baseReact,
31
+ ...imports,
32
+ ...a11y,
33
+ ];
34
+ ```
35
+
36
+ ### Custom Rules
37
+
38
+ ```javascript
39
+ // eslint.config.js
40
+ import { base, baseReact } from '@leancodepl/eslint-config';
41
+
42
+ export default [
43
+ ...base,
44
+ ...baseReact,
45
+ {
46
+ rules: {
47
+ 'max-params': ['error', { max: 6 }],
48
+ 'no-console': 'off',
49
+ },
50
+ },
51
+ ];
52
+ ```
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@leancodepl/eslint-config",
3
- "version": "8.3.6",
3
+ "version": "8.5.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
  },
@@ -17,5 +17,35 @@
17
17
  "eslint-plugin-react": ">=7.34.1",
18
18
  "prettier": ">=3.0.0",
19
19
  "typescript-eslint": ">=7.0.0"
20
- }
20
+ },
21
+ "publishConfig": {
22
+ "access": "public",
23
+ "registry": "https://registry.npmjs.org/"
24
+ },
25
+ "engines": {
26
+ "node": ">=18.0.0"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/leancodepl/js_corelibrary.git",
31
+ "directory": "packages/linters/eslint-config"
32
+ },
33
+ "homepage": "https://github.com/leancodepl/js_corelibrary",
34
+ "bugs": {
35
+ "url": "https://github.com/leancodepl/js_corelibrary/issues"
36
+ },
37
+ "description": "ESLint configuration for LeanCode projects",
38
+ "keywords": [
39
+ "eslint",
40
+ "config",
41
+ "linting",
42
+ "javascript",
43
+ "typescript",
44
+ "leancode"
45
+ ],
46
+ "author": {
47
+ "name": "LeanCode",
48
+ "url": "https://leancode.co"
49
+ },
50
+ "sideEffects": false
21
51
  }
package/src/lib/base.js CHANGED
@@ -6,6 +6,7 @@ module.exports = [
6
6
  perfectionist,
7
7
  },
8
8
  rules: {
9
+ curly: ["error", "multi-line", "consistent"],
9
10
  "max-params": ["error", { max: 4 }],
10
11
  "no-console": ["warn", { allow: ["warn", "error", "assert"] }],
11
12
  "no-eval": "error",
@@ -14,7 +15,14 @@ module.exports = [
14
15
  "@typescript-eslint/no-empty-function": "off",
15
16
  "@typescript-eslint/no-empty-object-type": "off",
16
17
  "@typescript-eslint/no-explicit-any": "off",
17
-
18
+ "@typescript-eslint/naming-convention": [
19
+ "error",
20
+ {
21
+ selector: "variable",
22
+ format: ["camelCase", "PascalCase"],
23
+ leadingUnderscore: "allow",
24
+ },
25
+ ],
18
26
  "perfectionist/sort-array-includes": [
19
27
  "error",
20
28
  {
@@ -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": [