@vinicunca/eslint-config 2.15.6 → 2.15.8

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.d.cts CHANGED
@@ -477,7 +477,7 @@ interface RuleOptions {
477
477
  */
478
478
  'default-case'?: Linter.RuleEntry<DefaultCase>
479
479
  /**
480
- * Enforce `default` clauses in switch statements to be last
480
+ * Enforce `default` clauses in `switch` statements to be last
481
481
  * @see https://eslint.org/docs/latest/rules/default-case-last
482
482
  */
483
483
  'default-case-last'?: Linter.RuleEntry<[]>
@@ -1466,31 +1466,31 @@ interface RuleOptions {
1466
1466
  */
1467
1467
  'logical-assignment-operators'?: Linter.RuleEntry<LogicalAssignmentOperators>
1468
1468
  /**
1469
- * Require languages for fenced code blocks.
1469
+ * Require languages for fenced code blocks
1470
1470
  */
1471
1471
  'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>
1472
1472
  /**
1473
- * Enforce heading levels increment by one.
1473
+ * Enforce heading levels increment by one
1474
1474
  */
1475
1475
  'markdown/heading-increment'?: Linter.RuleEntry<[]>
1476
1476
  /**
1477
- * Disallow duplicate headings in the same document.
1477
+ * Disallow duplicate headings in the same document
1478
1478
  */
1479
1479
  'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
1480
1480
  /**
1481
- * Disallow empty links.
1481
+ * Disallow empty links
1482
1482
  */
1483
1483
  'markdown/no-empty-links'?: Linter.RuleEntry<[]>
1484
1484
  /**
1485
- * Disallow HTML tags.
1485
+ * Disallow HTML tags
1486
1486
  */
1487
1487
  'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>
1488
1488
  /**
1489
- * Disallow invalid label references.
1489
+ * Disallow invalid label references
1490
1490
  */
1491
1491
  'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>
1492
1492
  /**
1493
- * Disallow missing label references.
1493
+ * Disallow missing label references
1494
1494
  */
1495
1495
  'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
1496
1496
  /**
@@ -5123,7 +5123,7 @@ interface RuleOptions {
5123
5123
  */
5124
5124
  'sonar/xpath'?: Linter.RuleEntry<[]>
5125
5125
  /**
5126
- * Enforce sorted import declarations within modules
5126
+ * Enforce sorted `import` declarations within modules
5127
5127
  * @see https://eslint.org/docs/latest/rules/sort-imports
5128
5128
  */
5129
5129
  'sort-imports'?: Linter.RuleEntry<SortImports>
@@ -6584,7 +6584,7 @@ interface RuleOptions {
6584
6584
  * Disallow using code marked as `@deprecated`
6585
6585
  * @see https://typescript-eslint.io/rules/no-deprecated
6586
6586
  */
6587
- 'ts/no-deprecated'?: Linter.RuleEntry<[]>
6587
+ 'ts/no-deprecated'?: Linter.RuleEntry<TsNoDeprecated>
6588
6588
  /**
6589
6589
  * Disallow duplicate class members
6590
6590
  * @see https://typescript-eslint.io/rules/no-dupe-class-members
@@ -6702,6 +6702,11 @@ interface RuleOptions {
6702
6702
  * @see https://typescript-eslint.io/rules/no-misused-promises
6703
6703
  */
6704
6704
  'ts/no-misused-promises'?: Linter.RuleEntry<TsNoMisusedPromises>
6705
+ /**
6706
+ * Disallow using the spread operator when it might cause unexpected behavior
6707
+ * @see https://typescript-eslint.io/rules/no-misused-spread
6708
+ */
6709
+ 'ts/no-misused-spread'?: Linter.RuleEntry<TsNoMisusedSpread>
6705
6710
  /**
6706
6711
  * Disallow enums from having both number and string members
6707
6712
  * @see https://typescript-eslint.io/rules/no-mixed-enums
@@ -11828,11 +11833,15 @@ type PaddingLineBetweenStatements = {
11828
11833
  // ----- perfectionist/sort-array-includes -----
11829
11834
  type PerfectionistSortArrayIncludes = {
11830
11835
 
11831
- partitionByComment?: (string[] | boolean | string | {
11832
- block?: (string[] | boolean | string)
11833
- line?: (string[] | boolean | string)
11834
- [k: string]: unknown | undefined
11835
- })
11836
+ specialCharacters?: ("remove" | "trim" | "keep")
11837
+
11838
+ ignoreCase?: boolean
11839
+
11840
+ alphabet?: string
11841
+
11842
+ locales?: (string | string[])
11843
+
11844
+ order?: ("asc" | "desc")
11836
11845
 
11837
11846
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
11838
11847
 
@@ -11871,34 +11880,36 @@ type PerfectionistSortArrayIncludes = {
11871
11880
 
11872
11881
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11873
11882
 
11874
- partitionByNewLine?: boolean
11875
-
11876
- specialCharacters?: ("remove" | "trim" | "keep")
11877
-
11878
- ignoreCase?: boolean
11883
+ partitionByComment?: (string[] | boolean | string | {
11884
+ block?: (string[] | boolean | string)
11885
+ line?: (string[] | boolean | string)
11886
+ [k: string]: unknown | undefined
11887
+ })
11879
11888
 
11880
- alphabet?: string
11889
+ partitionByNewLine?: boolean
11881
11890
 
11882
- locales?: (string | string[])
11891
+ newlinesBetween?: ("ignore" | "always" | "never")
11883
11892
 
11884
11893
  groups?: (string | string[] | {
11885
11894
 
11886
11895
  newlinesBetween?: ("ignore" | "always" | "never")
11887
11896
  [k: string]: unknown | undefined
11888
11897
  })[]
11889
-
11890
- order?: ("asc" | "desc")
11891
11898
  }[]
11892
11899
  // ----- perfectionist/sort-classes -----
11893
11900
  type PerfectionistSortClasses = []|[{
11894
11901
 
11895
- ignoreCallbackDependenciesPatterns?: string[]
11902
+ specialCharacters?: ("remove" | "trim" | "keep")
11896
11903
 
11897
- partitionByComment?: (string[] | boolean | string | {
11898
- block?: (string[] | boolean | string)
11899
- line?: (string[] | boolean | string)
11900
- [k: string]: unknown | undefined
11901
- })
11904
+ ignoreCase?: boolean
11905
+
11906
+ alphabet?: string
11907
+
11908
+ locales?: (string | string[])
11909
+
11910
+ order?: ("asc" | "desc")
11911
+
11912
+ ignoreCallbackDependenciesPatterns?: string[]
11902
11913
 
11903
11914
  customGroups?: ({
11904
11915
 
@@ -11911,14 +11922,14 @@ type PerfectionistSortClasses = []|[{
11911
11922
  newlinesInside?: ("always" | "never")
11912
11923
  anyOf?: {
11913
11924
 
11914
- elementValuePattern?: string
11915
-
11916
11925
  decoratorNamePattern?: string
11917
11926
 
11918
11927
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
11919
11928
 
11920
11929
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
11921
11930
 
11931
+ elementValuePattern?: string
11932
+
11922
11933
  elementNamePattern?: string
11923
11934
  }[]
11924
11935
  } | {
@@ -11931,47 +11942,47 @@ type PerfectionistSortClasses = []|[{
11931
11942
 
11932
11943
  newlinesInside?: ("always" | "never")
11933
11944
 
11934
- elementValuePattern?: string
11935
-
11936
11945
  decoratorNamePattern?: string
11937
11946
 
11938
11947
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
11939
11948
 
11940
11949
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
11941
11950
 
11951
+ elementValuePattern?: string
11952
+
11942
11953
  elementNamePattern?: string
11943
11954
  })[]
11944
11955
 
11945
- partitionByNewLine?: boolean
11956
+ partitionByComment?: (string[] | boolean | string | {
11957
+ block?: (string[] | boolean | string)
11958
+ line?: (string[] | boolean | string)
11959
+ [k: string]: unknown | undefined
11960
+ })
11946
11961
 
11947
- specialCharacters?: ("remove" | "trim" | "keep")
11962
+ partitionByNewLine?: boolean
11948
11963
 
11949
11964
  newlinesBetween?: ("ignore" | "always" | "never")
11950
11965
 
11951
- ignoreCase?: boolean
11952
-
11953
- alphabet?: string
11954
-
11955
11966
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
11956
11967
 
11957
- locales?: (string | string[])
11958
-
11959
11968
  groups?: (string | string[] | {
11960
11969
 
11961
11970
  newlinesBetween?: ("ignore" | "always" | "never")
11962
11971
  [k: string]: unknown | undefined
11963
11972
  })[]
11964
-
11965
- order?: ("asc" | "desc")
11966
11973
  }]
11967
11974
  // ----- perfectionist/sort-decorators -----
11968
11975
  type PerfectionistSortDecorators = []|[{
11969
11976
 
11970
- partitionByComment?: (string[] | boolean | string | {
11971
- block?: (string[] | boolean | string)
11972
- line?: (string[] | boolean | string)
11973
- [k: string]: unknown | undefined
11974
- })
11977
+ specialCharacters?: ("remove" | "trim" | "keep")
11978
+
11979
+ ignoreCase?: boolean
11980
+
11981
+ alphabet?: string
11982
+
11983
+ locales?: (string | string[])
11984
+
11985
+ order?: ("asc" | "desc")
11975
11986
 
11976
11987
  sortOnParameters?: boolean
11977
11988
 
@@ -11983,57 +11994,65 @@ type PerfectionistSortDecorators = []|[{
11983
11994
 
11984
11995
  sortOnClasses?: boolean
11985
11996
 
11986
- specialCharacters?: ("remove" | "trim" | "keep")
11997
+ partitionByComment?: (string[] | boolean | string | {
11998
+ block?: (string[] | boolean | string)
11999
+ line?: (string[] | boolean | string)
12000
+ [k: string]: unknown | undefined
12001
+ })
11987
12002
 
11988
12003
  customGroups?: {
11989
12004
  [k: string]: (string | string[]) | undefined
11990
12005
  }
11991
12006
 
11992
- ignoreCase?: boolean
11993
-
11994
- alphabet?: string
11995
-
11996
12007
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
11997
12008
 
11998
- locales?: (string | string[])
11999
-
12000
12009
  groups?: (string | string[] | {
12001
12010
 
12002
12011
  newlinesBetween?: ("ignore" | "always" | "never")
12003
12012
  [k: string]: unknown | undefined
12004
12013
  })[]
12005
-
12006
- order?: ("asc" | "desc")
12007
12014
  }]
12008
12015
  // ----- perfectionist/sort-enums -----
12009
12016
  type PerfectionistSortEnums = []|[{
12010
12017
 
12018
+ specialCharacters?: ("remove" | "trim" | "keep")
12019
+
12020
+ ignoreCase?: boolean
12021
+
12022
+ alphabet?: string
12023
+
12024
+ locales?: (string | string[])
12025
+
12026
+ order?: ("asc" | "desc")
12027
+
12028
+ forceNumericSort?: boolean
12029
+
12030
+ sortByValue?: boolean
12031
+
12011
12032
  partitionByComment?: (string[] | boolean | string | {
12012
12033
  block?: (string[] | boolean | string)
12013
12034
  line?: (string[] | boolean | string)
12014
12035
  [k: string]: unknown | undefined
12015
12036
  })
12016
12037
 
12017
- forceNumericSort?: boolean
12018
-
12019
- sortByValue?: boolean
12020
-
12021
12038
  partitionByNewLine?: boolean
12022
12039
 
12040
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12041
+ }]
12042
+ // ----- perfectionist/sort-exports -----
12043
+ type PerfectionistSortExports = []|[{
12044
+
12023
12045
  specialCharacters?: ("remove" | "trim" | "keep")
12024
12046
 
12025
12047
  ignoreCase?: boolean
12026
12048
 
12027
12049
  alphabet?: string
12028
12050
 
12029
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12030
-
12031
12051
  locales?: (string | string[])
12032
12052
 
12033
12053
  order?: ("asc" | "desc")
12034
- }]
12035
- // ----- perfectionist/sort-exports -----
12036
- type PerfectionistSortExports = []|[{
12054
+
12055
+ groupKind?: ("mixed" | "values-first" | "types-first")
12037
12056
 
12038
12057
  partitionByComment?: (string[] | boolean | string | {
12039
12058
  block?: (string[] | boolean | string)
@@ -12041,51 +12060,49 @@ type PerfectionistSortExports = []|[{
12041
12060
  [k: string]: unknown | undefined
12042
12061
  })
12043
12062
 
12044
- groupKind?: ("mixed" | "values-first" | "types-first")
12045
-
12046
12063
  partitionByNewLine?: boolean
12047
12064
 
12065
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12066
+ }]
12067
+ // ----- perfectionist/sort-heritage-clauses -----
12068
+ type PerfectionistSortHeritageClauses = []|[{
12069
+
12048
12070
  specialCharacters?: ("remove" | "trim" | "keep")
12049
12071
 
12050
12072
  ignoreCase?: boolean
12051
12073
 
12052
12074
  alphabet?: string
12053
12075
 
12054
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12055
-
12056
12076
  locales?: (string | string[])
12057
12077
 
12058
12078
  order?: ("asc" | "desc")
12059
- }]
12060
- // ----- perfectionist/sort-heritage-clauses -----
12061
- type PerfectionistSortHeritageClauses = []|[{
12062
-
12063
- specialCharacters?: ("remove" | "trim" | "keep")
12064
12079
 
12065
12080
  customGroups?: {
12066
12081
  [k: string]: (string | string[]) | undefined
12067
12082
  }
12068
12083
 
12069
- ignoreCase?: boolean
12070
-
12071
- alphabet?: string
12072
-
12073
12084
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
12074
12085
 
12075
- locales?: (string | string[])
12076
-
12077
12086
  groups?: (string | string[] | {
12078
12087
 
12079
12088
  newlinesBetween?: ("ignore" | "always" | "never")
12080
12089
  [k: string]: unknown | undefined
12081
12090
  })[]
12082
-
12083
- order?: ("asc" | "desc")
12084
12091
  }]
12085
12092
  // ----- perfectionist/sort-imports -----
12086
12093
  type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
12087
12094
  type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
12088
12095
 
12096
+ specialCharacters?: ("remove" | "trim" | "keep")
12097
+
12098
+ ignoreCase?: boolean
12099
+
12100
+ alphabet?: string
12101
+
12102
+ locales?: (string | string[])
12103
+
12104
+ order?: ("asc" | "desc")
12105
+
12089
12106
  customGroups?: {
12090
12107
 
12091
12108
  value?: {
@@ -12097,12 +12114,6 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
12097
12114
  }
12098
12115
  }
12099
12116
 
12100
- partitionByComment?: (string[] | boolean | string | {
12101
- block?: (string[] | boolean | string)
12102
- line?: (string[] | boolean | string)
12103
- [k: string]: unknown | undefined
12104
- })
12105
-
12106
12117
  internalPattern?: string[]
12107
12118
 
12108
12119
  maxLineLength?: number
@@ -12113,27 +12124,23 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
12113
12124
 
12114
12125
  tsconfigRootDir?: string
12115
12126
 
12116
- partitionByNewLine?: boolean
12127
+ partitionByComment?: (string[] | boolean | string | {
12128
+ block?: (string[] | boolean | string)
12129
+ line?: (string[] | boolean | string)
12130
+ [k: string]: unknown | undefined
12131
+ })
12117
12132
 
12118
- specialCharacters?: ("remove" | "trim" | "keep")
12133
+ partitionByNewLine?: boolean
12119
12134
 
12120
12135
  newlinesBetween?: ("ignore" | "always" | "never")
12121
12136
 
12122
- ignoreCase?: boolean
12123
-
12124
- alphabet?: string
12125
-
12126
12137
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
12127
12138
 
12128
- locales?: (string | string[])
12129
-
12130
12139
  groups?: (string | string[] | {
12131
12140
 
12132
12141
  newlinesBetween?: ("ignore" | "always" | "never")
12133
12142
  [k: string]: unknown | undefined
12134
12143
  })[]
12135
-
12136
- order?: ("asc" | "desc")
12137
12144
  })
12138
12145
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
12139
12146
  [k: string]: unknown | undefined
@@ -12145,17 +12152,21 @@ interface _PerfectionistSortImports_IsLineLength {
12145
12152
  // ----- perfectionist/sort-interfaces -----
12146
12153
  type PerfectionistSortInterfaces = {
12147
12154
 
12155
+ specialCharacters?: ("remove" | "trim" | "keep")
12156
+
12157
+ ignoreCase?: boolean
12158
+
12159
+ alphabet?: string
12160
+
12161
+ locales?: (string | string[])
12162
+
12163
+ order?: ("asc" | "desc")
12164
+
12148
12165
  ignorePattern?: string[]
12149
12166
  useConfigurationIf?: {
12150
12167
  allNamesMatchPattern?: string
12151
12168
  declarationMatchesPattern?: string
12152
12169
  }
12153
-
12154
- partitionByComment?: (string[] | boolean | string | {
12155
- block?: (string[] | boolean | string)
12156
- line?: (string[] | boolean | string)
12157
- [k: string]: unknown | undefined
12158
- })
12159
12170
  customGroups?: ({
12160
12171
  [k: string]: (string | string[]) | undefined
12161
12172
  } | ({
@@ -12196,29 +12207,35 @@ type PerfectionistSortInterfaces = {
12196
12207
 
12197
12208
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12198
12209
 
12199
- partitionByNewLine?: boolean
12210
+ partitionByComment?: (string[] | boolean | string | {
12211
+ block?: (string[] | boolean | string)
12212
+ line?: (string[] | boolean | string)
12213
+ [k: string]: unknown | undefined
12214
+ })
12200
12215
 
12201
- specialCharacters?: ("remove" | "trim" | "keep")
12216
+ partitionByNewLine?: boolean
12202
12217
 
12203
12218
  newlinesBetween?: ("ignore" | "always" | "never")
12204
12219
 
12205
- ignoreCase?: boolean
12206
-
12207
- alphabet?: string
12208
-
12209
- locales?: (string | string[])
12210
-
12211
12220
  groups?: (string | string[] | {
12212
12221
 
12213
12222
  newlinesBetween?: ("ignore" | "always" | "never")
12214
12223
  [k: string]: unknown | undefined
12215
12224
  })[]
12216
-
12217
- order?: ("asc" | "desc")
12218
12225
  }[]
12219
12226
  // ----- perfectionist/sort-intersection-types -----
12220
12227
  type PerfectionistSortIntersectionTypes = []|[{
12221
12228
 
12229
+ specialCharacters?: ("remove" | "trim" | "keep")
12230
+
12231
+ ignoreCase?: boolean
12232
+
12233
+ alphabet?: string
12234
+
12235
+ locales?: (string | string[])
12236
+
12237
+ order?: ("asc" | "desc")
12238
+
12222
12239
  partitionByComment?: (string[] | boolean | string | {
12223
12240
  block?: (string[] | boolean | string)
12224
12241
  line?: (string[] | boolean | string)
@@ -12227,55 +12244,88 @@ type PerfectionistSortIntersectionTypes = []|[{
12227
12244
 
12228
12245
  partitionByNewLine?: boolean
12229
12246
 
12230
- specialCharacters?: ("remove" | "trim" | "keep")
12231
-
12232
12247
  newlinesBetween?: ("ignore" | "always" | "never")
12233
12248
 
12234
- ignoreCase?: boolean
12235
-
12236
- alphabet?: string
12237
-
12238
12249
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
12239
12250
 
12240
- locales?: (string | string[])
12241
-
12242
12251
  groups?: (string | string[] | {
12243
12252
 
12244
12253
  newlinesBetween?: ("ignore" | "always" | "never")
12245
12254
  [k: string]: unknown | undefined
12246
12255
  })[]
12247
-
12248
- order?: ("asc" | "desc")
12249
12256
  }]
12250
12257
  // ----- perfectionist/sort-jsx-props -----
12251
12258
  type PerfectionistSortJsxProps = []|[{
12252
12259
 
12260
+ specialCharacters?: ("remove" | "trim" | "keep")
12261
+
12262
+ ignoreCase?: boolean
12263
+
12264
+ alphabet?: string
12265
+
12266
+ locales?: (string | string[])
12267
+
12268
+ order?: ("asc" | "desc")
12269
+
12253
12270
  ignorePattern?: string[]
12254
12271
 
12255
- specialCharacters?: ("remove" | "trim" | "keep")
12272
+ partitionByNewLine?: boolean
12273
+
12274
+ newlinesBetween?: ("ignore" | "always" | "never")
12256
12275
 
12257
12276
  customGroups?: {
12258
12277
  [k: string]: (string | string[]) | undefined
12259
12278
  }
12260
12279
 
12261
- ignoreCase?: boolean
12262
-
12263
- alphabet?: string
12264
-
12265
12280
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
12266
12281
 
12267
- locales?: (string | string[])
12268
-
12269
12282
  groups?: (string | string[] | {
12270
12283
 
12271
12284
  newlinesBetween?: ("ignore" | "always" | "never")
12272
12285
  [k: string]: unknown | undefined
12273
12286
  })[]
12274
-
12275
- order?: ("asc" | "desc")
12276
12287
  }]
12277
12288
  // ----- perfectionist/sort-maps -----
12278
- type PerfectionistSortMaps = []|[{
12289
+ type PerfectionistSortMaps = {
12290
+
12291
+ specialCharacters?: ("remove" | "trim" | "keep")
12292
+
12293
+ ignoreCase?: boolean
12294
+
12295
+ alphabet?: string
12296
+
12297
+ locales?: (string | string[])
12298
+
12299
+ order?: ("asc" | "desc")
12300
+
12301
+ customGroups?: ({
12302
+
12303
+ groupName?: string
12304
+
12305
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
12306
+
12307
+ order?: ("desc" | "asc")
12308
+
12309
+ newlinesInside?: ("always" | "never")
12310
+ anyOf?: {
12311
+
12312
+ elementNamePattern?: string
12313
+ }[]
12314
+ } | {
12315
+
12316
+ groupName?: string
12317
+
12318
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
12319
+
12320
+ order?: ("desc" | "asc")
12321
+
12322
+ newlinesInside?: ("always" | "never")
12323
+
12324
+ elementNamePattern?: string
12325
+ })[]
12326
+ useConfigurationIf?: {
12327
+ allNamesMatchPattern?: string
12328
+ }
12279
12329
 
12280
12330
  partitionByComment?: (string[] | boolean | string | {
12281
12331
  block?: (string[] | boolean | string)
@@ -12285,26 +12335,28 @@ type PerfectionistSortMaps = []|[{
12285
12335
 
12286
12336
  partitionByNewLine?: boolean
12287
12337
 
12338
+ newlinesBetween?: ("ignore" | "always" | "never")
12339
+
12340
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12341
+
12342
+ groups?: (string | string[] | {
12343
+
12344
+ newlinesBetween?: ("ignore" | "always" | "never")
12345
+ [k: string]: unknown | undefined
12346
+ })[]
12347
+ }[]
12348
+ // ----- perfectionist/sort-modules -----
12349
+ type PerfectionistSortModules = []|[{
12350
+
12288
12351
  specialCharacters?: ("remove" | "trim" | "keep")
12289
12352
 
12290
12353
  ignoreCase?: boolean
12291
12354
 
12292
12355
  alphabet?: string
12293
12356
 
12294
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12295
-
12296
12357
  locales?: (string | string[])
12297
12358
 
12298
12359
  order?: ("asc" | "desc")
12299
- }]
12300
- // ----- perfectionist/sort-modules -----
12301
- type PerfectionistSortModules = []|[{
12302
-
12303
- partitionByComment?: (string[] | boolean | string | {
12304
- block?: (string[] | boolean | string)
12305
- line?: (string[] | boolean | string)
12306
- [k: string]: unknown | undefined
12307
- })
12308
12360
 
12309
12361
  customGroups?: ({
12310
12362
 
@@ -12344,55 +12396,65 @@ type PerfectionistSortModules = []|[{
12344
12396
  elementNamePattern?: string
12345
12397
  })[]
12346
12398
 
12347
- partitionByNewLine?: boolean
12399
+ partitionByComment?: (string[] | boolean | string | {
12400
+ block?: (string[] | boolean | string)
12401
+ line?: (string[] | boolean | string)
12402
+ [k: string]: unknown | undefined
12403
+ })
12348
12404
 
12349
- specialCharacters?: ("remove" | "trim" | "keep")
12405
+ partitionByNewLine?: boolean
12350
12406
 
12351
12407
  newlinesBetween?: ("ignore" | "always" | "never")
12352
12408
 
12353
- ignoreCase?: boolean
12354
-
12355
- alphabet?: string
12356
-
12357
12409
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
12358
12410
 
12359
- locales?: (string | string[])
12360
-
12361
12411
  groups?: (string | string[] | {
12362
12412
 
12363
12413
  newlinesBetween?: ("ignore" | "always" | "never")
12364
12414
  [k: string]: unknown | undefined
12365
12415
  })[]
12366
-
12367
- order?: ("asc" | "desc")
12368
12416
  }]
12369
12417
  // ----- perfectionist/sort-named-exports -----
12370
12418
  type PerfectionistSortNamedExports = []|[{
12371
12419
 
12420
+ specialCharacters?: ("remove" | "trim" | "keep")
12421
+
12422
+ ignoreCase?: boolean
12423
+
12424
+ alphabet?: string
12425
+
12426
+ locales?: (string | string[])
12427
+
12428
+ order?: ("asc" | "desc")
12429
+
12430
+ groupKind?: ("mixed" | "values-first" | "types-first")
12431
+
12372
12432
  partitionByComment?: (string[] | boolean | string | {
12373
12433
  block?: (string[] | boolean | string)
12374
12434
  line?: (string[] | boolean | string)
12375
12435
  [k: string]: unknown | undefined
12376
12436
  })
12377
12437
 
12378
- groupKind?: ("mixed" | "values-first" | "types-first")
12379
-
12380
12438
  partitionByNewLine?: boolean
12381
12439
 
12440
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12441
+ }]
12442
+ // ----- perfectionist/sort-named-imports -----
12443
+ type PerfectionistSortNamedImports = []|[{
12444
+
12382
12445
  specialCharacters?: ("remove" | "trim" | "keep")
12383
12446
 
12384
12447
  ignoreCase?: boolean
12385
12448
 
12386
12449
  alphabet?: string
12387
12450
 
12388
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12389
-
12390
12451
  locales?: (string | string[])
12391
12452
 
12392
12453
  order?: ("asc" | "desc")
12393
- }]
12394
- // ----- perfectionist/sort-named-imports -----
12395
- type PerfectionistSortNamedImports = []|[{
12454
+
12455
+ groupKind?: ("mixed" | "values-first" | "types-first")
12456
+
12457
+ ignoreAlias?: boolean
12396
12458
 
12397
12459
  partitionByComment?: (string[] | boolean | string | {
12398
12460
  block?: (string[] | boolean | string)
@@ -12400,38 +12462,28 @@ type PerfectionistSortNamedImports = []|[{
12400
12462
  [k: string]: unknown | undefined
12401
12463
  })
12402
12464
 
12403
- groupKind?: ("mixed" | "values-first" | "types-first")
12404
-
12405
- ignoreAlias?: boolean
12406
-
12407
12465
  partitionByNewLine?: boolean
12408
12466
 
12467
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12468
+ }]
12469
+ // ----- perfectionist/sort-object-types -----
12470
+ type PerfectionistSortObjectTypes = {
12471
+
12409
12472
  specialCharacters?: ("remove" | "trim" | "keep")
12410
12473
 
12411
12474
  ignoreCase?: boolean
12412
12475
 
12413
12476
  alphabet?: string
12414
12477
 
12415
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12416
-
12417
12478
  locales?: (string | string[])
12418
12479
 
12419
12480
  order?: ("asc" | "desc")
12420
- }]
12421
- // ----- perfectionist/sort-object-types -----
12422
- type PerfectionistSortObjectTypes = {
12423
12481
 
12424
12482
  ignorePattern?: string[]
12425
12483
  useConfigurationIf?: {
12426
12484
  allNamesMatchPattern?: string
12427
12485
  declarationMatchesPattern?: string
12428
12486
  }
12429
-
12430
- partitionByComment?: (string[] | boolean | string | {
12431
- block?: (string[] | boolean | string)
12432
- line?: (string[] | boolean | string)
12433
- [k: string]: unknown | undefined
12434
- })
12435
12487
  customGroups?: ({
12436
12488
  [k: string]: (string | string[]) | undefined
12437
12489
  } | ({
@@ -12472,29 +12524,35 @@ type PerfectionistSortObjectTypes = {
12472
12524
 
12473
12525
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12474
12526
 
12475
- partitionByNewLine?: boolean
12527
+ partitionByComment?: (string[] | boolean | string | {
12528
+ block?: (string[] | boolean | string)
12529
+ line?: (string[] | boolean | string)
12530
+ [k: string]: unknown | undefined
12531
+ })
12476
12532
 
12477
- specialCharacters?: ("remove" | "trim" | "keep")
12533
+ partitionByNewLine?: boolean
12478
12534
 
12479
12535
  newlinesBetween?: ("ignore" | "always" | "never")
12480
12536
 
12481
- ignoreCase?: boolean
12482
-
12483
- alphabet?: string
12484
-
12485
- locales?: (string | string[])
12486
-
12487
12537
  groups?: (string | string[] | {
12488
12538
 
12489
12539
  newlinesBetween?: ("ignore" | "always" | "never")
12490
12540
  [k: string]: unknown | undefined
12491
12541
  })[]
12492
-
12493
- order?: ("asc" | "desc")
12494
12542
  }[]
12495
12543
  // ----- perfectionist/sort-objects -----
12496
12544
  type PerfectionistSortObjects = {
12497
12545
 
12546
+ specialCharacters?: ("remove" | "trim" | "keep")
12547
+
12548
+ ignoreCase?: boolean
12549
+
12550
+ alphabet?: string
12551
+
12552
+ locales?: (string | string[])
12553
+
12554
+ order?: ("asc" | "desc")
12555
+
12498
12556
  destructuredObjects?: (boolean | {
12499
12557
 
12500
12558
  groups?: boolean
@@ -12505,12 +12563,45 @@ type PerfectionistSortObjects = {
12505
12563
  allNamesMatchPattern?: string
12506
12564
  callingFunctionNamePattern?: string
12507
12565
  }
12508
-
12509
- partitionByComment?: (string[] | boolean | string | {
12510
- block?: (string[] | boolean | string)
12511
- line?: (string[] | boolean | string)
12512
- [k: string]: unknown | undefined
12513
- })
12566
+ customGroups?: ({
12567
+ [k: string]: (string | string[]) | undefined
12568
+ } | ({
12569
+
12570
+ groupName?: string
12571
+
12572
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
12573
+
12574
+ order?: ("desc" | "asc")
12575
+
12576
+ newlinesInside?: ("always" | "never")
12577
+ anyOf?: {
12578
+
12579
+ modifiers?: ("optional" | "required" | "multiline")[]
12580
+
12581
+ selector?: ("member" | "method" | "multiline" | "property")
12582
+
12583
+ elementValuePattern?: string
12584
+
12585
+ elementNamePattern?: string
12586
+ }[]
12587
+ } | {
12588
+
12589
+ groupName?: string
12590
+
12591
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
12592
+
12593
+ order?: ("desc" | "asc")
12594
+
12595
+ newlinesInside?: ("always" | "never")
12596
+
12597
+ modifiers?: ("optional" | "required" | "multiline")[]
12598
+
12599
+ selector?: ("member" | "method" | "multiline" | "property")
12600
+
12601
+ elementValuePattern?: string
12602
+
12603
+ elementNamePattern?: string
12604
+ })[])
12514
12605
 
12515
12606
  destructureOnly?: boolean
12516
12607
 
@@ -12520,38 +12611,34 @@ type PerfectionistSortObjects = {
12520
12611
 
12521
12612
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12522
12613
 
12523
- partitionByNewLine?: boolean
12614
+ partitionByComment?: (string[] | boolean | string | {
12615
+ block?: (string[] | boolean | string)
12616
+ line?: (string[] | boolean | string)
12617
+ [k: string]: unknown | undefined
12618
+ })
12524
12619
 
12525
- specialCharacters?: ("remove" | "trim" | "keep")
12620
+ partitionByNewLine?: boolean
12526
12621
 
12527
12622
  newlinesBetween?: ("ignore" | "always" | "never")
12528
12623
 
12529
- customGroups?: {
12530
- [k: string]: (string | string[]) | undefined
12531
- }
12532
-
12533
- ignoreCase?: boolean
12534
-
12535
- alphabet?: string
12536
-
12537
- locales?: (string | string[])
12538
-
12539
12624
  groups?: (string | string[] | {
12540
12625
 
12541
12626
  newlinesBetween?: ("ignore" | "always" | "never")
12542
12627
  [k: string]: unknown | undefined
12543
12628
  })[]
12544
-
12545
- order?: ("asc" | "desc")
12546
12629
  }[]
12547
12630
  // ----- perfectionist/sort-sets -----
12548
12631
  type PerfectionistSortSets = {
12549
12632
 
12550
- partitionByComment?: (string[] | boolean | string | {
12551
- block?: (string[] | boolean | string)
12552
- line?: (string[] | boolean | string)
12553
- [k: string]: unknown | undefined
12554
- })
12633
+ specialCharacters?: ("remove" | "trim" | "keep")
12634
+
12635
+ ignoreCase?: boolean
12636
+
12637
+ alphabet?: string
12638
+
12639
+ locales?: (string | string[])
12640
+
12641
+ order?: ("asc" | "desc")
12555
12642
 
12556
12643
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
12557
12644
 
@@ -12590,23 +12677,21 @@ type PerfectionistSortSets = {
12590
12677
 
12591
12678
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12592
12679
 
12593
- partitionByNewLine?: boolean
12594
-
12595
- specialCharacters?: ("remove" | "trim" | "keep")
12596
-
12597
- ignoreCase?: boolean
12680
+ partitionByComment?: (string[] | boolean | string | {
12681
+ block?: (string[] | boolean | string)
12682
+ line?: (string[] | boolean | string)
12683
+ [k: string]: unknown | undefined
12684
+ })
12598
12685
 
12599
- alphabet?: string
12686
+ partitionByNewLine?: boolean
12600
12687
 
12601
- locales?: (string | string[])
12688
+ newlinesBetween?: ("ignore" | "always" | "never")
12602
12689
 
12603
12690
  groups?: (string | string[] | {
12604
12691
 
12605
12692
  newlinesBetween?: ("ignore" | "always" | "never")
12606
12693
  [k: string]: unknown | undefined
12607
12694
  })[]
12608
-
12609
- order?: ("asc" | "desc")
12610
12695
  }[]
12611
12696
  // ----- perfectionist/sort-switch-case -----
12612
12697
  type PerfectionistSortSwitchCase = []|[{
@@ -12617,15 +12702,25 @@ type PerfectionistSortSwitchCase = []|[{
12617
12702
 
12618
12703
  alphabet?: string
12619
12704
 
12620
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12621
-
12622
12705
  locales?: (string | string[])
12623
12706
 
12624
12707
  order?: ("asc" | "desc")
12708
+
12709
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12625
12710
  }]
12626
12711
  // ----- perfectionist/sort-union-types -----
12627
12712
  type PerfectionistSortUnionTypes = []|[{
12628
12713
 
12714
+ specialCharacters?: ("remove" | "trim" | "keep")
12715
+
12716
+ ignoreCase?: boolean
12717
+
12718
+ alphabet?: string
12719
+
12720
+ locales?: (string | string[])
12721
+
12722
+ order?: ("asc" | "desc")
12723
+
12629
12724
  partitionByComment?: (string[] | boolean | string | {
12630
12725
  block?: (string[] | boolean | string)
12631
12726
  line?: (string[] | boolean | string)
@@ -12634,48 +12729,38 @@ type PerfectionistSortUnionTypes = []|[{
12634
12729
 
12635
12730
  partitionByNewLine?: boolean
12636
12731
 
12637
- specialCharacters?: ("remove" | "trim" | "keep")
12638
-
12639
12732
  newlinesBetween?: ("ignore" | "always" | "never")
12640
12733
 
12641
- ignoreCase?: boolean
12642
-
12643
- alphabet?: string
12644
-
12645
12734
  type?: ("alphabetical" | "natural" | "line-length" | "custom")
12646
12735
 
12647
- locales?: (string | string[])
12648
-
12649
12736
  groups?: (string | string[] | {
12650
12737
 
12651
12738
  newlinesBetween?: ("ignore" | "always" | "never")
12652
12739
  [k: string]: unknown | undefined
12653
12740
  })[]
12654
-
12655
- order?: ("asc" | "desc")
12656
12741
  }]
12657
12742
  // ----- perfectionist/sort-variable-declarations -----
12658
12743
  type PerfectionistSortVariableDeclarations = []|[{
12659
12744
 
12660
- partitionByComment?: (string[] | boolean | string | {
12661
- block?: (string[] | boolean | string)
12662
- line?: (string[] | boolean | string)
12663
- [k: string]: unknown | undefined
12664
- })
12665
-
12666
- partitionByNewLine?: boolean
12667
-
12668
12745
  specialCharacters?: ("remove" | "trim" | "keep")
12669
12746
 
12670
12747
  ignoreCase?: boolean
12671
12748
 
12672
12749
  alphabet?: string
12673
12750
 
12674
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12675
-
12676
12751
  locales?: (string | string[])
12677
12752
 
12678
12753
  order?: ("asc" | "desc")
12754
+
12755
+ partitionByComment?: (string[] | boolean | string | {
12756
+ block?: (string[] | boolean | string)
12757
+ line?: (string[] | boolean | string)
12758
+ [k: string]: unknown | undefined
12759
+ })
12760
+
12761
+ partitionByNewLine?: boolean
12762
+
12763
+ type?: ("alphabetical" | "natural" | "line-length" | "custom")
12679
12764
  }]
12680
12765
  // ----- prefer-arrow-callback -----
12681
12766
  type PreferArrowCallback = []|[{
@@ -13714,6 +13799,7 @@ type StyleKeySpacing = []|[({
13714
13799
  mode?: ("strict" | "minimum")
13715
13800
  beforeColon?: boolean
13716
13801
  afterColon?: boolean
13802
+ ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
13717
13803
  } | {
13718
13804
  singleLine?: {
13719
13805
  mode?: ("strict" | "minimum")
@@ -14229,6 +14315,7 @@ type StyleNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
14229
14315
  enforceForNewInMemberExpressions?: boolean
14230
14316
  enforceForFunctionPrototypeMethods?: boolean
14231
14317
  allowParensAfterCommentPattern?: string
14318
+ nestedConditionalExpressions?: boolean
14232
14319
  }])
14233
14320
  // ----- style/no-mixed-operators -----
14234
14321
  type StyleNoMixedOperators = []|[{
@@ -14326,14 +14413,14 @@ type StyleOperatorLinebreak = []|[(("after" | "before" | "none") | null)]|[(("af
14326
14413
  }
14327
14414
  }]
14328
14415
  // ----- style/padded-blocks -----
14329
- type StylePaddedBlocks = []|[(("always" | "never") | {
14330
- blocks?: ("always" | "never")
14331
- switches?: ("always" | "never")
14332
- classes?: ("always" | "never")
14333
- })]|[(("always" | "never") | {
14334
- blocks?: ("always" | "never")
14335
- switches?: ("always" | "never")
14336
- classes?: ("always" | "never")
14416
+ type StylePaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
14417
+ blocks?: ("always" | "never" | "start" | "end")
14418
+ switches?: ("always" | "never" | "start" | "end")
14419
+ classes?: ("always" | "never" | "start" | "end")
14420
+ })]|[(("always" | "never" | "start" | "end") | {
14421
+ blocks?: ("always" | "never" | "start" | "end")
14422
+ switches?: ("always" | "never" | "start" | "end")
14423
+ classes?: ("always" | "never" | "start" | "end")
14337
14424
  }), {
14338
14425
  allowSingleLineBlocks?: boolean
14339
14426
  }]
@@ -14891,6 +14978,8 @@ type TsConsistentTypeAssertions = []|[({
14891
14978
  assertionStyle: "never"
14892
14979
  } | {
14893
14980
 
14981
+ arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
14982
+
14894
14983
  assertionStyle?: ("as" | "angle-bracket")
14895
14984
 
14896
14985
  objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
@@ -15347,6 +15436,22 @@ type TsNoConfusingVoidExpression = []|[{
15347
15436
 
15348
15437
  ignoreVoidReturningFunctions?: boolean
15349
15438
  }]
15439
+ // ----- ts/no-deprecated -----
15440
+ type TsNoDeprecated = []|[{
15441
+
15442
+ allow?: (string | {
15443
+ from: "file"
15444
+ name: (string | [string, ...(string)[]])
15445
+ path?: string
15446
+ } | {
15447
+ from: "lib"
15448
+ name: (string | [string, ...(string)[]])
15449
+ } | {
15450
+ from: "package"
15451
+ name: (string | [string, ...(string)[]])
15452
+ package: string
15453
+ })[]
15454
+ }]
15350
15455
  // ----- ts/no-duplicate-type-constituents -----
15351
15456
  type TsNoDuplicateTypeConstituents = []|[{
15352
15457
 
@@ -15488,6 +15593,22 @@ type TsNoMisusedPromises = []|[{
15488
15593
  variables?: boolean
15489
15594
  })
15490
15595
  }]
15596
+ // ----- ts/no-misused-spread -----
15597
+ type TsNoMisusedSpread = []|[{
15598
+
15599
+ allow?: (string | {
15600
+ from: "file"
15601
+ name: (string | [string, ...(string)[]])
15602
+ path?: string
15603
+ } | {
15604
+ from: "lib"
15605
+ name: (string | [string, ...(string)[]])
15606
+ } | {
15607
+ from: "package"
15608
+ name: (string | [string, ...(string)[]])
15609
+ package: string
15610
+ })[]
15611
+ }]
15491
15612
  // ----- ts/no-namespace -----
15492
15613
  type TsNoNamespace = []|[{
15493
15614
 
@@ -15563,7 +15684,7 @@ type TsNoShadow = []|[{
15563
15684
 
15564
15685
  builtinGlobals?: boolean
15565
15686
 
15566
- hoist?: ("all" | "functions" | "never")
15687
+ hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
15567
15688
 
15568
15689
  ignoreFunctionTypeParameterNameValueShadow?: boolean
15569
15690
 
@@ -16476,6 +16597,7 @@ type VueKeySpacing = []|[({
16476
16597
  mode?: ("strict" | "minimum")
16477
16598
  beforeColon?: boolean
16478
16599
  afterColon?: boolean
16600
+ ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
16479
16601
  } | {
16480
16602
  singleLine?: {
16481
16603
  mode?: ("strict" | "minimum")
@@ -17002,6 +17124,7 @@ type VueNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
17002
17124
  enforceForNewInMemberExpressions?: boolean
17003
17125
  enforceForFunctionPrototypeMethods?: boolean
17004
17126
  allowParensAfterCommentPattern?: string
17127
+ nestedConditionalExpressions?: boolean
17005
17128
  }])
17006
17129
  // ----- vue/no-irregular-whitespace -----
17007
17130
  type VueNoIrregularWhitespace = []|[{