@lichthagel/eslint-config 1.0.9 → 1.0.11

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/dist/index.cjs CHANGED
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  browser: () => browser_default,
34
34
  default: () => factory_default,
35
35
  javascript: () => javascript_default,
@@ -42,7 +42,7 @@ __export(src_exports, {
42
42
  typescript: () => typescript_default,
43
43
  unicorn: () => unicorn_default
44
44
  });
45
- module.exports = __toCommonJS(src_exports);
45
+ module.exports = __toCommonJS(index_exports);
46
46
 
47
47
  // src/configs/browser.ts
48
48
  var import_globals = __toESM(require("globals"), 1);
package/dist/index.d.cts CHANGED
@@ -1275,7 +1275,7 @@ interface RuleOptions {
1275
1275
  */
1276
1276
  'default-case'?: Linter.RuleEntry<DefaultCase>
1277
1277
  /**
1278
- * Enforce `default` clauses in switch statements to be last
1278
+ * Enforce `default` clauses in `switch` statements to be last
1279
1279
  * @see https://eslint.org/docs/latest/rules/default-case-last
1280
1280
  */
1281
1281
  'default-case-last'?: Linter.RuleEntry<[]>
@@ -2962,7 +2962,7 @@ interface RuleOptions {
2962
2962
  */
2963
2963
  'solid/style-prop'?: Linter.RuleEntry<SolidStyleProp>
2964
2964
  /**
2965
- * Enforce sorted import declarations within modules
2965
+ * Enforce sorted `import` declarations within modules
2966
2966
  * @see https://eslint.org/docs/latest/rules/sort-imports
2967
2967
  */
2968
2968
  'sort-imports'?: Linter.RuleEntry<SortImports>
@@ -5344,7 +5344,7 @@ type TypescriptEslintConsistentTypeAssertions = []|[({
5344
5344
  assertionStyle: "never"
5345
5345
  } | {
5346
5346
 
5347
- assertionStyle: ("as" | "angle-bracket")
5347
+ assertionStyle?: ("as" | "angle-bracket")
5348
5348
 
5349
5349
  objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
5350
5350
  })]
@@ -7962,7 +7962,11 @@ type PaddingLineBetweenStatements = {
7962
7962
  // ----- perfectionist/sort-array-includes -----
7963
7963
  type PerfectionistSortArrayIncludes = {
7964
7964
 
7965
- partitionByComment?: (string[] | boolean | string)
7965
+ partitionByComment?: (string[] | boolean | string | {
7966
+ block?: (string[] | boolean | string)
7967
+ line?: (string[] | boolean | string)
7968
+ [k: string]: unknown | undefined
7969
+ })
7966
7970
 
7967
7971
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
7968
7972
 
@@ -7973,6 +7977,8 @@ type PerfectionistSortArrayIncludes = {
7973
7977
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
7974
7978
 
7975
7979
  order?: ("desc" | "asc")
7980
+
7981
+ newlinesInside?: ("always" | "never")
7976
7982
  anyOf?: {
7977
7983
 
7978
7984
  selector?: ("literal" | "spread")
@@ -7987,6 +7993,8 @@ type PerfectionistSortArrayIncludes = {
7987
7993
 
7988
7994
  order?: ("desc" | "asc")
7989
7995
 
7996
+ newlinesInside?: ("always" | "never")
7997
+
7990
7998
  selector?: ("literal" | "spread")
7991
7999
 
7992
8000
  elementNamePattern?: string
@@ -8007,7 +8015,11 @@ type PerfectionistSortArrayIncludes = {
8007
8015
 
8008
8016
  locales?: (string | string[])
8009
8017
 
8010
- groups?: (string | string[])[]
8018
+ groups?: (string | string[] | {
8019
+
8020
+ newlinesBetween?: ("ignore" | "always" | "never")
8021
+ [k: string]: unknown | undefined
8022
+ })[]
8011
8023
 
8012
8024
  order?: ("asc" | "desc")
8013
8025
  }[]
@@ -8016,7 +8028,11 @@ type PerfectionistSortClasses = []|[{
8016
8028
 
8017
8029
  ignoreCallbackDependenciesPatterns?: string[]
8018
8030
 
8019
- partitionByComment?: (string[] | boolean | string)
8031
+ partitionByComment?: (string[] | boolean | string | {
8032
+ block?: (string[] | boolean | string)
8033
+ line?: (string[] | boolean | string)
8034
+ [k: string]: unknown | undefined
8035
+ })
8020
8036
 
8021
8037
  customGroups?: ({
8022
8038
 
@@ -8025,6 +8041,8 @@ type PerfectionistSortClasses = []|[{
8025
8041
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8026
8042
 
8027
8043
  order?: ("desc" | "asc")
8044
+
8045
+ newlinesInside?: ("always" | "never")
8028
8046
  anyOf?: {
8029
8047
 
8030
8048
  elementValuePattern?: string
@@ -8045,6 +8063,8 @@ type PerfectionistSortClasses = []|[{
8045
8063
 
8046
8064
  order?: ("desc" | "asc")
8047
8065
 
8066
+ newlinesInside?: ("always" | "never")
8067
+
8048
8068
  elementValuePattern?: string
8049
8069
 
8050
8070
  decoratorNamePattern?: string
@@ -8070,14 +8090,22 @@ type PerfectionistSortClasses = []|[{
8070
8090
 
8071
8091
  locales?: (string | string[])
8072
8092
 
8073
- groups?: (string | string[])[]
8093
+ groups?: (string | string[] | {
8094
+
8095
+ newlinesBetween?: ("ignore" | "always" | "never")
8096
+ [k: string]: unknown | undefined
8097
+ })[]
8074
8098
 
8075
8099
  order?: ("asc" | "desc")
8076
8100
  }]
8077
8101
  // ----- perfectionist/sort-decorators -----
8078
8102
  type PerfectionistSortDecorators = []|[{
8079
8103
 
8080
- partitionByComment?: (string[] | boolean | string)
8104
+ partitionByComment?: (string[] | boolean | string | {
8105
+ block?: (string[] | boolean | string)
8106
+ line?: (string[] | boolean | string)
8107
+ [k: string]: unknown | undefined
8108
+ })
8081
8109
 
8082
8110
  sortOnParameters?: boolean
8083
8111
 
@@ -8103,14 +8131,22 @@ type PerfectionistSortDecorators = []|[{
8103
8131
 
8104
8132
  locales?: (string | string[])
8105
8133
 
8106
- groups?: (string | string[])[]
8134
+ groups?: (string | string[] | {
8135
+
8136
+ newlinesBetween?: ("ignore" | "always" | "never")
8137
+ [k: string]: unknown | undefined
8138
+ })[]
8107
8139
 
8108
8140
  order?: ("asc" | "desc")
8109
8141
  }]
8110
8142
  // ----- perfectionist/sort-enums -----
8111
8143
  type PerfectionistSortEnums = []|[{
8112
8144
 
8113
- partitionByComment?: (string[] | boolean | string)
8145
+ partitionByComment?: (string[] | boolean | string | {
8146
+ block?: (string[] | boolean | string)
8147
+ line?: (string[] | boolean | string)
8148
+ [k: string]: unknown | undefined
8149
+ })
8114
8150
 
8115
8151
  forceNumericSort?: boolean
8116
8152
 
@@ -8133,7 +8169,11 @@ type PerfectionistSortEnums = []|[{
8133
8169
  // ----- perfectionist/sort-exports -----
8134
8170
  type PerfectionistSortExports = []|[{
8135
8171
 
8136
- partitionByComment?: (string[] | boolean | string)
8172
+ partitionByComment?: (string[] | boolean | string | {
8173
+ block?: (string[] | boolean | string)
8174
+ line?: (string[] | boolean | string)
8175
+ [k: string]: unknown | undefined
8176
+ })
8137
8177
 
8138
8178
  groupKind?: ("mixed" | "values-first" | "types-first")
8139
8179
 
@@ -8168,7 +8208,11 @@ type PerfectionistSortHeritageClauses = []|[{
8168
8208
 
8169
8209
  locales?: (string | string[])
8170
8210
 
8171
- groups?: (string | string[])[]
8211
+ groups?: (string | string[] | {
8212
+
8213
+ newlinesBetween?: ("ignore" | "always" | "never")
8214
+ [k: string]: unknown | undefined
8215
+ })[]
8172
8216
 
8173
8217
  order?: ("asc" | "desc")
8174
8218
  }]
@@ -8187,7 +8231,11 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
8187
8231
  }
8188
8232
  }
8189
8233
 
8190
- partitionByComment?: (string[] | boolean | string)
8234
+ partitionByComment?: (string[] | boolean | string | {
8235
+ block?: (string[] | boolean | string)
8236
+ line?: (string[] | boolean | string)
8237
+ [k: string]: unknown | undefined
8238
+ })
8191
8239
 
8192
8240
  internalPattern?: string[]
8193
8241
 
@@ -8213,7 +8261,11 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
8213
8261
 
8214
8262
  locales?: (string | string[])
8215
8263
 
8216
- groups?: (string | string[])[]
8264
+ groups?: (string | string[] | {
8265
+
8266
+ newlinesBetween?: ("ignore" | "always" | "never")
8267
+ [k: string]: unknown | undefined
8268
+ })[]
8217
8269
 
8218
8270
  order?: ("asc" | "desc")
8219
8271
  })
@@ -8233,7 +8285,11 @@ type PerfectionistSortInterfaces = {
8233
8285
  declarationMatchesPattern?: string
8234
8286
  }
8235
8287
 
8236
- partitionByComment?: (string[] | boolean | string)
8288
+ partitionByComment?: (string[] | boolean | string | {
8289
+ block?: (string[] | boolean | string)
8290
+ line?: (string[] | boolean | string)
8291
+ [k: string]: unknown | undefined
8292
+ })
8237
8293
  customGroups?: ({
8238
8294
  [k: string]: (string | string[]) | undefined
8239
8295
  } | ({
@@ -8243,6 +8299,8 @@ type PerfectionistSortInterfaces = {
8243
8299
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8244
8300
 
8245
8301
  order?: ("desc" | "asc")
8302
+
8303
+ newlinesInside?: ("always" | "never")
8246
8304
  anyOf?: {
8247
8305
 
8248
8306
  modifiers?: ("optional" | "required" | "multiline")[]
@@ -8259,6 +8317,8 @@ type PerfectionistSortInterfaces = {
8259
8317
 
8260
8318
  order?: ("desc" | "asc")
8261
8319
 
8320
+ newlinesInside?: ("always" | "never")
8321
+
8262
8322
  modifiers?: ("optional" | "required" | "multiline")[]
8263
8323
 
8264
8324
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
@@ -8282,14 +8342,22 @@ type PerfectionistSortInterfaces = {
8282
8342
 
8283
8343
  locales?: (string | string[])
8284
8344
 
8285
- groups?: (string | string[])[]
8345
+ groups?: (string | string[] | {
8346
+
8347
+ newlinesBetween?: ("ignore" | "always" | "never")
8348
+ [k: string]: unknown | undefined
8349
+ })[]
8286
8350
 
8287
8351
  order?: ("asc" | "desc")
8288
8352
  }[]
8289
8353
  // ----- perfectionist/sort-intersection-types -----
8290
8354
  type PerfectionistSortIntersectionTypes = []|[{
8291
8355
 
8292
- partitionByComment?: (string[] | boolean | string)
8356
+ partitionByComment?: (string[] | boolean | string | {
8357
+ block?: (string[] | boolean | string)
8358
+ line?: (string[] | boolean | string)
8359
+ [k: string]: unknown | undefined
8360
+ })
8293
8361
 
8294
8362
  partitionByNewLine?: boolean
8295
8363
 
@@ -8305,7 +8373,11 @@ type PerfectionistSortIntersectionTypes = []|[{
8305
8373
 
8306
8374
  locales?: (string | string[])
8307
8375
 
8308
- groups?: (string | string[])[]
8376
+ groups?: (string | string[] | {
8377
+
8378
+ newlinesBetween?: ("ignore" | "always" | "never")
8379
+ [k: string]: unknown | undefined
8380
+ })[]
8309
8381
 
8310
8382
  order?: ("asc" | "desc")
8311
8383
  }]
@@ -8328,14 +8400,22 @@ type PerfectionistSortJsxProps = []|[{
8328
8400
 
8329
8401
  locales?: (string | string[])
8330
8402
 
8331
- groups?: (string | string[])[]
8403
+ groups?: (string | string[] | {
8404
+
8405
+ newlinesBetween?: ("ignore" | "always" | "never")
8406
+ [k: string]: unknown | undefined
8407
+ })[]
8332
8408
 
8333
8409
  order?: ("asc" | "desc")
8334
8410
  }]
8335
8411
  // ----- perfectionist/sort-maps -----
8336
8412
  type PerfectionistSortMaps = []|[{
8337
8413
 
8338
- partitionByComment?: (string[] | boolean | string)
8414
+ partitionByComment?: (string[] | boolean | string | {
8415
+ block?: (string[] | boolean | string)
8416
+ line?: (string[] | boolean | string)
8417
+ [k: string]: unknown | undefined
8418
+ })
8339
8419
 
8340
8420
  partitionByNewLine?: boolean
8341
8421
 
@@ -8354,7 +8434,11 @@ type PerfectionistSortMaps = []|[{
8354
8434
  // ----- perfectionist/sort-modules -----
8355
8435
  type PerfectionistSortModules = []|[{
8356
8436
 
8357
- partitionByComment?: (string[] | boolean | string)
8437
+ partitionByComment?: (string[] | boolean | string | {
8438
+ block?: (string[] | boolean | string)
8439
+ line?: (string[] | boolean | string)
8440
+ [k: string]: unknown | undefined
8441
+ })
8358
8442
 
8359
8443
  customGroups?: ({
8360
8444
 
@@ -8363,6 +8447,8 @@ type PerfectionistSortModules = []|[{
8363
8447
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8364
8448
 
8365
8449
  order?: ("desc" | "asc")
8450
+
8451
+ newlinesInside?: ("always" | "never")
8366
8452
  anyOf?: {
8367
8453
 
8368
8454
  decoratorNamePattern?: string
@@ -8381,6 +8467,8 @@ type PerfectionistSortModules = []|[{
8381
8467
 
8382
8468
  order?: ("desc" | "asc")
8383
8469
 
8470
+ newlinesInside?: ("always" | "never")
8471
+
8384
8472
  decoratorNamePattern?: string
8385
8473
 
8386
8474
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
@@ -8404,14 +8492,22 @@ type PerfectionistSortModules = []|[{
8404
8492
 
8405
8493
  locales?: (string | string[])
8406
8494
 
8407
- groups?: (string | string[])[]
8495
+ groups?: (string | string[] | {
8496
+
8497
+ newlinesBetween?: ("ignore" | "always" | "never")
8498
+ [k: string]: unknown | undefined
8499
+ })[]
8408
8500
 
8409
8501
  order?: ("asc" | "desc")
8410
8502
  }]
8411
8503
  // ----- perfectionist/sort-named-exports -----
8412
8504
  type PerfectionistSortNamedExports = []|[{
8413
8505
 
8414
- partitionByComment?: (string[] | boolean | string)
8506
+ partitionByComment?: (string[] | boolean | string | {
8507
+ block?: (string[] | boolean | string)
8508
+ line?: (string[] | boolean | string)
8509
+ [k: string]: unknown | undefined
8510
+ })
8415
8511
 
8416
8512
  groupKind?: ("mixed" | "values-first" | "types-first")
8417
8513
 
@@ -8432,7 +8528,11 @@ type PerfectionistSortNamedExports = []|[{
8432
8528
  // ----- perfectionist/sort-named-imports -----
8433
8529
  type PerfectionistSortNamedImports = []|[{
8434
8530
 
8435
- partitionByComment?: (string[] | boolean | string)
8531
+ partitionByComment?: (string[] | boolean | string | {
8532
+ block?: (string[] | boolean | string)
8533
+ line?: (string[] | boolean | string)
8534
+ [k: string]: unknown | undefined
8535
+ })
8436
8536
 
8437
8537
  groupKind?: ("mixed" | "values-first" | "types-first")
8438
8538
 
@@ -8461,7 +8561,11 @@ type PerfectionistSortObjectTypes = {
8461
8561
  declarationMatchesPattern?: string
8462
8562
  }
8463
8563
 
8464
- partitionByComment?: (string[] | boolean | string)
8564
+ partitionByComment?: (string[] | boolean | string | {
8565
+ block?: (string[] | boolean | string)
8566
+ line?: (string[] | boolean | string)
8567
+ [k: string]: unknown | undefined
8568
+ })
8465
8569
  customGroups?: ({
8466
8570
  [k: string]: (string | string[]) | undefined
8467
8571
  } | ({
@@ -8471,6 +8575,8 @@ type PerfectionistSortObjectTypes = {
8471
8575
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8472
8576
 
8473
8577
  order?: ("desc" | "asc")
8578
+
8579
+ newlinesInside?: ("always" | "never")
8474
8580
  anyOf?: {
8475
8581
 
8476
8582
  modifiers?: ("optional" | "required" | "multiline")[]
@@ -8487,6 +8593,8 @@ type PerfectionistSortObjectTypes = {
8487
8593
 
8488
8594
  order?: ("desc" | "asc")
8489
8595
 
8596
+ newlinesInside?: ("always" | "never")
8597
+
8490
8598
  modifiers?: ("optional" | "required" | "multiline")[]
8491
8599
 
8492
8600
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
@@ -8510,7 +8618,11 @@ type PerfectionistSortObjectTypes = {
8510
8618
 
8511
8619
  locales?: (string | string[])
8512
8620
 
8513
- groups?: (string | string[])[]
8621
+ groups?: (string | string[] | {
8622
+
8623
+ newlinesBetween?: ("ignore" | "always" | "never")
8624
+ [k: string]: unknown | undefined
8625
+ })[]
8514
8626
 
8515
8627
  order?: ("asc" | "desc")
8516
8628
  }[]
@@ -8528,7 +8640,11 @@ type PerfectionistSortObjects = {
8528
8640
  callingFunctionNamePattern?: string
8529
8641
  }
8530
8642
 
8531
- partitionByComment?: (string[] | boolean | string)
8643
+ partitionByComment?: (string[] | boolean | string | {
8644
+ block?: (string[] | boolean | string)
8645
+ line?: (string[] | boolean | string)
8646
+ [k: string]: unknown | undefined
8647
+ })
8532
8648
 
8533
8649
  destructureOnly?: boolean
8534
8650
 
@@ -8554,14 +8670,22 @@ type PerfectionistSortObjects = {
8554
8670
 
8555
8671
  locales?: (string | string[])
8556
8672
 
8557
- groups?: (string | string[])[]
8673
+ groups?: (string | string[] | {
8674
+
8675
+ newlinesBetween?: ("ignore" | "always" | "never")
8676
+ [k: string]: unknown | undefined
8677
+ })[]
8558
8678
 
8559
8679
  order?: ("asc" | "desc")
8560
8680
  }[]
8561
8681
  // ----- perfectionist/sort-sets -----
8562
8682
  type PerfectionistSortSets = {
8563
8683
 
8564
- partitionByComment?: (string[] | boolean | string)
8684
+ partitionByComment?: (string[] | boolean | string | {
8685
+ block?: (string[] | boolean | string)
8686
+ line?: (string[] | boolean | string)
8687
+ [k: string]: unknown | undefined
8688
+ })
8565
8689
 
8566
8690
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
8567
8691
 
@@ -8572,6 +8696,8 @@ type PerfectionistSortSets = {
8572
8696
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8573
8697
 
8574
8698
  order?: ("desc" | "asc")
8699
+
8700
+ newlinesInside?: ("always" | "never")
8575
8701
  anyOf?: {
8576
8702
 
8577
8703
  selector?: ("literal" | "spread")
@@ -8586,6 +8712,8 @@ type PerfectionistSortSets = {
8586
8712
 
8587
8713
  order?: ("desc" | "asc")
8588
8714
 
8715
+ newlinesInside?: ("always" | "never")
8716
+
8589
8717
  selector?: ("literal" | "spread")
8590
8718
 
8591
8719
  elementNamePattern?: string
@@ -8606,7 +8734,11 @@ type PerfectionistSortSets = {
8606
8734
 
8607
8735
  locales?: (string | string[])
8608
8736
 
8609
- groups?: (string | string[])[]
8737
+ groups?: (string | string[] | {
8738
+
8739
+ newlinesBetween?: ("ignore" | "always" | "never")
8740
+ [k: string]: unknown | undefined
8741
+ })[]
8610
8742
 
8611
8743
  order?: ("asc" | "desc")
8612
8744
  }[]
@@ -8628,7 +8760,11 @@ type PerfectionistSortSwitchCase = []|[{
8628
8760
  // ----- perfectionist/sort-union-types -----
8629
8761
  type PerfectionistSortUnionTypes = []|[{
8630
8762
 
8631
- partitionByComment?: (string[] | boolean | string)
8763
+ partitionByComment?: (string[] | boolean | string | {
8764
+ block?: (string[] | boolean | string)
8765
+ line?: (string[] | boolean | string)
8766
+ [k: string]: unknown | undefined
8767
+ })
8632
8768
 
8633
8769
  partitionByNewLine?: boolean
8634
8770
 
@@ -8644,14 +8780,22 @@ type PerfectionistSortUnionTypes = []|[{
8644
8780
 
8645
8781
  locales?: (string | string[])
8646
8782
 
8647
- groups?: (string | string[])[]
8783
+ groups?: (string | string[] | {
8784
+
8785
+ newlinesBetween?: ("ignore" | "always" | "never")
8786
+ [k: string]: unknown | undefined
8787
+ })[]
8648
8788
 
8649
8789
  order?: ("asc" | "desc")
8650
8790
  }]
8651
8791
  // ----- perfectionist/sort-variable-declarations -----
8652
8792
  type PerfectionistSortVariableDeclarations = []|[{
8653
8793
 
8654
- partitionByComment?: (string[] | boolean | string)
8794
+ partitionByComment?: (string[] | boolean | string | {
8795
+ block?: (string[] | boolean | string)
8796
+ line?: (string[] | boolean | string)
8797
+ [k: string]: unknown | undefined
8798
+ })
8655
8799
 
8656
8800
  partitionByNewLine?: boolean
8657
8801
 
package/dist/index.d.ts CHANGED
@@ -1275,7 +1275,7 @@ interface RuleOptions {
1275
1275
  */
1276
1276
  'default-case'?: Linter.RuleEntry<DefaultCase>
1277
1277
  /**
1278
- * Enforce `default` clauses in switch statements to be last
1278
+ * Enforce `default` clauses in `switch` statements to be last
1279
1279
  * @see https://eslint.org/docs/latest/rules/default-case-last
1280
1280
  */
1281
1281
  'default-case-last'?: Linter.RuleEntry<[]>
@@ -2962,7 +2962,7 @@ interface RuleOptions {
2962
2962
  */
2963
2963
  'solid/style-prop'?: Linter.RuleEntry<SolidStyleProp>
2964
2964
  /**
2965
- * Enforce sorted import declarations within modules
2965
+ * Enforce sorted `import` declarations within modules
2966
2966
  * @see https://eslint.org/docs/latest/rules/sort-imports
2967
2967
  */
2968
2968
  'sort-imports'?: Linter.RuleEntry<SortImports>
@@ -5344,7 +5344,7 @@ type TypescriptEslintConsistentTypeAssertions = []|[({
5344
5344
  assertionStyle: "never"
5345
5345
  } | {
5346
5346
 
5347
- assertionStyle: ("as" | "angle-bracket")
5347
+ assertionStyle?: ("as" | "angle-bracket")
5348
5348
 
5349
5349
  objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
5350
5350
  })]
@@ -7962,7 +7962,11 @@ type PaddingLineBetweenStatements = {
7962
7962
  // ----- perfectionist/sort-array-includes -----
7963
7963
  type PerfectionistSortArrayIncludes = {
7964
7964
 
7965
- partitionByComment?: (string[] | boolean | string)
7965
+ partitionByComment?: (string[] | boolean | string | {
7966
+ block?: (string[] | boolean | string)
7967
+ line?: (string[] | boolean | string)
7968
+ [k: string]: unknown | undefined
7969
+ })
7966
7970
 
7967
7971
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
7968
7972
 
@@ -7973,6 +7977,8 @@ type PerfectionistSortArrayIncludes = {
7973
7977
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
7974
7978
 
7975
7979
  order?: ("desc" | "asc")
7980
+
7981
+ newlinesInside?: ("always" | "never")
7976
7982
  anyOf?: {
7977
7983
 
7978
7984
  selector?: ("literal" | "spread")
@@ -7987,6 +7993,8 @@ type PerfectionistSortArrayIncludes = {
7987
7993
 
7988
7994
  order?: ("desc" | "asc")
7989
7995
 
7996
+ newlinesInside?: ("always" | "never")
7997
+
7990
7998
  selector?: ("literal" | "spread")
7991
7999
 
7992
8000
  elementNamePattern?: string
@@ -8007,7 +8015,11 @@ type PerfectionistSortArrayIncludes = {
8007
8015
 
8008
8016
  locales?: (string | string[])
8009
8017
 
8010
- groups?: (string | string[])[]
8018
+ groups?: (string | string[] | {
8019
+
8020
+ newlinesBetween?: ("ignore" | "always" | "never")
8021
+ [k: string]: unknown | undefined
8022
+ })[]
8011
8023
 
8012
8024
  order?: ("asc" | "desc")
8013
8025
  }[]
@@ -8016,7 +8028,11 @@ type PerfectionistSortClasses = []|[{
8016
8028
 
8017
8029
  ignoreCallbackDependenciesPatterns?: string[]
8018
8030
 
8019
- partitionByComment?: (string[] | boolean | string)
8031
+ partitionByComment?: (string[] | boolean | string | {
8032
+ block?: (string[] | boolean | string)
8033
+ line?: (string[] | boolean | string)
8034
+ [k: string]: unknown | undefined
8035
+ })
8020
8036
 
8021
8037
  customGroups?: ({
8022
8038
 
@@ -8025,6 +8041,8 @@ type PerfectionistSortClasses = []|[{
8025
8041
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8026
8042
 
8027
8043
  order?: ("desc" | "asc")
8044
+
8045
+ newlinesInside?: ("always" | "never")
8028
8046
  anyOf?: {
8029
8047
 
8030
8048
  elementValuePattern?: string
@@ -8045,6 +8063,8 @@ type PerfectionistSortClasses = []|[{
8045
8063
 
8046
8064
  order?: ("desc" | "asc")
8047
8065
 
8066
+ newlinesInside?: ("always" | "never")
8067
+
8048
8068
  elementValuePattern?: string
8049
8069
 
8050
8070
  decoratorNamePattern?: string
@@ -8070,14 +8090,22 @@ type PerfectionistSortClasses = []|[{
8070
8090
 
8071
8091
  locales?: (string | string[])
8072
8092
 
8073
- groups?: (string | string[])[]
8093
+ groups?: (string | string[] | {
8094
+
8095
+ newlinesBetween?: ("ignore" | "always" | "never")
8096
+ [k: string]: unknown | undefined
8097
+ })[]
8074
8098
 
8075
8099
  order?: ("asc" | "desc")
8076
8100
  }]
8077
8101
  // ----- perfectionist/sort-decorators -----
8078
8102
  type PerfectionistSortDecorators = []|[{
8079
8103
 
8080
- partitionByComment?: (string[] | boolean | string)
8104
+ partitionByComment?: (string[] | boolean | string | {
8105
+ block?: (string[] | boolean | string)
8106
+ line?: (string[] | boolean | string)
8107
+ [k: string]: unknown | undefined
8108
+ })
8081
8109
 
8082
8110
  sortOnParameters?: boolean
8083
8111
 
@@ -8103,14 +8131,22 @@ type PerfectionistSortDecorators = []|[{
8103
8131
 
8104
8132
  locales?: (string | string[])
8105
8133
 
8106
- groups?: (string | string[])[]
8134
+ groups?: (string | string[] | {
8135
+
8136
+ newlinesBetween?: ("ignore" | "always" | "never")
8137
+ [k: string]: unknown | undefined
8138
+ })[]
8107
8139
 
8108
8140
  order?: ("asc" | "desc")
8109
8141
  }]
8110
8142
  // ----- perfectionist/sort-enums -----
8111
8143
  type PerfectionistSortEnums = []|[{
8112
8144
 
8113
- partitionByComment?: (string[] | boolean | string)
8145
+ partitionByComment?: (string[] | boolean | string | {
8146
+ block?: (string[] | boolean | string)
8147
+ line?: (string[] | boolean | string)
8148
+ [k: string]: unknown | undefined
8149
+ })
8114
8150
 
8115
8151
  forceNumericSort?: boolean
8116
8152
 
@@ -8133,7 +8169,11 @@ type PerfectionistSortEnums = []|[{
8133
8169
  // ----- perfectionist/sort-exports -----
8134
8170
  type PerfectionistSortExports = []|[{
8135
8171
 
8136
- partitionByComment?: (string[] | boolean | string)
8172
+ partitionByComment?: (string[] | boolean | string | {
8173
+ block?: (string[] | boolean | string)
8174
+ line?: (string[] | boolean | string)
8175
+ [k: string]: unknown | undefined
8176
+ })
8137
8177
 
8138
8178
  groupKind?: ("mixed" | "values-first" | "types-first")
8139
8179
 
@@ -8168,7 +8208,11 @@ type PerfectionistSortHeritageClauses = []|[{
8168
8208
 
8169
8209
  locales?: (string | string[])
8170
8210
 
8171
- groups?: (string | string[])[]
8211
+ groups?: (string | string[] | {
8212
+
8213
+ newlinesBetween?: ("ignore" | "always" | "never")
8214
+ [k: string]: unknown | undefined
8215
+ })[]
8172
8216
 
8173
8217
  order?: ("asc" | "desc")
8174
8218
  }]
@@ -8187,7 +8231,11 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
8187
8231
  }
8188
8232
  }
8189
8233
 
8190
- partitionByComment?: (string[] | boolean | string)
8234
+ partitionByComment?: (string[] | boolean | string | {
8235
+ block?: (string[] | boolean | string)
8236
+ line?: (string[] | boolean | string)
8237
+ [k: string]: unknown | undefined
8238
+ })
8191
8239
 
8192
8240
  internalPattern?: string[]
8193
8241
 
@@ -8213,7 +8261,11 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
8213
8261
 
8214
8262
  locales?: (string | string[])
8215
8263
 
8216
- groups?: (string | string[])[]
8264
+ groups?: (string | string[] | {
8265
+
8266
+ newlinesBetween?: ("ignore" | "always" | "never")
8267
+ [k: string]: unknown | undefined
8268
+ })[]
8217
8269
 
8218
8270
  order?: ("asc" | "desc")
8219
8271
  })
@@ -8233,7 +8285,11 @@ type PerfectionistSortInterfaces = {
8233
8285
  declarationMatchesPattern?: string
8234
8286
  }
8235
8287
 
8236
- partitionByComment?: (string[] | boolean | string)
8288
+ partitionByComment?: (string[] | boolean | string | {
8289
+ block?: (string[] | boolean | string)
8290
+ line?: (string[] | boolean | string)
8291
+ [k: string]: unknown | undefined
8292
+ })
8237
8293
  customGroups?: ({
8238
8294
  [k: string]: (string | string[]) | undefined
8239
8295
  } | ({
@@ -8243,6 +8299,8 @@ type PerfectionistSortInterfaces = {
8243
8299
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8244
8300
 
8245
8301
  order?: ("desc" | "asc")
8302
+
8303
+ newlinesInside?: ("always" | "never")
8246
8304
  anyOf?: {
8247
8305
 
8248
8306
  modifiers?: ("optional" | "required" | "multiline")[]
@@ -8259,6 +8317,8 @@ type PerfectionistSortInterfaces = {
8259
8317
 
8260
8318
  order?: ("desc" | "asc")
8261
8319
 
8320
+ newlinesInside?: ("always" | "never")
8321
+
8262
8322
  modifiers?: ("optional" | "required" | "multiline")[]
8263
8323
 
8264
8324
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
@@ -8282,14 +8342,22 @@ type PerfectionistSortInterfaces = {
8282
8342
 
8283
8343
  locales?: (string | string[])
8284
8344
 
8285
- groups?: (string | string[])[]
8345
+ groups?: (string | string[] | {
8346
+
8347
+ newlinesBetween?: ("ignore" | "always" | "never")
8348
+ [k: string]: unknown | undefined
8349
+ })[]
8286
8350
 
8287
8351
  order?: ("asc" | "desc")
8288
8352
  }[]
8289
8353
  // ----- perfectionist/sort-intersection-types -----
8290
8354
  type PerfectionistSortIntersectionTypes = []|[{
8291
8355
 
8292
- partitionByComment?: (string[] | boolean | string)
8356
+ partitionByComment?: (string[] | boolean | string | {
8357
+ block?: (string[] | boolean | string)
8358
+ line?: (string[] | boolean | string)
8359
+ [k: string]: unknown | undefined
8360
+ })
8293
8361
 
8294
8362
  partitionByNewLine?: boolean
8295
8363
 
@@ -8305,7 +8373,11 @@ type PerfectionistSortIntersectionTypes = []|[{
8305
8373
 
8306
8374
  locales?: (string | string[])
8307
8375
 
8308
- groups?: (string | string[])[]
8376
+ groups?: (string | string[] | {
8377
+
8378
+ newlinesBetween?: ("ignore" | "always" | "never")
8379
+ [k: string]: unknown | undefined
8380
+ })[]
8309
8381
 
8310
8382
  order?: ("asc" | "desc")
8311
8383
  }]
@@ -8328,14 +8400,22 @@ type PerfectionistSortJsxProps = []|[{
8328
8400
 
8329
8401
  locales?: (string | string[])
8330
8402
 
8331
- groups?: (string | string[])[]
8403
+ groups?: (string | string[] | {
8404
+
8405
+ newlinesBetween?: ("ignore" | "always" | "never")
8406
+ [k: string]: unknown | undefined
8407
+ })[]
8332
8408
 
8333
8409
  order?: ("asc" | "desc")
8334
8410
  }]
8335
8411
  // ----- perfectionist/sort-maps -----
8336
8412
  type PerfectionistSortMaps = []|[{
8337
8413
 
8338
- partitionByComment?: (string[] | boolean | string)
8414
+ partitionByComment?: (string[] | boolean | string | {
8415
+ block?: (string[] | boolean | string)
8416
+ line?: (string[] | boolean | string)
8417
+ [k: string]: unknown | undefined
8418
+ })
8339
8419
 
8340
8420
  partitionByNewLine?: boolean
8341
8421
 
@@ -8354,7 +8434,11 @@ type PerfectionistSortMaps = []|[{
8354
8434
  // ----- perfectionist/sort-modules -----
8355
8435
  type PerfectionistSortModules = []|[{
8356
8436
 
8357
- partitionByComment?: (string[] | boolean | string)
8437
+ partitionByComment?: (string[] | boolean | string | {
8438
+ block?: (string[] | boolean | string)
8439
+ line?: (string[] | boolean | string)
8440
+ [k: string]: unknown | undefined
8441
+ })
8358
8442
 
8359
8443
  customGroups?: ({
8360
8444
 
@@ -8363,6 +8447,8 @@ type PerfectionistSortModules = []|[{
8363
8447
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8364
8448
 
8365
8449
  order?: ("desc" | "asc")
8450
+
8451
+ newlinesInside?: ("always" | "never")
8366
8452
  anyOf?: {
8367
8453
 
8368
8454
  decoratorNamePattern?: string
@@ -8381,6 +8467,8 @@ type PerfectionistSortModules = []|[{
8381
8467
 
8382
8468
  order?: ("desc" | "asc")
8383
8469
 
8470
+ newlinesInside?: ("always" | "never")
8471
+
8384
8472
  decoratorNamePattern?: string
8385
8473
 
8386
8474
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
@@ -8404,14 +8492,22 @@ type PerfectionistSortModules = []|[{
8404
8492
 
8405
8493
  locales?: (string | string[])
8406
8494
 
8407
- groups?: (string | string[])[]
8495
+ groups?: (string | string[] | {
8496
+
8497
+ newlinesBetween?: ("ignore" | "always" | "never")
8498
+ [k: string]: unknown | undefined
8499
+ })[]
8408
8500
 
8409
8501
  order?: ("asc" | "desc")
8410
8502
  }]
8411
8503
  // ----- perfectionist/sort-named-exports -----
8412
8504
  type PerfectionistSortNamedExports = []|[{
8413
8505
 
8414
- partitionByComment?: (string[] | boolean | string)
8506
+ partitionByComment?: (string[] | boolean | string | {
8507
+ block?: (string[] | boolean | string)
8508
+ line?: (string[] | boolean | string)
8509
+ [k: string]: unknown | undefined
8510
+ })
8415
8511
 
8416
8512
  groupKind?: ("mixed" | "values-first" | "types-first")
8417
8513
 
@@ -8432,7 +8528,11 @@ type PerfectionistSortNamedExports = []|[{
8432
8528
  // ----- perfectionist/sort-named-imports -----
8433
8529
  type PerfectionistSortNamedImports = []|[{
8434
8530
 
8435
- partitionByComment?: (string[] | boolean | string)
8531
+ partitionByComment?: (string[] | boolean | string | {
8532
+ block?: (string[] | boolean | string)
8533
+ line?: (string[] | boolean | string)
8534
+ [k: string]: unknown | undefined
8535
+ })
8436
8536
 
8437
8537
  groupKind?: ("mixed" | "values-first" | "types-first")
8438
8538
 
@@ -8461,7 +8561,11 @@ type PerfectionistSortObjectTypes = {
8461
8561
  declarationMatchesPattern?: string
8462
8562
  }
8463
8563
 
8464
- partitionByComment?: (string[] | boolean | string)
8564
+ partitionByComment?: (string[] | boolean | string | {
8565
+ block?: (string[] | boolean | string)
8566
+ line?: (string[] | boolean | string)
8567
+ [k: string]: unknown | undefined
8568
+ })
8465
8569
  customGroups?: ({
8466
8570
  [k: string]: (string | string[]) | undefined
8467
8571
  } | ({
@@ -8471,6 +8575,8 @@ type PerfectionistSortObjectTypes = {
8471
8575
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8472
8576
 
8473
8577
  order?: ("desc" | "asc")
8578
+
8579
+ newlinesInside?: ("always" | "never")
8474
8580
  anyOf?: {
8475
8581
 
8476
8582
  modifiers?: ("optional" | "required" | "multiline")[]
@@ -8487,6 +8593,8 @@ type PerfectionistSortObjectTypes = {
8487
8593
 
8488
8594
  order?: ("desc" | "asc")
8489
8595
 
8596
+ newlinesInside?: ("always" | "never")
8597
+
8490
8598
  modifiers?: ("optional" | "required" | "multiline")[]
8491
8599
 
8492
8600
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
@@ -8510,7 +8618,11 @@ type PerfectionistSortObjectTypes = {
8510
8618
 
8511
8619
  locales?: (string | string[])
8512
8620
 
8513
- groups?: (string | string[])[]
8621
+ groups?: (string | string[] | {
8622
+
8623
+ newlinesBetween?: ("ignore" | "always" | "never")
8624
+ [k: string]: unknown | undefined
8625
+ })[]
8514
8626
 
8515
8627
  order?: ("asc" | "desc")
8516
8628
  }[]
@@ -8528,7 +8640,11 @@ type PerfectionistSortObjects = {
8528
8640
  callingFunctionNamePattern?: string
8529
8641
  }
8530
8642
 
8531
- partitionByComment?: (string[] | boolean | string)
8643
+ partitionByComment?: (string[] | boolean | string | {
8644
+ block?: (string[] | boolean | string)
8645
+ line?: (string[] | boolean | string)
8646
+ [k: string]: unknown | undefined
8647
+ })
8532
8648
 
8533
8649
  destructureOnly?: boolean
8534
8650
 
@@ -8554,14 +8670,22 @@ type PerfectionistSortObjects = {
8554
8670
 
8555
8671
  locales?: (string | string[])
8556
8672
 
8557
- groups?: (string | string[])[]
8673
+ groups?: (string | string[] | {
8674
+
8675
+ newlinesBetween?: ("ignore" | "always" | "never")
8676
+ [k: string]: unknown | undefined
8677
+ })[]
8558
8678
 
8559
8679
  order?: ("asc" | "desc")
8560
8680
  }[]
8561
8681
  // ----- perfectionist/sort-sets -----
8562
8682
  type PerfectionistSortSets = {
8563
8683
 
8564
- partitionByComment?: (string[] | boolean | string)
8684
+ partitionByComment?: (string[] | boolean | string | {
8685
+ block?: (string[] | boolean | string)
8686
+ line?: (string[] | boolean | string)
8687
+ [k: string]: unknown | undefined
8688
+ })
8565
8689
 
8566
8690
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
8567
8691
 
@@ -8572,6 +8696,8 @@ type PerfectionistSortSets = {
8572
8696
  type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
8573
8697
 
8574
8698
  order?: ("desc" | "asc")
8699
+
8700
+ newlinesInside?: ("always" | "never")
8575
8701
  anyOf?: {
8576
8702
 
8577
8703
  selector?: ("literal" | "spread")
@@ -8586,6 +8712,8 @@ type PerfectionistSortSets = {
8586
8712
 
8587
8713
  order?: ("desc" | "asc")
8588
8714
 
8715
+ newlinesInside?: ("always" | "never")
8716
+
8589
8717
  selector?: ("literal" | "spread")
8590
8718
 
8591
8719
  elementNamePattern?: string
@@ -8606,7 +8734,11 @@ type PerfectionistSortSets = {
8606
8734
 
8607
8735
  locales?: (string | string[])
8608
8736
 
8609
- groups?: (string | string[])[]
8737
+ groups?: (string | string[] | {
8738
+
8739
+ newlinesBetween?: ("ignore" | "always" | "never")
8740
+ [k: string]: unknown | undefined
8741
+ })[]
8610
8742
 
8611
8743
  order?: ("asc" | "desc")
8612
8744
  }[]
@@ -8628,7 +8760,11 @@ type PerfectionistSortSwitchCase = []|[{
8628
8760
  // ----- perfectionist/sort-union-types -----
8629
8761
  type PerfectionistSortUnionTypes = []|[{
8630
8762
 
8631
- partitionByComment?: (string[] | boolean | string)
8763
+ partitionByComment?: (string[] | boolean | string | {
8764
+ block?: (string[] | boolean | string)
8765
+ line?: (string[] | boolean | string)
8766
+ [k: string]: unknown | undefined
8767
+ })
8632
8768
 
8633
8769
  partitionByNewLine?: boolean
8634
8770
 
@@ -8644,14 +8780,22 @@ type PerfectionistSortUnionTypes = []|[{
8644
8780
 
8645
8781
  locales?: (string | string[])
8646
8782
 
8647
- groups?: (string | string[])[]
8783
+ groups?: (string | string[] | {
8784
+
8785
+ newlinesBetween?: ("ignore" | "always" | "never")
8786
+ [k: string]: unknown | undefined
8787
+ })[]
8648
8788
 
8649
8789
  order?: ("asc" | "desc")
8650
8790
  }]
8651
8791
  // ----- perfectionist/sort-variable-declarations -----
8652
8792
  type PerfectionistSortVariableDeclarations = []|[{
8653
8793
 
8654
- partitionByComment?: (string[] | boolean | string)
8794
+ partitionByComment?: (string[] | boolean | string | {
8795
+ block?: (string[] | boolean | string)
8796
+ line?: (string[] | boolean | string)
8797
+ [k: string]: unknown | undefined
8798
+ })
8655
8799
 
8656
8800
  partitionByNewLine?: boolean
8657
8801
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichthagel/eslint-config",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Licht's ESLint config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -61,7 +61,7 @@
61
61
  "eslint-plugin-solid": "^0.14.3",
62
62
  "eslint-plugin-svelte": "^2.44.1",
63
63
  "eslint-plugin-tailwindcss": "^3.17.4",
64
- "eslint-typegen": "^0.3.2",
64
+ "eslint-typegen": "^1.0.0",
65
65
  "husky": "^9.1.6",
66
66
  "lint-staged": "^15.2.10",
67
67
  "svelte": "^5.12.0",