@lichthagel/eslint-config 1.0.25 → 1.0.26

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.
Files changed (3) hide show
  1. package/dist/index.d.cts +147 -101
  2. package/dist/index.d.ts +147 -101
  3. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -6098,6 +6098,8 @@ type TypescriptEslintNoUnnecessaryCondition = []|[{
6098
6098
  // ----- @typescript-eslint/no-unnecessary-type-assertion -----
6099
6099
  type TypescriptEslintNoUnnecessaryTypeAssertion = []|[{
6100
6100
 
6101
+ checkLiteralConstAssertions?: boolean
6102
+
6101
6103
  typesToIgnore?: string[]
6102
6104
  }]
6103
6105
  // ----- @typescript-eslint/no-unused-expressions -----
@@ -7573,7 +7575,7 @@ type NoEmpty = []|[{
7573
7575
  }]
7574
7576
  // ----- no-empty-function -----
7575
7577
  type NoEmptyFunction = []|[{
7576
- allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods")[]
7578
+ allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods" | "privateConstructors" | "protectedConstructors" | "decoratedFunctions" | "overrideMethods")[]
7577
7579
  }]
7578
7580
  // ----- no-empty-pattern -----
7579
7581
  type NoEmptyPattern = []|[{
@@ -7775,13 +7777,9 @@ type NoRestrictedModules = ((string | {
7775
7777
  }[])
7776
7778
  // ----- no-restricted-properties -----
7777
7779
  type NoRestrictedProperties = ({
7778
- object: string
7779
- property?: string
7780
- message?: string
7780
+ [k: string]: unknown | undefined
7781
7781
  } | {
7782
- object?: string
7783
- property: string
7784
- message?: string
7782
+ [k: string]: unknown | undefined
7785
7783
  })[]
7786
7784
  // ----- no-restricted-syntax -----
7787
7785
  type NoRestrictedSyntax = (string | {
@@ -8622,96 +8620,6 @@ type PerfectionistSortHeritageClauses = []|[{
8622
8620
  newlinesBetween?: ("ignore" | "always" | "never")
8623
8621
  })[]
8624
8622
  }]
8625
- // ----- perfectionist/sort-imports -----
8626
- type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
8627
- type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
8628
-
8629
- fallbackSort?: {
8630
-
8631
- order?: ("asc" | "desc")
8632
-
8633
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
8634
- [k: string]: unknown | undefined
8635
- }
8636
-
8637
- specialCharacters?: ("remove" | "trim" | "keep")
8638
-
8639
- ignoreCase?: boolean
8640
-
8641
- alphabet?: string
8642
-
8643
- locales?: (string | string[])
8644
-
8645
- order?: ("asc" | "desc")
8646
-
8647
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
8648
-
8649
- customGroups?: {
8650
-
8651
- value?: {
8652
- [k: string]: unknown | undefined
8653
- }
8654
-
8655
- type?: {
8656
- [k: string]: unknown | undefined
8657
- }
8658
- }
8659
-
8660
- maxLineLength?: number
8661
-
8662
- sortSideEffects?: boolean
8663
-
8664
- environment?: ("node" | "bun")
8665
-
8666
- tsconfigRootDir?: string
8667
-
8668
- partitionByComment?: (boolean | (({
8669
- pattern?: string
8670
- flags?: string
8671
- } | string)[] | ({
8672
- pattern?: string
8673
- flags?: string
8674
- } | string)) | {
8675
- block?: (boolean | (({
8676
- pattern?: string
8677
- flags?: string
8678
- } | string)[] | ({
8679
- pattern?: string
8680
- flags?: string
8681
- } | string)))
8682
- line?: (boolean | (({
8683
- pattern?: string
8684
- flags?: string
8685
- } | string)[] | ({
8686
- pattern?: string
8687
- flags?: string
8688
- } | string)))
8689
- })
8690
-
8691
- partitionByNewLine?: boolean
8692
-
8693
- newlinesBetween?: ("ignore" | "always" | "never")
8694
-
8695
- internalPattern?: (({
8696
- pattern?: string
8697
- flags?: string
8698
- } | string)[] | ({
8699
- pattern?: string
8700
- flags?: string
8701
- } | string))
8702
-
8703
- groups?: (string | string[] | {
8704
-
8705
- newlinesBetween?: ("ignore" | "always" | "never")
8706
- })[]
8707
- })
8708
- type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
8709
- [k: string]: unknown | undefined
8710
- } | _PerfectionistSortImports_IsLineLength)
8711
- interface _PerfectionistSortImports_IsLineLength {
8712
- type: "line-length"
8713
- [k: string]: unknown | undefined
8714
- }
8715
8623
  // ----- perfectionist/sort-interfaces -----
8716
8624
  type PerfectionistSortInterfaces = {
8717
8625
 
@@ -9324,7 +9232,7 @@ type PerfectionistSortModules = []|[{
9324
9232
  })[]
9325
9233
  }]
