@vinicunca/eslint-config 2.15.5 → 2.15.7
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 +4 -4
- package/dist/index.d.cts +231 -45
- package/dist/index.d.ts +231 -45
- package/dist/index.js +3 -3
- package/package.json +17 -17
package/dist/index.cjs
CHANGED
|
@@ -112,23 +112,23 @@ __export(src_exports, {
|
|
|
112
112
|
});
|
|
113
113
|
module.exports = __toCommonJS(src_exports);
|
|
114
114
|
|
|
115
|
-
// ../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.
|
|
115
|
+
// ../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.5.1_tsx@4.19.2_typescript@5.7.3_yaml@2.6.1/node_modules/tsup/assets/cjs_shims.js
|
|
116
116
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
117
117
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
118
118
|
|
|
119
|
-
// ../node_modules/.pnpm/@vinicunca+perkakas@1.2.
|
|
119
|
+
// ../node_modules/.pnpm/@vinicunca+perkakas@1.2.3/node_modules/@vinicunca/perkakas/dist/chunk-6AFNPQW2.js
|
|
120
120
|
function r(o) {
|
|
121
121
|
if (typeof o != "object" || o === null) return false;
|
|
122
122
|
let e3 = Object.getPrototypeOf(o);
|
|
123
123
|
return e3 === null || e3 === Object.prototype;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
// ../node_modules/.pnpm/@vinicunca+perkakas@1.2.
|
|
126
|
+
// ../node_modules/.pnpm/@vinicunca+perkakas@1.2.3/node_modules/@vinicunca/perkakas/dist/chunk-Q2HW4RVT.js
|
|
127
127
|
function e(r2) {
|
|
128
128
|
return typeof r2 == "number" && !Number.isNaN(r2);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
// ../node_modules/.pnpm/@vinicunca+perkakas@1.2.
|
|
131
|
+
// ../node_modules/.pnpm/@vinicunca+perkakas@1.2.3/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
|
|
132
132
|
function e2(o) {
|
|
133
133
|
return typeof o == "boolean";
|
|
134
134
|
}
|
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<[]>
|
|
@@ -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>
|
|
@@ -6175,7 +6175,7 @@ interface RuleOptions {
|
|
|
6175
6175
|
*/
|
|
6176
6176
|
'test/padding-around-expect-groups'?: Linter.RuleEntry<[]>
|
|
6177
6177
|
/**
|
|
6178
|
-
* Enforce padding around
|
|
6178
|
+
* Enforce padding around `test` blocks
|
|
6179
6179
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
6180
6180
|
*/
|
|
6181
6181
|
'test/padding-around-test-blocks'?: Linter.RuleEntry<[]>
|
|
@@ -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,7 +11833,11 @@ type PaddingLineBetweenStatements = {
|
|
|
11828
11833
|
// ----- perfectionist/sort-array-includes -----
|
|
11829
11834
|
type PerfectionistSortArrayIncludes = {
|
|
11830
11835
|
|
|
11831
|
-
partitionByComment?: (string[] | boolean | string
|
|
11836
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
11837
|
+
block?: (string[] | boolean | string)
|
|
11838
|
+
line?: (string[] | boolean | string)
|
|
11839
|
+
[k: string]: unknown | undefined
|
|
11840
|
+
})
|
|
11832
11841
|
|
|
11833
11842
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
11834
11843
|
|
|
@@ -11839,6 +11848,8 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11839
11848
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
11840
11849
|
|
|
11841
11850
|
order?: ("desc" | "asc")
|
|
11851
|
+
|
|
11852
|
+
newlinesInside?: ("always" | "never")
|
|
11842
11853
|
anyOf?: {
|
|
11843
11854
|
|
|
11844
11855
|
selector?: ("literal" | "spread")
|
|
@@ -11853,6 +11864,8 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11853
11864
|
|
|
11854
11865
|
order?: ("desc" | "asc")
|
|
11855
11866
|
|
|
11867
|
+
newlinesInside?: ("always" | "never")
|
|
11868
|
+
|
|
11856
11869
|
selector?: ("literal" | "spread")
|
|
11857
11870
|
|
|
11858
11871
|
elementNamePattern?: string
|
|
@@ -11873,7 +11886,11 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11873
11886
|
|
|
11874
11887
|
locales?: (string | string[])
|
|
11875
11888
|
|
|
11876
|
-
groups?: (string | string[]
|
|
11889
|
+
groups?: (string | string[] | {
|
|
11890
|
+
|
|
11891
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
11892
|
+
[k: string]: unknown | undefined
|
|
11893
|
+
})[]
|
|
11877
11894
|
|
|
11878
11895
|
order?: ("asc" | "desc")
|
|
11879
11896
|
}[]
|
|
@@ -11882,7 +11899,11 @@ type PerfectionistSortClasses = []|[{
|
|
|
11882
11899
|
|
|
11883
11900
|
ignoreCallbackDependenciesPatterns?: string[]
|
|
11884
11901
|
|
|
11885
|
-
partitionByComment?: (string[] | boolean | string
|
|
11902
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
11903
|
+
block?: (string[] | boolean | string)
|
|
11904
|
+
line?: (string[] | boolean | string)
|
|
11905
|
+
[k: string]: unknown | undefined
|
|
11906
|
+
})
|
|
11886
11907
|
|
|
11887
11908
|
customGroups?: ({
|
|
11888
11909
|
|
|
@@ -11891,6 +11912,8 @@ type PerfectionistSortClasses = []|[{
|
|
|
11891
11912
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
11892
11913
|
|
|
11893
11914
|
order?: ("desc" | "asc")
|
|
11915
|
+
|
|
11916
|
+
newlinesInside?: ("always" | "never")
|
|
11894
11917
|
anyOf?: {
|
|
11895
11918
|
|
|
11896
11919
|
elementValuePattern?: string
|
|
@@ -11911,6 +11934,8 @@ type PerfectionistSortClasses = []|[{
|
|
|
11911
11934
|
|
|
11912
11935
|
order?: ("desc" | "asc")
|
|
11913
11936
|
|
|
11937
|
+
newlinesInside?: ("always" | "never")
|
|
11938
|
+
|
|
11914
11939
|
elementValuePattern?: string
|
|
11915
11940
|
|
|
11916
11941
|
decoratorNamePattern?: string
|
|
@@ -11936,14 +11961,22 @@ type PerfectionistSortClasses = []|[{
|
|
|
11936
11961
|
|
|
11937
11962
|
locales?: (string | string[])
|
|
11938
11963
|
|
|
11939
|
-
groups?: (string | string[]
|
|
11964
|
+
groups?: (string | string[] | {
|
|
11965
|
+
|
|
11966
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
11967
|
+
[k: string]: unknown | undefined
|
|
11968
|
+
})[]
|
|
11940
11969
|
|
|
11941
11970
|
order?: ("asc" | "desc")
|
|
11942
11971
|
}]
|
|
11943
11972
|
// ----- perfectionist/sort-decorators -----
|
|
11944
11973
|
type PerfectionistSortDecorators = []|[{
|
|
11945
11974
|
|
|
11946
|
-
partitionByComment?: (string[] | boolean | string
|
|
11975
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
11976
|
+
block?: (string[] | boolean | string)
|
|
11977
|
+
line?: (string[] | boolean | string)
|
|
11978
|
+
[k: string]: unknown | undefined
|
|
11979
|
+
})
|
|
11947
11980
|
|
|
11948
11981
|
sortOnParameters?: boolean
|
|
11949
11982
|
|
|
@@ -11969,14 +12002,22 @@ type PerfectionistSortDecorators = []|[{
|
|
|
11969
12002
|
|
|
11970
12003
|
locales?: (string | string[])
|
|
11971
12004
|
|
|
11972
|
-
groups?: (string | string[]
|
|
12005
|
+
groups?: (string | string[] | {
|
|
12006
|
+
|
|
12007
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12008
|
+
[k: string]: unknown | undefined
|
|
12009
|
+
})[]
|
|
11973
12010
|
|
|
11974
12011
|
order?: ("asc" | "desc")
|
|
11975
12012
|
}]
|
|
11976
12013
|
// ----- perfectionist/sort-enums -----
|
|
11977
12014
|
type PerfectionistSortEnums = []|[{
|
|
11978
12015
|
|
|
11979
|
-
partitionByComment?: (string[] | boolean | string
|
|
12016
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
12017
|
+
block?: (string[] | boolean | string)
|
|
12018
|
+
line?: (string[] | boolean | string)
|
|
12019
|
+
[k: string]: unknown | undefined
|
|
12020
|
+
})
|
|
11980
12021
|
|
|
11981
12022
|
forceNumericSort?: boolean
|
|
11982
12023
|
|
|
@@ -11999,7 +12040,11 @@ type PerfectionistSortEnums = []|[{
|
|
|
11999
12040
|
// ----- perfectionist/sort-exports -----
|
|
12000
12041
|
type PerfectionistSortExports = []|[{
|
|
12001
12042
|
|
|
12002
|
-
partitionByComment?: (string[] | boolean | string
|
|
12043
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
12044
|
+
block?: (string[] | boolean | string)
|
|
12045
|
+
line?: (string[] | boolean | string)
|
|
12046
|
+
[k: string]: unknown | undefined
|
|
12047
|
+
})
|
|
12003
12048
|
|
|
12004
12049
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
12005
12050
|
|
|
@@ -12034,7 +12079,11 @@ type PerfectionistSortHeritageClauses = []|[{
|
|
|
12034
12079
|
|
|
12035
12080
|
locales?: (string | string[])
|
|
12036
12081
|
|
|
12037
|
-
groups?: (string | string[]
|
|
12082
|
+
groups?: (string | string[] | {
|
|
12083
|
+
|
|
12084
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12085
|
+
[k: string]: unknown | undefined
|
|
12086
|
+
})[]
|
|
12038
12087
|
|
|
12039
12088
|
order?: ("asc" | "desc")
|
|
12040
12089
|
}]
|
|
@@ -12053,7 +12102,11 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
12053
12102
|
}
|
|
12054
12103
|
}
|
|
12055
12104
|
|
|
12056
|
-
partitionByComment?: (string[] | boolean | string
|
|
12105
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
12106
|
+
block?: (string[] | boolean | string)
|
|
12107
|
+
line?: (string[] | boolean | string)
|
|
12108
|
+
[k: string]: unknown | undefined
|
|
12109
|
+
})
|
|
12057
12110
|
|
|
12058
12111
|
internalPattern?: string[]
|
|
12059
12112
|
|
|
@@ -12079,7 +12132,11 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
12079
12132
|
|
|
12080
12133
|
locales?: (string | string[])
|
|
12081
12134
|
|
|
12082
|
-
groups?: (string | string[]
|
|
12135
|
+
groups?: (string | string[] | {
|
|
12136
|
+
|
|
12137
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12138
|
+
[k: string]: unknown | undefined
|
|
12139
|
+
})[]
|
|
12083
12140
|
|
|
12084
12141
|
order?: ("asc" | "desc")
|
|
12085
12142
|
})
|
|
@@ -12099,7 +12156,11 @@ type PerfectionistSortInterfaces = {
|
|
|
12099
12156
|
declarationMatchesPattern?: string
|
|
12100
12157
|
}
|
|
12101
12158
|
|
|
12102
|
-
partitionByComment?: (string[] | boolean | string
|
|
12159
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
12160
|
+
block?: (string[] | boolean | string)
|
|
12161
|
+
line?: (string[] | boolean | string)
|
|
12162
|
+
[k: string]: unknown | undefined
|
|
12163
|
+
})
|
|
12103
12164
|
customGroups?: ({
|
|
12104
12165
|
[k: string]: (string | string[]) | undefined
|
|
12105
12166
|
} | ({
|
|
@@ -12109,6 +12170,8 @@ type PerfectionistSortInterfaces = {
|
|
|
12109
12170
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
12110
12171
|
|
|
12111
12172
|
order?: ("desc" | "asc")
|
|
12173
|
+
|
|
12174
|
+
newlinesInside?: ("always" | "never")
|
|
12112
12175
|
anyOf?: {
|
|
12113
12176
|
|
|
12114
12177
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
@@ -12125,6 +12188,8 @@ type PerfectionistSortInterfaces = {
|
|
|
12125
12188
|
|
|
12126
12189
|
order?: ("desc" | "asc")
|
|
12127
12190
|
|
|
12191
|
+
newlinesInside?: ("always" | "never")
|
|
12192
|
+
|
|
12128
12193
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
12129
12194
|
|
|
12130
12195
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
@@ -12148,14 +12213,22 @@ type PerfectionistSortInterfaces = {
|
|
|
12148
12213
|
|
|
12149
12214
|
locales?: (string | string[])
|
|
12150
12215
|
|
|
12151
|
-
groups?: (string | string[]
|
|
12216
|
+
groups?: (string | string[] | {
|
|
12217
|
+
|
|
12218
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12219
|
+
[k: string]: unknown | undefined
|
|
12220
|
+
})[]
|
|
12152
12221
|
|
|
12153
12222
|
order?: ("asc" | "desc")
|
|
12154
12223
|
}[]
|
|
12155
12224
|
// ----- perfectionist/sort-intersection-types -----
|
|
12156
12225
|
type PerfectionistSortIntersectionTypes = []|[{
|
|
12157
12226
|
|
|
12158
|
-
partitionByComment?: (string[] | boolean | string
|
|
12227
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
12228
|
+
block?: (string[] | boolean | string)
|
|
12229
|
+
line?: (string[] | boolean | string)
|
|
12230
|
+
[k: string]: unknown | undefined
|
|
12231
|
+
})
|
|
12159
12232
|
|
|
12160
12233
|
partitionByNewLine?: boolean
|
|
12161
12234
|
|
|
@@ -12171,7 +12244,11 @@ type PerfectionistSortIntersectionTypes = []|[{
|
|
|
12171
12244
|
|
|
12172
12245
|
locales?: (string | string[])
|
|
12173
12246
|
|
|
12174
|
-
groups?: (string | string[]
|
|
12247
|
+
groups?: (string | string[] | {
|
|
12248
|
+
|
|
12249
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12250
|
+
[k: string]: unknown | undefined
|
|
12251
|
+
})[]
|
|
12175
12252
|
|
|
12176
12253
|
order?: ("asc" | "desc")
|
|
12177
12254
|
}]
|
|
@@ -12194,14 +12271,22 @@ type PerfectionistSortJsxProps = []|[{
|
|
|
12194
12271
|
|
|
12195
12272
|
locales?: (string | string[])
|
|
12196
12273
|
|
|
12197
|
-
groups?: (string | string[]
|
|
12274
|
+
groups?: (string | string[] | {
|
|
12275
|
+
|
|
12276
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12277
|
+
[k: string]: unknown | undefined
|
|
12278
|
+
})[]
|
|
12198
12279
|
|
|
12199
12280
|
order?: ("asc" | "desc")
|
|
12200
12281
|
}]
|
|
12201
12282
|
// ----- perfectionist/sort-maps -----
|
|
12202
12283
|
type PerfectionistSortMaps = []|[{
|
|
12203
12284
|
|
|
12204
|
-
partitionByComment?: (string[] | boolean | string
|
|
12285
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
12286
|
+
block?: (string[] | boolean | string)
|
|
12287
|
+
line?: (string[] | boolean | string)
|
|
12288
|
+
[k: string]: unknown | undefined
|
|
12289
|
+
})
|
|
12205
12290
|
|
|
12206
12291
|
partitionByNewLine?: boolean
|
|
12207
12292
|
|
|
@@ -12220,7 +12305,11 @@ type PerfectionistSortMaps = []|[{
|
|
|
12220
12305
|
// ----- perfectionist/sort-modules -----
|
|
12221
12306
|
type PerfectionistSortModules = []|[{
|
|
12222
12307
|
|
|
12223
|
-
partitionByComment?: (string[] | boolean | string
|
|
12308
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
12309
|
+
block?: (string[] | boolean | string)
|
|
12310
|
+
line?: (string[] | boolean | string)
|
|
12311
|
+
[k: string]: unknown | undefined
|
|
12312
|
+
})
|
|
12224
12313
|
|
|
12225
12314
|
customGroups?: ({
|
|
12226
12315
|
|
|
@@ -12229,6 +12318,8 @@ type PerfectionistSortModules = []|[{
|
|
|
12229
12318
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
12230
12319
|
|
|
12231
12320
|
order?: ("desc" | "asc")
|
|
12321
|
+
|
|
12322
|
+
newlinesInside?: ("always" | "never")
|
|
12232
12323
|
anyOf?: {
|
|
12233
12324
|
|
|
12234
12325
|
decoratorNamePattern?: string
|
|
@@ -12247,6 +12338,8 @@ type PerfectionistSortModules = []|[{
|
|
|
12247
12338
|
|
|
12248
12339
|
order?: ("desc" | "asc")
|
|
12249
12340
|
|
|
12341
|
+
newlinesInside?: ("always" | "never")
|
|
12342
|
+
|
|
12250
12343
|
decoratorNamePattern?: string
|
|
12251
12344
|
|
|
12252
12345
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
@@ -12270,14 +12363,22 @@ type PerfectionistSortModules = []|[{
|
|
|
12270
12363
|
|
|
12271
12364
|
locales?: (string | string[])
|
|
12272
12365
|
|
|
12273
|
-
groups?: (string | string[]
|
|
12366
|
+
groups?: (string | string[] | {
|
|
12367
|
+
|
|
12368
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12369
|
+
[k: string]: unknown | undefined
|
|
12370
|
+
})[]
|
|
12274
12371
|
|
|
12275
12372
|
order?: ("asc" | "desc")
|
|
12276
12373
|
}]
|
|
12277
12374
|
// ----- perfectionist/sort-named-exports -----
|
|
12278
12375
|
type PerfectionistSortNamedExports = []|[{
|
|
12279
12376
|
|
|
12280
|
-
partitionByComment?: (string[] | boolean | string
|
|
12377
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
12378
|
+
block?: (string[] | boolean | string)
|
|
12379
|
+
line?: (string[] | boolean | string)
|
|
12380
|
+
[k: string]: unknown | undefined
|
|
12381
|
+
})
|
|
12281
12382
|
|
|
12282
12383
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
12283
12384
|
|
|
@@ -12298,7 +12399,11 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
12298
12399
|
// ----- perfectionist/sort-named-imports -----
|
|
12299
12400
|
type PerfectionistSortNamedImports = []|[{
|
|
12300
12401
|
|
|
12301
|
-
partitionByComment?: (string[] | boolean | string
|
|
12402
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
12403
|
+
block?: (string[] | boolean | string)
|
|
12404
|
+
line?: (string[] | boolean | string)
|
|
12405
|
+
[k: string]: unknown | undefined
|
|
12406
|
+
})
|
|
12302
12407
|
|
|
12303
12408
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
12304
12409
|
|
|
@@ -12327,7 +12432,11 @@ type PerfectionistSortObjectTypes = {
|
|
|
12327
12432
|
declarationMatchesPattern?: string
|
|
12328
12433
|
}
|
|
12329
12434
|
|
|
12330
|
-
partitionByComment?: (string[] | boolean | string
|
|
12435
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
12436
|
+
block?: (string[] | boolean | string)
|
|
12437
|
+
line?: (string[] | boolean | string)
|
|
12438
|
+
[k: string]: unknown | undefined
|
|
12439
|
+
})
|
|
12331
12440
|
customGroups?: ({
|
|
12332
12441
|
[k: string]: (string | string[]) | undefined
|
|
12333
12442
|
} | ({
|
|
@@ -12337,6 +12446,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
12337
12446
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
12338
12447
|
|
|
12339
12448
|
order?: ("desc" | "asc")
|
|
12449
|
+
|
|
12450
|
+
newlinesInside?: ("always" | "never")
|
|
12340
12451
|
anyOf?: {
|
|
12341
12452
|
|
|
12342
12453
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
@@ -12353,6 +12464,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
12353
12464
|
|
|
12354
12465
|
order?: ("desc" | "asc")
|
|
12355
12466
|
|
|
12467
|
+
newlinesInside?: ("always" | "never")
|
|
12468
|
+
|
|
12356
12469
|
modifiers?: ("optional" | "required" | "multiline")[]
|
|
12357
12470
|
|
|
12358
12471
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
@@ -12376,7 +12489,11 @@ type PerfectionistSortObjectTypes = {
|
|
|
12376
12489
|
|
|
12377
12490
|
locales?: (string | string[])
|
|
12378
12491
|
|
|
12379
|
-
groups?: (string | string[]
|
|
12492
|
+
groups?: (string | string[] | {
|
|
12493
|
+
|
|
12494
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12495
|
+
[k: string]: unknown | undefined
|
|
12496
|
+
})[]
|
|
12380
12497
|
|
|
12381
12498
|
order?: ("asc" | "desc")
|
|
12382
12499
|
}[]
|
|
@@ -12394,7 +12511,11 @@ type PerfectionistSortObjects = {
|
|
|
12394
12511
|
callingFunctionNamePattern?: string
|
|
12395
12512
|
}
|
|
12396
12513
|
|
|
12397
|
-
partitionByComment?: (string[] | boolean | string
|
|
12514
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
12515
|
+
block?: (string[] | boolean | string)
|
|
12516
|
+
line?: (string[] | boolean | string)
|
|
12517
|
+
[k: string]: unknown | undefined
|
|
12518
|
+
})
|
|
12398
12519
|
|
|
12399
12520
|
destructureOnly?: boolean
|
|
12400
12521
|
|
|
@@ -12420,14 +12541,22 @@ type PerfectionistSortObjects = {
|
|
|
12420
12541
|
|
|
12421
12542
|
locales?: (string | string[])
|
|
12422
12543
|
|
|
12423
|
-
groups?: (string | string[]
|
|
12544
|
+
groups?: (string | string[] | {
|
|
12545
|
+
|
|
12546
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12547
|
+
[k: string]: unknown | undefined
|
|
12548
|
+
})[]
|
|
12424
12549
|
|
|
12425
12550
|
order?: ("asc" | "desc")
|
|
12426
12551
|
}[]
|
|
12427
12552
|
// ----- perfectionist/sort-sets -----
|
|
12428
12553
|
type PerfectionistSortSets = {
|
|
12429
12554
|
|
|
12430
|
-
partitionByComment?: (string[] | boolean | string
|
|
12555
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
12556
|
+
block?: (string[] | boolean | string)
|
|
12557
|
+
line?: (string[] | boolean | string)
|
|
12558
|
+
[k: string]: unknown | undefined
|
|
12559
|
+
})
|
|
12431
12560
|
|
|
12432
12561
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
12433
12562
|
|
|
@@ -12438,6 +12567,8 @@ type PerfectionistSortSets = {
|
|
|
12438
12567
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
12439
12568
|
|
|
12440
12569
|
order?: ("desc" | "asc")
|
|
12570
|
+
|
|
12571
|
+
newlinesInside?: ("always" | "never")
|
|
12441
12572
|
anyOf?: {
|
|
12442
12573
|
|
|
12443
12574
|
selector?: ("literal" | "spread")
|
|
@@ -12452,6 +12583,8 @@ type PerfectionistSortSets = {
|
|
|
12452
12583
|
|
|
12453
12584
|
order?: ("desc" | "asc")
|
|
12454
12585
|
|
|
12586
|
+
newlinesInside?: ("always" | "never")
|
|
12587
|
+
|
|
12455
12588
|
selector?: ("literal" | "spread")
|
|
12456
12589
|
|
|
12457
12590
|
elementNamePattern?: string
|
|
@@ -12472,7 +12605,11 @@ type PerfectionistSortSets = {
|
|
|
12472
12605
|
|
|
12473
12606
|
locales?: (string | string[])
|
|
12474
12607
|
|
|
12475
|
-
groups?: (string | string[]
|
|
12608
|
+
groups?: (string | string[] | {
|
|
12609
|
+
|
|
12610
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12611
|
+
[k: string]: unknown | undefined
|
|
12612
|
+
})[]
|
|
12476
12613
|
|
|
12477
12614
|
order?: ("asc" | "desc")
|
|
12478
12615
|
}[]
|
|
@@ -12494,7 +12631,11 @@ type PerfectionistSortSwitchCase = []|[{
|
|
|
12494
12631
|
// ----- perfectionist/sort-union-types -----
|
|
12495
12632
|
type PerfectionistSortUnionTypes = []|[{
|
|
12496
12633
|
|
|
12497
|
-
partitionByComment?: (string[] | boolean | string
|
|
12634
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
12635
|
+
block?: (string[] | boolean | string)
|
|
12636
|
+
line?: (string[] | boolean | string)
|
|
12637
|
+
[k: string]: unknown | undefined
|
|
12638
|
+
})
|
|
12498
12639
|
|
|
12499
12640
|
partitionByNewLine?: boolean
|
|
12500
12641
|
|
|
@@ -12510,14 +12651,22 @@ type PerfectionistSortUnionTypes = []|[{
|
|
|
12510
12651
|
|
|
12511
12652
|
locales?: (string | string[])
|
|
12512
12653
|
|
|
12513
|
-
groups?: (string | string[]
|
|
12654
|
+
groups?: (string | string[] | {
|
|
12655
|
+
|
|
12656
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12657
|
+
[k: string]: unknown | undefined
|
|
12658
|
+
})[]
|
|
12514
12659
|
|
|
12515
12660
|
order?: ("asc" | "desc")
|
|
12516
12661
|
}]
|
|
12517
12662
|
// ----- perfectionist/sort-variable-declarations -----
|
|
12518
12663
|
type PerfectionistSortVariableDeclarations = []|[{
|
|
12519
12664
|
|
|
12520
|
-
partitionByComment?: (string[] | boolean | string
|
|
12665
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
12666
|
+
block?: (string[] | boolean | string)
|
|
12667
|
+
line?: (string[] | boolean | string)
|
|
12668
|
+
[k: string]: unknown | undefined
|
|
12669
|
+
})
|
|
12521
12670
|
|
|
12522
12671
|
partitionByNewLine?: boolean
|
|
12523
12672
|
|
|
@@ -13570,6 +13719,7 @@ type StyleKeySpacing = []|[({
|
|
|
13570
13719
|
mode?: ("strict" | "minimum")
|
|
13571
13720
|
beforeColon?: boolean
|
|
13572
13721
|
afterColon?: boolean
|
|
13722
|
+
ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
|
|
13573
13723
|
} | {
|
|
13574
13724
|
singleLine?: {
|
|
13575
13725
|
mode?: ("strict" | "minimum")
|
|
@@ -14085,6 +14235,7 @@ type StyleNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
14085
14235
|
enforceForNewInMemberExpressions?: boolean
|
|
14086
14236
|
enforceForFunctionPrototypeMethods?: boolean
|
|
14087
14237
|
allowParensAfterCommentPattern?: string
|
|
14238
|
+
nestedConditionalExpressions?: boolean
|
|
14088
14239
|
}])
|
|
14089
14240
|
// ----- style/no-mixed-operators -----
|
|
14090
14241
|
type StyleNoMixedOperators = []|[{
|
|
@@ -14182,14 +14333,14 @@ type StyleOperatorLinebreak = []|[(("after" | "before" | "none") | null)]|[(("af
|
|
|
14182
14333
|
}
|
|
14183
14334
|
}]
|
|
14184
14335
|
// ----- style/padded-blocks -----
|
|
14185
|
-
type StylePaddedBlocks = []|[(("always" | "never") | {
|
|
14186
|
-
blocks?: ("always" | "never")
|
|
14187
|
-
switches?: ("always" | "never")
|
|
14188
|
-
classes?: ("always" | "never")
|
|
14189
|
-
})]|[(("always" | "never") | {
|
|
14190
|
-
blocks?: ("always" | "never")
|
|
14191
|
-
switches?: ("always" | "never")
|
|
14192
|
-
classes?: ("always" | "never")
|
|
14336
|
+
type StylePaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
|
|
14337
|
+
blocks?: ("always" | "never" | "start" | "end")
|
|
14338
|
+
switches?: ("always" | "never" | "start" | "end")
|
|
14339
|
+
classes?: ("always" | "never" | "start" | "end")
|
|
14340
|
+
})]|[(("always" | "never" | "start" | "end") | {
|
|
14341
|
+
blocks?: ("always" | "never" | "start" | "end")
|
|
14342
|
+
switches?: ("always" | "never" | "start" | "end")
|
|
14343
|
+
classes?: ("always" | "never" | "start" | "end")
|
|
14193
14344
|
}), {
|
|
14194
14345
|
allowSingleLineBlocks?: boolean
|
|
14195
14346
|
}]
|
|
@@ -14531,8 +14682,7 @@ type TestNoRestrictedViMethods = []|[{
|
|
|
14531
14682
|
}]
|
|
14532
14683
|
// ----- test/no-standalone-expect -----
|
|
14533
14684
|
type TestNoStandaloneExpect = []|[{
|
|
14534
|
-
|
|
14535
|
-
[k: string]: unknown | undefined
|
|
14685
|
+
additionalTestBlockFunctions?: string[]
|
|
14536
14686
|
}]
|
|
14537
14687
|
// ----- test/prefer-expect-assertions -----
|
|
14538
14688
|
type TestPreferExpectAssertions = []|[{
|
|
@@ -14748,6 +14898,8 @@ type TsConsistentTypeAssertions = []|[({
|
|
|
14748
14898
|
assertionStyle: "never"
|
|
14749
14899
|
} | {
|
|
14750
14900
|
|
|
14901
|
+
arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
14902
|
+
|
|
14751
14903
|
assertionStyle?: ("as" | "angle-bracket")
|
|
14752
14904
|
|
|
14753
14905
|
objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
@@ -15204,6 +15356,22 @@ type TsNoConfusingVoidExpression = []|[{
|
|
|
15204
15356
|
|
|
15205
15357
|
ignoreVoidReturningFunctions?: boolean
|
|
15206
15358
|
}]
|
|
15359
|
+
// ----- ts/no-deprecated -----
|
|
15360
|
+
type TsNoDeprecated = []|[{
|
|
15361
|
+
|
|
15362
|
+
allow?: (string | {
|
|
15363
|
+
from: "file"
|
|
15364
|
+
name: (string | [string, ...(string)[]])
|
|
15365
|
+
path?: string
|
|
15366
|
+
} | {
|
|
15367
|
+
from: "lib"
|
|
15368
|
+
name: (string | [string, ...(string)[]])
|
|
15369
|
+
} | {
|
|
15370
|
+
from: "package"
|
|
15371
|
+
name: (string | [string, ...(string)[]])
|
|
15372
|
+
package: string
|
|
15373
|
+
})[]
|
|
15374
|
+
}]
|
|
15207
15375
|
// ----- ts/no-duplicate-type-constituents -----
|
|
15208
15376
|
type TsNoDuplicateTypeConstituents = []|[{
|
|
15209
15377
|
|
|
@@ -15345,6 +15513,22 @@ type TsNoMisusedPromises = []|[{
|
|
|
15345
15513
|
variables?: boolean
|
|
15346
15514
|
})
|
|
15347
15515
|
}]
|
|
15516
|
+
// ----- ts/no-misused-spread -----
|
|
15517
|
+
type TsNoMisusedSpread = []|[{
|
|
15518
|
+
|
|
15519
|
+
allow?: (string | {
|
|
15520
|
+
from: "file"
|
|
15521
|
+
name: (string | [string, ...(string)[]])
|
|
15522
|
+
path?: string
|
|
15523
|
+
} | {
|
|
15524
|
+
from: "lib"
|
|
15525
|
+
name: (string | [string, ...(string)[]])
|
|
15526
|
+
} | {
|
|
15527
|
+
from: "package"
|
|
15528
|
+
name: (string | [string, ...(string)[]])
|
|
15529
|
+
package: string
|
|
15530
|
+
})[]
|
|
15531
|
+
}]
|
|
15348
15532
|
// ----- ts/no-namespace -----
|
|
15349
15533
|
type TsNoNamespace = []|[{
|
|
15350
15534
|
|
|
@@ -15420,7 +15604,7 @@ type TsNoShadow = []|[{
|
|
|
15420
15604
|
|
|
15421
15605
|
builtinGlobals?: boolean
|
|
15422
15606
|
|
|
15423
|
-
hoist?: ("all" | "functions" | "never")
|
|
15607
|
+
hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
|
|
15424
15608
|
|
|
15425
15609
|
ignoreFunctionTypeParameterNameValueShadow?: boolean
|
|
15426
15610
|
|
|
@@ -16333,6 +16517,7 @@ type VueKeySpacing = []|[({
|
|
|
16333
16517
|
mode?: ("strict" | "minimum")
|
|
16334
16518
|
beforeColon?: boolean
|
|
16335
16519
|
afterColon?: boolean
|
|
16520
|
+
ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
|
|
16336
16521
|
} | {
|
|
16337
16522
|
singleLine?: {
|
|
16338
16523
|
mode?: ("strict" | "minimum")
|
|
@@ -16859,6 +17044,7 @@ type VueNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
16859
17044
|
enforceForNewInMemberExpressions?: boolean
|
|
16860
17045
|
enforceForFunctionPrototypeMethods?: boolean
|
|
16861
17046
|
allowParensAfterCommentPattern?: string
|
|
17047
|
+
nestedConditionalExpressions?: boolean
|
|
16862
17048
|
}])
|
|
16863
17049
|
// ----- vue/no-irregular-whitespace -----
|
|
16864
17050
|
type VueNoIrregularWhitespace = []|[{
|