9326
9234
  // ----- perfectionist/sort-named-exports -----
9327
- type PerfectionistSortNamedExports = []|[{
9235
+ type PerfectionistSortNamedExports = {
9328
9236
 
9329
9237
  fallbackSort?: {
9330
9238
 
@@ -9350,6 +9258,68 @@ type PerfectionistSortNamedExports = []|[{
9350
9258
 
9351
9259
  ignoreAlias?: boolean
9352
9260
 
9261
+ customGroups?: ({
9262
+
9263
+ newlinesInside?: ("always" | "never")
9264
+
9265
+ fallbackSort?: {
9266
+
9267
+ order?: ("asc" | "desc")
9268
+
9269
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9270
+ [k: string]: unknown | undefined
9271
+ }
9272
+
9273
+ groupName?: string
9274
+
9275
+ order?: ("asc" | "desc")
9276
+
9277
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9278
+ anyOf?: {
9279
+
9280
+ modifiers?: ("value" | "type")[]
9281
+
9282
+ selector?: "export"
9283
+
9284
+ elementNamePattern?: (({
9285
+ pattern?: string
9286
+ flags?: string
9287
+ } | string)[] | ({
9288
+ pattern?: string
9289
+ flags?: string
9290
+ } | string))
9291
+ }[]
9292
+ } | {
9293
+
9294
+ newlinesInside?: ("always" | "never")
9295
+
9296
+ fallbackSort?: {
9297
+
9298
+ order?: ("asc" | "desc")
9299
+
9300
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9301
+ [k: string]: unknown | undefined
9302
+ }
9303
+
9304
+ groupName?: string
9305
+
9306
+ order?: ("asc" | "desc")
9307
+
9308
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9309
+
9310
+ modifiers?: ("value" | "type")[]
9311
+
9312
+ selector?: "export"
9313
+
9314
+ elementNamePattern?: (({
9315
+ pattern?: string
9316
+ flags?: string
9317
+ } | string)[] | ({
9318
+ pattern?: string
9319
+ flags?: string
9320
+ } | string))
9321
+ })[]
9322
+
9353
9323
  partitionByComment?: (boolean | (({
9354
9324
  pattern?: string
9355
9325
  flags?: string
@@ -9374,9 +9344,16 @@ type PerfectionistSortNamedExports = []|[{
9374
9344
  })
9375
9345
 
9376
9346
  partitionByNewLine?: boolean
9377
- }]
9347
+
9348
+ newlinesBetween?: ("ignore" | "always" | "never")
9349
+
9350
+ groups?: (string | string[] | {
9351
+
9352
+ newlinesBetween?: ("ignore" | "always" | "never")
9353
+ })[]
9354
+ }[]
9378
9355
  // ----- perfectionist/sort-named-imports -----
9379
- type PerfectionistSortNamedImports = []|[{
9356
+ type PerfectionistSortNamedImports = {
9380
9357
 
9381
9358
  fallbackSort?: {
9382
9359
 
@@ -9402,6 +9379,68 @@ type PerfectionistSortNamedImports = []|[{
9402
9379
 
9403
9380
  ignoreAlias?: boolean
9404
9381
 
9382
+ customGroups?: ({
9383
+
9384
+ newlinesInside?: ("always" | "never")
9385
+
9386
+ fallbackSort?: {
9387
+
9388
+ order?: ("asc" | "desc")
9389
+
9390
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9391
+ [k: string]: unknown | undefined
9392
+ }
9393
+
9394
+ groupName?: string
9395
+
9396
+ order?: ("asc" | "desc")
9397
+
9398
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9399
+ anyOf?: {
9400
+
9401
+ modifiers?: ("value" | "type")[]
9402
+
9403
+ selector?: "import"
9404
+
9405
+ elementNamePattern?: (({
9406
+ pattern?: string
9407
+ flags?: string
9408
+ } | string)[] | ({
9409
+ pattern?: string
9410
+ flags?: string
9411
+ } | string))
9412
+ }[]
9413
+ } | {
9414
+
9415
+ newlinesInside?: ("always" | "never")
9416
+
9417
+ fallbackSort?: {
9418
+
9419
+ order?: ("asc" | "desc")
9420
+
9421
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9422
+ [k: string]: unknown | undefined
9423
+ }
9424
+
9425
+ groupName?: string
9426
+
9427
+ order?: ("asc" | "desc")
9428
+
9429
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9430
+
9431
+ modifiers?: ("value" | "type")[]
9432
+
9433
+ selector?: "import"
9434
+
9435
+ elementNamePattern?: (({
9436
+ pattern?: string
9437
+ flags?: string
9438
+ } | string)[] | ({
9439
+ pattern?: string
9440
+ flags?: string
9441
+ } | string))
9442
+ })[]
9443
+
9405
9444
  partitionByComment?: (boolean | (({
9406
9445
  pattern?: string
9407
9446
  flags?: string
@@ -9426,7 +9465,14 @@ type PerfectionistSortNamedImports = []|[{
9426
9465
  })
9427
9466
 
9428
9467
  partitionByNewLine?: boolean
9429
- }]
9468
+
9469
+ newlinesBetween?: ("ignore" | "always" | "never")
9470
+
9471
+ groups?: (string | string[] | {
9472
+
9473
+ newlinesBetween?: ("ignore" | "always" | "never")
9474
+ })[]
9475
+ }[]
9430
9476
  // ----- perfectionist/sort-object-types -----
9431
9477
  type PerfectionistSortObjectTypes = {
9432
9478
 
package/dist/index.d.ts CHANGED
@@ -6098,6 +6098,8 @@ type TypescriptEslintNoUnnecessaryCondition = []|[{
6098
6098
  // ----- @typescript-eslint/no-unnecessary-type-assertion -----
6099
6099
  type TypescriptEslintNoUnnecessaryTypeAssertion = []|[{
6100
6100
 
6101
+ checkLiteralConstAssertions?: boolean
6102
+
6101
6103
  typesToIgnore?: string[]
6102
6104
  }]
6103
6105
  // ----- @typescript-eslint/no-unused-expressions -----
@@ -7573,7 +7575,7 @@ type NoEmpty = []|[{
7573
7575
  }]
7574
7576
  // ----- no-empty-function -----
7575
7577
  type NoEmptyFunction = []|[{
7576
- allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods")[]
7578
+ allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods" | "privateConstructors" | "protectedConstructors" | "decoratedFunctions" | "overrideMethods")[]
7577
7579
  }]
7578
7580
  // ----- no-empty-pattern -----
7579
7581
  type NoEmptyPattern = []|[{
@@ -7775,13 +7777,9 @@ type NoRestrictedModules = ((string | {
7775
7777
  }[])
7776
7778
  // ----- no-restricted-properties -----
7777
7779
  type NoRestrictedProperties = ({
7778
- object: string
7779
- property?: string
7780
- message?: string
7780
+ [k: string]: unknown | undefined
7781
7781
  } | {
7782
- object?: string
7783
- property: string
7784
- message?: string
7782
+ [k: string]: unknown | undefined
7785
7783
  })[]
7786
7784
  // ----- no-restricted-syntax -----
7787
7785
  type NoRestrictedSyntax = (string | {
@@ -8622,96 +8620,6 @@ type PerfectionistSortHeritageClauses = []|[{
8622
8620
  newlinesBetween?: ("ignore" | "always" | "never")
8623
8621
  })[]
8624
8622
  }]
8625
- // ----- perfectionist/sort-imports -----
8626
- type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
8627
- type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
8628
-
8629
- fallbackSort?: {
8630
-
8631
- order?: ("asc" | "desc")
8632
-
8633
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
8634
- [k: string]: unknown | undefined
8635
- }
8636
-
8637
- specialCharacters?: ("remove" | "trim" | "keep")
8638
-
8639
- ignoreCase?: boolean
8640
-
8641
- alphabet?: string
8642
-
8643
- locales?: (string | string[])
8644
-
8645
- order?: ("asc" | "desc")
8646
-
8647
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
8648
-
8649
- customGroups?: {
8650
-
8651
- value?: {
8652
- [k: string]: unknown | undefined
8653
- }
8654
-
8655
- type?: {
8656
- [k: string]: unknown | undefined
8657
- }
8658
- }
8659
-
8660
- maxLineLength?: number
8661
-
8662
- sortSideEffects?: boolean
8663
-
8664
- environment?: ("node" | "bun")
8665
-
8666
- tsconfigRootDir?: string
8667
-
8668
- partitionByComment?: (boolean | (({
8669
- pattern?: string
8670
- flags?: string
8671
- } | string)[] | ({
8672
- pattern?: string
8673
- flags?: string
8674
- } | string)) | {
8675
- block?: (boolean | (({
8676
- pattern?: string
8677
- flags?: string
8678
- } | string)[] | ({
8679
- pattern?: string
8680
- flags?: string
8681
- } | string)))
8682
- line?: (boolean | (({
8683
- pattern?: string
8684
- flags?: string
8685
- } | string)[] | ({
8686
- pattern?: string
8687
- flags?: string
8688
- } | string)))
8689
- })
8690
-
8691
- partitionByNewLine?: boolean
8692
-
8693
- newlinesBetween?: ("ignore" | "always" | "never")
8694
-
8695
- internalPattern?: (({
8696
- pattern?: string
8697
- flags?: string
8698
- } | string)[] | ({
8699
- pattern?: string
8700
- flags?: string
8701
- } | string))
8702
-
8703
- groups?: (string | string[] | {
8704
-
8705
- newlinesBetween?: ("ignore" | "always" | "never")
8706
- })[]
8707
- })
8708
- type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
8709
- [k: string]: unknown | undefined
8710
- } | _PerfectionistSortImports_IsLineLength)
8711
- interface _PerfectionistSortImports_IsLineLength {
8712
- type: "line-length"
8713
- [k: string]: unknown | undefined
8714
- }
8715
8623
  // ----- perfectionist/sort-interfaces -----
8716
8624
  type PerfectionistSortInterfaces = {
8717
8625
 
@@ -9324,7 +9232,7 @@ type PerfectionistSortModules = []|[{
9324
9232
  })[]
9325
9233
  }]
9326
9234
  // ----- perfectionist/sort-named-exports -----
9327
- type PerfectionistSortNamedExports = []|[{
9235
+ type PerfectionistSortNamedExports = {
9328
9236
 
9329
9237
  fallbackSort?: {
9330
9238
 
@@ -9350,6 +9258,68 @@ type PerfectionistSortNamedExports = []|[{
9350
9258
 
9351
9259
  ignoreAlias?: boolean
9352
9260
 
9261
+ customGroups?: ({
9262
+
9263
+ newlinesInside?: ("always" | "never")
9264
+
9265
+ fallbackSort?: {
9266
+
9267
+ order?: ("asc" | "desc")
9268
+
9269
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9270
+ [k: string]: unknown | undefined
9271
+ }
9272
+
9273
+ groupName?: string
9274
+
9275
+ order?: ("asc" | "desc")
9276
+
9277
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9278
+ anyOf?: {
9279
+
9280
+ modifiers?: ("value" | "type")[]
9281
+
9282
+ selector?: "export"
9283
+
9284
+ elementNamePattern?: (({
9285
+ pattern?: string
9286
+ flags?: string
9287
+ } | string)[] | ({
9288
+ pattern?: string
9289
+ flags?: string
9290
+ } | string))
9291
+ }[]
9292
+ } | {
9293
+
9294
+ newlinesInside?: ("always" | "never")
9295
+
9296
+ fallbackSort?: {
9297
+
9298
+ order?: ("asc" | "desc")
9299
+
9300
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9301
+ [k: string]: unknown | undefined
9302
+ }
9303
+
9304
+ groupName?: string
9305
+
9306
+ order?: ("asc" | "desc")
9307
+
9308
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9309
+
9310
+ modifiers?: ("value" | "type")[]
9311
+
9312
+ selector?: "export"
9313
+
9314
+ elementNamePattern?: (({
9315
+ pattern?: string
9316
+ flags?: string
9317
+ } | string)[] | ({
9318
+ pattern?: string
9319
+ flags?: string
9320
+ } | string))
9321
+ })[]
9322
+
9353
9323
  partitionByComment?: (boolean | (({
9354
9324
  pattern?: string
9355
9325
  flags?: string
@@ -9374,9 +9344,16 @@ type PerfectionistSortNamedExports = []|[{
9374
9344
  })
9375
9345
 
9376
9346
  partitionByNewLine?: boolean
9377
- }]
9347
+
9348
+ newlinesBetween?: ("ignore" | "always" | "never")
9349
+
9350
+ groups?: (string | string[] | {
9351
+
9352
+ newlinesBetween?: ("ignore" | "always" | "never")
9353
+ })[]
9354
+ }[]
9378
9355
  // ----- perfectionist/sort-named-imports -----
9379
- type PerfectionistSortNamedImports = []|[{
9356
+ type PerfectionistSortNamedImports = {
9380
9357
 
9381
9358
  fallbackSort?: {
9382
9359
 
@@ -9402,6 +9379,68 @@ type PerfectionistSortNamedImports = []|[{
9402
9379
 
9403
9380
  ignoreAlias?: boolean
9404
9381
 
9382
+ customGroups?: ({
9383
+
9384
+ newlinesInside?: ("always" | "never")
9385
+
9386
+ fallbackSort?: {
9387
+
9388
+ order?: ("asc" | "desc")
9389
+
9390
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9391
+ [k: string]: unknown | undefined
9392
+ }
9393
+
9394
+ groupName?: string
9395
+
9396
+ order?: ("asc" | "desc")
9397
+
9398
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9399
+ anyOf?: {
9400
+
9401
+ modifiers?: ("value" | "type")[]
9402
+
9403
+ selector?: "import"
9404
+
9405
+ elementNamePattern?: (({
9406
+ pattern?: string
9407
+ flags?: string
9408
+ } | string)[] | ({
9409
+ pattern?: string
9410
+ flags?: string
9411
+ } | string))
9412
+ }[]
9413
+ } | {
9414
+
9415
+ newlinesInside?: ("always" | "never")
9416
+
9417
+ fallbackSort?: {
9418
+
9419
+ order?: ("asc" | "desc")
9420
+
9421
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9422
+ [k: string]: unknown | undefined
9423
+ }
9424
+
9425
+ groupName?: string
9426
+
9427
+ order?: ("asc" | "desc")
9428
+
9429
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
9430
+
9431
+ modifiers?: ("value" | "type")[]
9432
+
9433
+ selector?: "import"
9434
+
9435
+ elementNamePattern?: (({
9436
+ pattern?: string
9437
+ flags?: string
9438
+ } | string)[] | ({
9439
+ pattern?: string
9440
+ flags?: string
9441
+ } | string))
9442
+ })[]
9443
+
9405
9444
  partitionByComment?: (boolean | (({
9406
9445
  pattern?: string
9407
9446
  flags?: string
@@ -9426,7 +9465,14 @@ type PerfectionistSortNamedImports = []|[{
9426
9465
  })
9427
9466
 
9428
9467
  partitionByNewLine?: boolean
9429
- }]
9468
+
9469
+ newlinesBetween?: ("ignore" | "always" | "never")
9470
+
9471
+ groups?: (string | string[] | {
9472
+
9473
+ newlinesBetween?: ("ignore" | "always" | "never")
9474
+ })[]
9475
+ }[]
9430
9476
  // ----- perfectionist/sort-object-types -----
9431
9477
  type PerfectionistSortObjectTypes = {
9432
9478
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lichthagel/eslint-config",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Licht's ESLint config",
5
5
  "keywords": [
6
6
  "eslint",