@lincy/eslint-config 5.4.0 → 5.4.2
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 +24 -14
- package/dist/index.d.cts +431 -283
- package/dist/index.d.ts +431 -283
- package/dist/index.js +20 -10
- package/package.json +35 -35
package/dist/index.d.ts
CHANGED
|
@@ -1192,31 +1192,31 @@ interface RuleOptions {
|
|
|
1192
1192
|
*/
|
|
1193
1193
|
'logical-assignment-operators'?: Linter.RuleEntry<LogicalAssignmentOperators>
|
|
1194
1194
|
/**
|
|
1195
|
-
* Require languages for fenced code blocks
|
|
1195
|
+
* Require languages for fenced code blocks
|
|
1196
1196
|
*/
|
|
1197
1197
|
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>
|
|
1198
1198
|
/**
|
|
1199
|
-
* Enforce heading levels increment by one
|
|
1199
|
+
* Enforce heading levels increment by one
|
|
1200
1200
|
*/
|
|
1201
1201
|
'markdown/heading-increment'?: Linter.RuleEntry<[]>
|
|
1202
1202
|
/**
|
|
1203
|
-
* Disallow duplicate headings in the same document
|
|
1203
|
+
* Disallow duplicate headings in the same document
|
|
1204
1204
|
*/
|
|
1205
1205
|
'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
|
|
1206
1206
|
/**
|
|
1207
|
-
* Disallow empty links
|
|
1207
|
+
* Disallow empty links
|
|
1208
1208
|
*/
|
|
1209
1209
|
'markdown/no-empty-links'?: Linter.RuleEntry<[]>
|
|
1210
1210
|
/**
|
|
1211
|
-
* Disallow HTML tags
|
|
1211
|
+
* Disallow HTML tags
|
|
1212
1212
|
*/
|
|
1213
1213
|
'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>
|
|
1214
1214
|
/**
|
|
1215
|
-
* Disallow invalid label references
|
|
1215
|
+
* Disallow invalid label references
|
|
1216
1216
|
*/
|
|
1217
1217
|
'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>
|
|
1218
1218
|
/**
|
|
1219
|
-
* Disallow missing label references
|
|
1219
|
+
* Disallow missing label references
|
|
1220
1220
|
*/
|
|
1221
1221
|
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
|
|
1222
1222
|
/**
|
|
@@ -2957,6 +2957,11 @@ interface RuleOptions {
|
|
|
2957
2957
|
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
2958
2958
|
*/
|
|
2959
2959
|
'react/no-unused-state'?: Linter.RuleEntry<[]>
|
|
2960
|
+
/**
|
|
2961
|
+
* disallow the use of 'useContext'
|
|
2962
|
+
* @see https://eslint-react.xyz/docs/rules/no-use-context
|
|
2963
|
+
*/
|
|
2964
|
+
'react/no-use-context'?: Linter.RuleEntry<[]>
|
|
2960
2965
|
/**
|
|
2961
2966
|
* disallow unnecessary fragments
|
|
2962
2967
|
* @see https://eslint-react.xyz/docs/rules/no-useless-fragment
|
|
@@ -4237,6 +4242,11 @@ interface RuleOptions {
|
|
|
4237
4242
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
|
|
4238
4243
|
*/
|
|
4239
4244
|
'test/prefer-spy-on'?: Linter.RuleEntry<[]>
|
|
4245
|
+
/**
|
|
4246
|
+
* enforce using `toBe(true)` and `toBe(false)` over matchers that coerce types to boolean
|
|
4247
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-boolean-matchers.md
|
|
4248
|
+
*/
|
|
4249
|
+
'test/prefer-strict-boolean-matchers'?: Linter.RuleEntry<[]>
|
|
4240
4250
|
/**
|
|
4241
4251
|
* enforce strict equal over equal
|
|
4242
4252
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
|
|
@@ -4292,6 +4302,11 @@ interface RuleOptions {
|
|
|
4292
4302
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
4293
4303
|
*/
|
|
4294
4304
|
'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
|
|
4305
|
+
/**
|
|
4306
|
+
* enforce using type parameters with vitest mock functions
|
|
4307
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
|
|
4308
|
+
*/
|
|
4309
|
+
'test/require-mock-type-parameters'?: Linter.RuleEntry<TestRequireMockTypeParameters>
|
|
4295
4310
|
/**
|
|
4296
4311
|
* require toThrow() to be called with an error message
|
|
4297
4312
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
|
|
@@ -4582,7 +4597,7 @@ interface RuleOptions {
|
|
|
4582
4597
|
* Disallow using code marked as `@deprecated`
|
|
4583
4598
|
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
4584
4599
|
*/
|
|
4585
|
-
'ts/no-deprecated'?: Linter.RuleEntry<
|
|
4600
|
+
'ts/no-deprecated'?: Linter.RuleEntry<TsNoDeprecated>
|
|
4586
4601
|
/**
|
|
4587
4602
|
* Disallow duplicate class members
|
|
4588
4603
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -4700,6 +4715,11 @@ interface RuleOptions {
|
|
|
4700
4715
|
* @see https://typescript-eslint.io/rules/no-misused-promises
|
|
4701
4716
|
*/
|
|
4702
4717
|
'ts/no-misused-promises'?: Linter.RuleEntry<TsNoMisusedPromises>
|
|
4718
|
+
/**
|
|
4719
|
+
* Disallow using the spread operator when it might cause unexpected behavior
|
|
4720
|
+
* @see https://typescript-eslint.io/rules/no-misused-spread
|
|
4721
|
+
*/
|
|
4722
|
+
'ts/no-misused-spread'?: Linter.RuleEntry<TsNoMisusedSpread>
|
|
4703
4723
|
/**
|
|
4704
4724
|
* Disallow enums from having both number and string members
|
|
4705
4725
|
* @see https://typescript-eslint.io/rules/no-mixed-enums
|
|
@@ -6046,7 +6066,7 @@ interface RuleOptions {
|
|
|
6046
6066
|
*/
|
|
6047
6067
|
'vue/jsx-uses-vars'?: Linter.RuleEntry<[]>
|
|
6048
6068
|
/**
|
|
6049
|
-
* Enforce consistent spacing between
|
|
6069
|
+
* Enforce consistent spacing between keys and values in object literal properties in `<template>`
|
|
6050
6070
|
* @see https://eslint.vuejs.org/rules/key-spacing.html
|
|
6051
6071
|
*/
|
|
6052
6072
|
'vue/key-spacing'?: Linter.RuleEntry<VueKeySpacing>
|
|
@@ -6739,7 +6759,7 @@ interface RuleOptions {
|
|
|
6739
6759
|
*/
|
|
6740
6760
|
'vue/prop-name-casing'?: Linter.RuleEntry<VuePropNameCasing>
|
|
6741
6761
|
/**
|
|
6742
|
-
* Require quotes around object literal
|
|
6762
|
+
* Require quotes around object literal property names in `<template>`
|
|
6743
6763
|
* @see https://eslint.vuejs.org/rules/quote-props.html
|
|
6744
6764
|
*/
|
|
6745
6765
|
'vue/quote-props'?: Linter.RuleEntry<VueQuoteProps>
|
|
@@ -9809,11 +9829,15 @@ type PaddingLineBetweenStatements = {
|
|
|
9809
9829
|
// ----- perfectionist/sort-array-includes -----
|
|
9810
9830
|
type PerfectionistSortArrayIncludes = {
|
|
9811
9831
|
|
|
9812
|
-
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
|
|
9832
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9833
|
+
|
|
9834
|
+
ignoreCase?: boolean
|
|
9835
|
+
|
|
9836
|
+
alphabet?: string
|
|
9837
|
+
|
|
9838
|
+
locales?: (string | string[])
|
|
9839
|
+
|
|
9840
|
+
order?: ("asc" | "desc")
|
|
9817
9841
|
|
|
9818
9842
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
9819
9843
|
|
|
@@ -9852,34 +9876,36 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9852
9876
|
|
|
9853
9877
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9854
9878
|
|
|
9855
|
-
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9879
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
9880
|
+
block?: (string[] | boolean | string)
|
|
9881
|
+
line?: (string[] | boolean | string)
|
|
9882
|
+
[k: string]: unknown | undefined
|
|
9883
|
+
})
|
|
9860
9884
|
|
|
9861
|
-
|
|
9885
|
+
partitionByNewLine?: boolean
|
|
9862
9886
|
|
|
9863
|
-
|
|
9887
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9864
9888
|
|
|
9865
9889
|
groups?: (string | string[] | {
|
|
9866
9890
|
|
|
9867
9891
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9868
9892
|
[k: string]: unknown | undefined
|
|
9869
9893
|
})[]
|
|
9870
|
-
|
|
9871
|
-
order?: ("asc" | "desc")
|
|
9872
9894
|
}[]
|
|
9873
9895
|
// ----- perfectionist/sort-classes -----
|
|
9874
9896
|
type PerfectionistSortClasses = []|[{
|
|
9875
9897
|
|
|
9876
|
-
|
|
9898
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9877
9899
|
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9900
|
+
ignoreCase?: boolean
|
|
9901
|
+
|
|
9902
|
+
alphabet?: string
|
|
9903
|
+
|
|
9904
|
+
locales?: (string | string[])
|
|
9905
|
+
|
|
9906
|
+
order?: ("asc" | "desc")
|
|
9907
|
+
|
|
9908
|
+
ignoreCallbackDependenciesPatterns?: string[]
|
|
9883
9909
|
|
|
9884
9910
|
customGroups?: ({
|
|
9885
9911
|
|
|
@@ -9892,14 +9918,14 @@ type PerfectionistSortClasses = []|[{
|
|
|
9892
9918
|
newlinesInside?: ("always" | "never")
|
|
9893
9919
|
anyOf?: {
|
|
9894
9920
|
|
|
9895
|
-
elementValuePattern?: string
|
|
9896
|
-
|
|
9897
9921
|
decoratorNamePattern?: string
|
|
9898
9922
|
|
|
9899
9923
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
9900
9924
|
|
|
9901
9925
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
9902
9926
|
|
|
9927
|
+
elementValuePattern?: string
|
|
9928
|
+
|
|
9903
9929
|
elementNamePattern?: string
|
|
9904
9930
|
}[]
|
|
9905
9931
|
} | {
|
|
@@ -9912,47 +9938,47 @@ type PerfectionistSortClasses = []|[{
|
|
|
9912
9938
|
|
|
9913
9939
|
newlinesInside?: ("always" | "never")
|
|
9914
9940
|
|
|
9915
|
-
elementValuePattern?: string
|
|
9916
|
-
|
|
9917
9941
|
decoratorNamePattern?: string
|
|
9918
9942
|
|
|
9919
9943
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
9920
9944
|
|
|
9921
9945
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
9922
9946
|
|
|
9947
|
+
elementValuePattern?: string
|
|
9948
|
+
|
|
9923
9949
|
elementNamePattern?: string
|
|
9924
9950
|
})[]
|
|
9925
9951
|
|
|
9926
|
-
|
|
9952
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
9953
|
+
block?: (string[] | boolean | string)
|
|
9954
|
+
line?: (string[] | boolean | string)
|
|
9955
|
+
[k: string]: unknown | undefined
|
|
9956
|
+
})
|
|
9927
9957
|
|
|
9928
|
-
|
|
9958
|
+
partitionByNewLine?: boolean
|
|
9929
9959
|
|
|
9930
9960
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9931
9961
|
|
|
9932
|
-
ignoreCase?: boolean
|
|
9933
|
-
|
|
9934
|
-
alphabet?: string
|
|
9935
|
-
|
|
9936
9962
|
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9937
9963
|
|
|
9938
|
-
locales?: (string | string[])
|
|
9939
|
-
|
|
9940
9964
|
groups?: (string | string[] | {
|
|
9941
9965
|
|
|
9942
9966
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9943
9967
|
[k: string]: unknown | undefined
|
|
9944
9968
|
})[]
|
|
9945
|
-
|
|
9946
|
-
order?: ("asc" | "desc")
|
|
9947
9969
|
}]
|
|
9948
9970
|
// ----- perfectionist/sort-decorators -----
|
|
9949
9971
|
type PerfectionistSortDecorators = []|[{
|
|
9950
9972
|
|
|
9951
|
-
|
|
9952
|
-
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
|
|
9973
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
9974
|
+
|
|
9975
|
+
ignoreCase?: boolean
|
|
9976
|
+
|
|
9977
|
+
alphabet?: string
|
|
9978
|
+
|
|
9979
|
+
locales?: (string | string[])
|
|
9980
|
+
|
|
9981
|
+
order?: ("asc" | "desc")
|
|
9956
9982
|
|
|
9957
9983
|
sortOnParameters?: boolean
|
|
9958
9984
|
|
|
@@ -9964,42 +9990,92 @@ type PerfectionistSortDecorators = []|[{
|
|
|
9964
9990
|
|
|
9965
9991
|
sortOnClasses?: boolean
|
|
9966
9992
|
|
|
9967
|
-
|
|
9993
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
9994
|
+
block?: (string[] | boolean | string)
|
|
9995
|
+
line?: (string[] | boolean | string)
|
|
9996
|
+
[k: string]: unknown | undefined
|
|
9997
|
+
})
|
|
9968
9998
|
|
|
9969
9999
|
customGroups?: {
|
|
9970
10000
|
[k: string]: (string | string[]) | undefined
|
|
9971
10001
|
}
|
|
9972
10002
|
|
|
9973
|
-
ignoreCase?: boolean
|
|
9974
|
-
|
|
9975
|
-
alphabet?: string
|
|
9976
|
-
|
|
9977
10003
|
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
9978
10004
|
|
|
9979
|
-
locales?: (string | string[])
|
|
9980
|
-
|
|
9981
10005
|
groups?: (string | string[] | {
|
|
9982
10006
|
|
|
9983
10007
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9984
10008
|
[k: string]: unknown | undefined
|
|
9985
10009
|
})[]
|
|
9986
|
-
|
|
9987
|
-
order?: ("asc" | "desc")
|
|
9988
10010
|
}]
|
|
9989
10011
|
// ----- perfectionist/sort-enums -----
|
|
9990
10012
|
type PerfectionistSortEnums = []|[{
|
|
9991
10013
|
|
|
10014
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10015
|
+
|
|
10016
|
+
ignoreCase?: boolean
|
|
10017
|
+
|
|
10018
|
+
alphabet?: string
|
|
10019
|
+
|
|
10020
|
+
locales?: (string | string[])
|
|
10021
|
+
|
|
10022
|
+
order?: ("asc" | "desc")
|
|
10023
|
+
|
|
10024
|
+
forceNumericSort?: boolean
|
|
10025
|
+
customGroups?: ({
|
|
10026
|
+
[k: string]: (string | string[]) | undefined
|
|
10027
|
+
} | ({
|
|
10028
|
+
|
|
10029
|
+
groupName?: string
|
|
10030
|
+
|
|
10031
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
10032
|
+
|
|
10033
|
+
order?: ("desc" | "asc")
|
|
10034
|
+
|
|
10035
|
+
newlinesInside?: ("always" | "never")
|
|
10036
|
+
anyOf?: {
|
|
10037
|
+
|
|
10038
|
+
elementValuePattern?: string
|
|
10039
|
+
|
|
10040
|
+
elementNamePattern?: string
|
|
10041
|
+
}[]
|
|
10042
|
+
} | {
|
|
10043
|
+
|
|
10044
|
+
groupName?: string
|
|
10045
|
+
|
|
10046
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
10047
|
+
|
|
10048
|
+
order?: ("desc" | "asc")
|
|
10049
|
+
|
|
10050
|
+
newlinesInside?: ("always" | "never")
|
|
10051
|
+
|
|
10052
|
+
elementValuePattern?: string
|
|
10053
|
+
|
|
10054
|
+
elementNamePattern?: string
|
|
10055
|
+
})[])
|
|
10056
|
+
|
|
10057
|
+
sortByValue?: boolean
|
|
10058
|
+
|
|
9992
10059
|
partitionByComment?: (string[] | boolean | string | {
|
|
9993
10060
|
block?: (string[] | boolean | string)
|
|
9994
10061
|
line?: (string[] | boolean | string)
|
|
9995
10062
|
[k: string]: unknown | undefined
|
|
9996
10063
|
})
|
|
9997
10064
|
|
|
9998
|
-
|
|
10065
|
+
partitionByNewLine?: boolean
|
|
9999
10066
|
|
|
10000
|
-
|
|
10067
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10001
10068
|
|
|
10002
|
-
|
|
10069
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10070
|
+
|
|
10071
|
+
groups?: (string | string[] | {
|
|
10072
|
+
|
|
10073
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10074
|
+
[k: string]: unknown | undefined
|
|
10075
|
+
})[]
|
|
10076
|
+
}]
|
|
10077
|
+
// ----- perfectionist/sort-exports -----
|
|
10078
|
+
type PerfectionistSortExports = []|[{
|
|
10003
10079
|
|
|
10004
10080
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10005
10081
|
|
|
@@ -10007,14 +10083,11 @@ type PerfectionistSortEnums = []|[{
|
|
|
10007
10083
|
|
|
10008
10084
|
alphabet?: string
|
|
10009
10085
|
|
|
10010
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10011
|
-
|
|
10012
10086
|
locales?: (string | string[])
|
|
10013
10087
|
|
|
10014
10088
|
order?: ("asc" | "desc")
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
type PerfectionistSortExports = []|[{
|
|
10089
|
+
|
|
10090
|
+
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10018
10091
|
|
|
10019
10092
|
partitionByComment?: (string[] | boolean | string | {
|
|
10020
10093
|
block?: (string[] | boolean | string)
|
|
@@ -10022,51 +10095,49 @@ type PerfectionistSortExports = []|[{
|
|
|
10022
10095
|
[k: string]: unknown | undefined
|
|
10023
10096
|
})
|
|
10024
10097
|
|
|
10025
|
-
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10026
|
-
|
|
10027
10098
|
partitionByNewLine?: boolean
|
|
10028
10099
|
|
|
10100
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10101
|
+
}]
|
|
10102
|
+
// ----- perfectionist/sort-heritage-clauses -----
|
|
10103
|
+
type PerfectionistSortHeritageClauses = []|[{
|
|
10104
|
+
|
|
10029
10105
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10030
10106
|
|
|
10031
10107
|
ignoreCase?: boolean
|
|
10032
10108
|
|
|
10033
10109
|
alphabet?: string
|
|
10034
10110
|
|
|
10035
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10036
|
-
|
|
10037
10111
|
locales?: (string | string[])
|
|
10038
10112
|
|
|
10039
10113
|
order?: ("asc" | "desc")
|
|
10040
|
-
}]
|
|
10041
|
-
// ----- perfectionist/sort-heritage-clauses -----
|
|
10042
|
-
type PerfectionistSortHeritageClauses = []|[{
|
|
10043
|
-
|
|
10044
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10045
10114
|
|
|
10046
10115
|
customGroups?: {
|
|
10047
10116
|
[k: string]: (string | string[]) | undefined
|
|
10048
10117
|
}
|
|
10049
10118
|
|
|
10050
|
-
ignoreCase?: boolean
|
|
10051
|
-
|
|
10052
|
-
alphabet?: string
|
|
10053
|
-
|
|
10054
10119
|
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10055
10120
|
|
|
10056
|
-
locales?: (string | string[])
|
|
10057
|
-
|
|
10058
10121
|
groups?: (string | string[] | {
|
|
10059
10122
|
|
|
10060
10123
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10061
10124
|
[k: string]: unknown | undefined
|
|
10062
10125
|
})[]
|
|
10063
|
-
|
|
10064
|
-
order?: ("asc" | "desc")
|
|
10065
10126
|
}]
|
|
10066
10127
|
// ----- perfectionist/sort-imports -----
|
|
10067
10128
|
type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
|
|
10068
10129
|
type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
10069
10130
|
|
|
10131
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10132
|
+
|
|
10133
|
+
ignoreCase?: boolean
|
|
10134
|
+
|
|
10135
|
+
alphabet?: string
|
|
10136
|
+
|
|
10137
|
+
locales?: (string | string[])
|
|
10138
|
+
|
|
10139
|
+
order?: ("asc" | "desc")
|
|
10140
|
+
|
|
10070
10141
|
customGroups?: {
|
|
10071
10142
|
|
|
10072
10143
|
value?: {
|
|
@@ -10078,12 +10149,6 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
10078
10149
|
}
|
|
10079
10150
|
}
|
|
10080
10151
|
|
|
10081
|
-
partitionByComment?: (string[] | boolean | string | {
|
|
10082
|
-
block?: (string[] | boolean | string)
|
|
10083
|
-
line?: (string[] | boolean | string)
|
|
10084
|
-
[k: string]: unknown | undefined
|
|
10085
|
-
})
|
|
10086
|
-
|
|
10087
10152
|
internalPattern?: string[]
|
|
10088
10153
|
|
|
10089
10154
|
maxLineLength?: number
|
|
@@ -10094,27 +10159,23 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
10094
10159
|
|
|
10095
10160
|
tsconfigRootDir?: string
|
|
10096
10161
|
|
|
10097
|
-
|
|
10162
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
10163
|
+
block?: (string[] | boolean | string)
|
|
10164
|
+
line?: (string[] | boolean | string)
|
|
10165
|
+
[k: string]: unknown | undefined
|
|
10166
|
+
})
|
|
10098
10167
|
|
|
10099
|
-
|
|
10168
|
+
partitionByNewLine?: boolean
|
|
10100
10169
|
|
|
10101
10170
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10102
10171
|
|
|
10103
|
-
ignoreCase?: boolean
|
|
10104
|
-
|
|
10105
|
-
alphabet?: string
|
|
10106
|
-
|
|
10107
10172
|
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10108
10173
|
|
|
10109
|
-
locales?: (string | string[])
|
|
10110
|
-
|
|
10111
10174
|
groups?: (string | string[] | {
|
|
10112
10175
|
|
|
10113
10176
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10114
10177
|
[k: string]: unknown | undefined
|
|
10115
10178
|
})[]
|
|
10116
|
-
|
|
10117
|
-
order?: ("asc" | "desc")
|
|
10118
10179
|
})
|
|
10119
10180
|
type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
|
|
10120
10181
|
[k: string]: unknown | undefined
|
|
@@ -10126,17 +10187,21 @@ interface _PerfectionistSortImports_IsLineLength {
|
|
|
10126
10187
|
// ----- perfectionist/sort-interfaces -----
|
|
10127
10188
|
type PerfectionistSortInterfaces = {
|
|
10128
10189
|
|
|
10190
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10191
|
+
|
|
10192
|
+
ignoreCase?: boolean
|
|
10193
|
+
|
|
10194
|
+
alphabet?: string
|
|
10195
|
+
|
|
10196
|
+
locales?: (string | string[])
|
|
10197
|
+
|
|
10198
|
+
order?: ("asc" | "desc")
|
|
10199
|
+
|
|
10129
10200
|
ignorePattern?: string[]
|
|
10130
10201
|
useConfigurationIf?: {
|
|
10131
10202
|
allNamesMatchPattern?: string
|
|
10132
10203
|
declarationMatchesPattern?: string
|
|
10133
10204
|
}
|
|
10134
|
-
|
|
10135
|
-
partitionByComment?: (string[] | boolean | string | {
|
|
10136
|
-
block?: (string[] | boolean | string)
|
|
10137
|
-
line?: (string[] | boolean | string)
|
|
10138
|
-
[k: string]: unknown | undefined
|
|
10139
|
-
})
|
|
10140
10205
|
customGroups?: ({
|
|
10141
10206
|
[k: string]: (string | string[]) | undefined
|
|
10142
10207
|
} | ({
|
|
@@ -10177,29 +10242,35 @@ type PerfectionistSortInterfaces = {
|
|
|
10177
10242
|
|
|
10178
10243
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10179
10244
|
|
|
10180
|
-
|
|
10245
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
10246
|
+
block?: (string[] | boolean | string)
|
|
10247
|
+
line?: (string[] | boolean | string)
|
|
10248
|
+
[k: string]: unknown | undefined
|
|
10249
|
+
})
|
|
10181
10250
|
|
|
10182
|
-
|
|
10251
|
+
partitionByNewLine?: boolean
|
|
10183
10252
|
|
|
10184
10253
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10185
10254
|
|
|
10186
|
-
ignoreCase?: boolean
|
|
10187
|
-
|
|
10188
|
-
alphabet?: string
|
|
10189
|
-
|
|
10190
|
-
locales?: (string | string[])
|
|
10191
|
-
|
|
10192
10255
|
groups?: (string | string[] | {
|
|
10193
10256
|
|
|
10194
10257
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10195
10258
|
[k: string]: unknown | undefined
|
|
10196
10259
|
})[]
|
|
10197
|
-
|
|
10198
|
-
order?: ("asc" | "desc")
|
|
10199
10260
|
}[]
|
|
10200
10261
|
// ----- perfectionist/sort-intersection-types -----
|
|
10201
10262
|
type PerfectionistSortIntersectionTypes = []|[{
|
|
10202
10263
|
|
|
10264
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10265
|
+
|
|
10266
|
+
ignoreCase?: boolean
|
|
10267
|
+
|
|
10268
|
+
alphabet?: string
|
|
10269
|
+
|
|
10270
|
+
locales?: (string | string[])
|
|
10271
|
+
|
|
10272
|
+
order?: ("asc" | "desc")
|
|
10273
|
+
|
|
10203
10274
|
partitionByComment?: (string[] | boolean | string | {
|
|
10204
10275
|
block?: (string[] | boolean | string)
|
|
10205
10276
|
line?: (string[] | boolean | string)
|
|
@@ -10208,55 +10279,88 @@ type PerfectionistSortIntersectionTypes = []|[{
|
|
|
10208
10279
|
|
|
10209
10280
|
partitionByNewLine?: boolean
|
|
10210
10281
|
|
|
10211
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10212
|
-
|
|
10213
10282
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10214
10283
|
|
|
10215
|
-
ignoreCase?: boolean
|
|
10216
|
-
|
|
10217
|
-
alphabet?: string
|
|
10218
|
-
|
|
10219
10284
|
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10220
10285
|
|
|
10221
|
-
locales?: (string | string[])
|
|
10222
|
-
|
|
10223
10286
|
groups?: (string | string[] | {
|
|
10224
10287
|
|
|
10225
10288
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10226
10289
|
[k: string]: unknown | undefined
|
|
10227
10290
|
})[]
|
|
10228
|
-
|
|
10229
|
-
order?: ("asc" | "desc")
|
|
10230
10291
|
}]
|
|
10231
10292
|
// ----- perfectionist/sort-jsx-props -----
|
|
10232
10293
|
type PerfectionistSortJsxProps = []|[{
|
|
10233
10294
|
|
|
10295
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10296
|
+
|
|
10297
|
+
ignoreCase?: boolean
|
|
10298
|
+
|
|
10299
|
+
alphabet?: string
|
|
10300
|
+
|
|
10301
|
+
locales?: (string | string[])
|
|
10302
|
+
|
|
10303
|
+
order?: ("asc" | "desc")
|
|
10304
|
+
|
|
10234
10305
|
ignorePattern?: string[]
|
|
10235
10306
|
|
|
10236
|
-
|
|
10307
|
+
partitionByNewLine?: boolean
|
|
10308
|
+
|
|
10309
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10237
10310
|
|
|
10238
10311
|
customGroups?: {
|
|
10239
10312
|
[k: string]: (string | string[]) | undefined
|
|
10240
10313
|
}
|
|
10241
10314
|
|
|
10242
|
-
ignoreCase?: boolean
|
|
10243
|
-
|
|
10244
|
-
alphabet?: string
|
|
10245
|
-
|
|
10246
10315
|
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10247
10316
|
|
|
10248
|
-
locales?: (string | string[])
|
|
10249
|
-
|
|
10250
10317
|
groups?: (string | string[] | {
|
|
10251
10318
|
|
|
10252
10319
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10253
10320
|
[k: string]: unknown | undefined
|
|
10254
10321
|
})[]
|
|
10255
|
-
|
|
10256
|
-
order?: ("asc" | "desc")
|
|
10257
10322
|
}]
|
|
10258
10323
|
// ----- perfectionist/sort-maps -----
|
|
10259
|
-
type PerfectionistSortMaps =
|
|
10324
|
+
type PerfectionistSortMaps = {
|
|
10325
|
+
|
|
10326
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10327
|
+
|
|
10328
|
+
ignoreCase?: boolean
|
|
10329
|
+
|
|
10330
|
+
alphabet?: string
|
|
10331
|
+
|
|
10332
|
+
locales?: (string | string[])
|
|
10333
|
+
|
|
10334
|
+
order?: ("asc" | "desc")
|
|
10335
|
+
|
|
10336
|
+
customGroups?: ({
|
|
10337
|
+
|
|
10338
|
+
groupName?: string
|
|
10339
|
+
|
|
10340
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
10341
|
+
|
|
10342
|
+
order?: ("desc" | "asc")
|
|
10343
|
+
|
|
10344
|
+
newlinesInside?: ("always" | "never")
|
|
10345
|
+
anyOf?: {
|
|
10346
|
+
|
|
10347
|
+
elementNamePattern?: string
|
|
10348
|
+
}[]
|
|
10349
|
+
} | {
|
|
10350
|
+
|
|
10351
|
+
groupName?: string
|
|
10352
|
+
|
|
10353
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
10354
|
+
|
|
10355
|
+
order?: ("desc" | "asc")
|
|
10356
|
+
|
|
10357
|
+
newlinesInside?: ("always" | "never")
|
|
10358
|
+
|
|
10359
|
+
elementNamePattern?: string
|
|
10360
|
+
})[]
|
|
10361
|
+
useConfigurationIf?: {
|
|
10362
|
+
allNamesMatchPattern?: string
|
|
10363
|
+
}
|
|
10260
10364
|
|
|
10261
10365
|
partitionByComment?: (string[] | boolean | string | {
|
|
10262
10366
|
block?: (string[] | boolean | string)
|
|
@@ -10266,26 +10370,28 @@ type PerfectionistSortMaps = []|[{
|
|
|
10266
10370
|
|
|
10267
10371
|
partitionByNewLine?: boolean
|
|
10268
10372
|
|
|
10373
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10374
|
+
|
|
10375
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10376
|
+
|
|
10377
|
+
groups?: (string | string[] | {
|
|
10378
|
+
|
|
10379
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10380
|
+
[k: string]: unknown | undefined
|
|
10381
|
+
})[]
|
|
10382
|
+
}[]
|
|
10383
|
+
// ----- perfectionist/sort-modules -----
|
|
10384
|
+
type PerfectionistSortModules = []|[{
|
|
10385
|
+
|
|
10269
10386
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10270
10387
|
|
|
10271
10388
|
ignoreCase?: boolean
|
|
10272
10389
|
|
|
10273
10390
|
alphabet?: string
|
|
10274
10391
|
|
|
10275
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10276
|
-
|
|
10277
10392
|
locales?: (string | string[])
|
|
10278
10393
|
|
|
10279
10394
|
order?: ("asc" | "desc")
|
|
10280
|
-
}]
|
|
10281
|
-
// ----- perfectionist/sort-modules -----
|
|
10282
|
-
type PerfectionistSortModules = []|[{
|
|
10283
|
-
|
|
10284
|
-
partitionByComment?: (string[] | boolean | string | {
|
|
10285
|
-
block?: (string[] | boolean | string)
|
|
10286
|
-
line?: (string[] | boolean | string)
|
|
10287
|
-
[k: string]: unknown | undefined
|
|
10288
|
-
})
|
|
10289
10395
|
|
|
10290
10396
|
customGroups?: ({
|
|
10291
10397
|
|
|
@@ -10325,55 +10431,67 @@ type PerfectionistSortModules = []|[{
|
|
|
10325
10431
|
elementNamePattern?: string
|
|
10326
10432
|
})[]
|
|
10327
10433
|
|
|
10328
|
-
|
|
10434
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
10435
|
+
block?: (string[] | boolean | string)
|
|
10436
|
+
line?: (string[] | boolean | string)
|
|
10437
|
+
[k: string]: unknown | undefined
|
|
10438
|
+
})
|
|
10329
10439
|
|
|
10330
|
-
|
|
10440
|
+
partitionByNewLine?: boolean
|
|
10331
10441
|
|
|
10332
10442
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10333
10443
|
|
|
10334
|
-
ignoreCase?: boolean
|
|
10335
|
-
|
|
10336
|
-
alphabet?: string
|
|
10337
|
-
|
|
10338
10444
|
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10339
10445
|
|
|
10340
|
-
locales?: (string | string[])
|
|
10341
|
-
|
|
10342
10446
|
groups?: (string | string[] | {
|
|
10343
10447
|
|
|
10344
10448
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10345
10449
|
[k: string]: unknown | undefined
|
|
10346
10450
|
})[]
|
|
10347
|
-
|
|
10348
|
-
order?: ("asc" | "desc")
|
|
10349
10451
|
}]
|
|
10350
10452
|
// ----- perfectionist/sort-named-exports -----
|
|
10351
10453
|
type PerfectionistSortNamedExports = []|[{
|
|
10352
10454
|
|
|
10455
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10456
|
+
|
|
10457
|
+
ignoreCase?: boolean
|
|
10458
|
+
|
|
10459
|
+
alphabet?: string
|
|
10460
|
+
|
|
10461
|
+
locales?: (string | string[])
|
|
10462
|
+
|
|
10463
|
+
order?: ("asc" | "desc")
|
|
10464
|
+
|
|
10465
|
+
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10466
|
+
|
|
10467
|
+
ignoreAlias?: boolean
|
|
10468
|
+
|
|
10353
10469
|
partitionByComment?: (string[] | boolean | string | {
|
|
10354
10470
|
block?: (string[] | boolean | string)
|
|
10355
10471
|
line?: (string[] | boolean | string)
|
|
10356
10472
|
[k: string]: unknown | undefined
|
|
10357
10473
|
})
|
|
10358
10474
|
|
|
10359
|
-
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10360
|
-
|
|
10361
10475
|
partitionByNewLine?: boolean
|
|
10362
10476
|
|
|
10477
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10478
|
+
}]
|
|
10479
|
+
// ----- perfectionist/sort-named-imports -----
|
|
10480
|
+
type PerfectionistSortNamedImports = []|[{
|
|
10481
|
+
|
|
10363
10482
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10364
10483
|
|
|
10365
10484
|
ignoreCase?: boolean
|
|
10366
10485
|
|
|
10367
10486
|
alphabet?: string
|
|
10368
10487
|
|
|
10369
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10370
|
-
|
|
10371
10488
|
locales?: (string | string[])
|
|
10372
10489
|
|
|
10373
10490
|
order?: ("asc" | "desc")
|
|
10374
|
-
|
|
10375
|
-
|
|
10376
|
-
|
|
10491
|
+
|
|
10492
|
+
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10493
|
+
|
|
10494
|
+
ignoreAlias?: boolean
|
|
10377
10495
|
|
|
10378
10496
|
partitionByComment?: (string[] | boolean | string | {
|
|
10379
10497
|
block?: (string[] | boolean | string)
|
|
@@ -10381,38 +10499,28 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
10381
10499
|
[k: string]: unknown | undefined
|
|
10382
10500
|
})
|
|
10383
10501
|
|
|
10384
|
-
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10385
|
-
|
|
10386
|
-
ignoreAlias?: boolean
|
|
10387
|
-
|
|
10388
10502
|
partitionByNewLine?: boolean
|
|
10389
10503
|
|
|
10504
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10505
|
+
}]
|
|
10506
|
+
// ----- perfectionist/sort-object-types -----
|
|
10507
|
+
type PerfectionistSortObjectTypes = {
|
|
10508
|
+
|
|
10390
10509
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10391
10510
|
|
|
10392
10511
|
ignoreCase?: boolean
|
|
10393
10512
|
|
|
10394
10513
|
alphabet?: string
|
|
10395
10514
|
|
|
10396
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10397
|
-
|
|
10398
10515
|
locales?: (string | string[])
|
|
10399
10516
|
|
|
10400
10517
|
order?: ("asc" | "desc")
|
|
10401
|
-
}]
|
|
10402
|
-
// ----- perfectionist/sort-object-types -----
|
|
10403
|
-
type PerfectionistSortObjectTypes = {
|
|
10404
10518
|
|
|
10405
10519
|
ignorePattern?: string[]
|
|
10406
10520
|
useConfigurationIf?: {
|
|
10407
10521
|
allNamesMatchPattern?: string
|
|
10408
10522
|
declarationMatchesPattern?: string
|
|
10409
10523
|
}
|
|
10410
|
-
|
|
10411
|
-
partitionByComment?: (string[] | boolean | string | {
|
|
10412
|
-
block?: (string[] | boolean | string)
|
|
10413
|
-
line?: (string[] | boolean | string)
|
|
10414
|
-
[k: string]: unknown | undefined
|
|
10415
|
-
})
|
|
10416
10524
|
customGroups?: ({
|
|
10417
10525
|
[k: string]: (string | string[]) | undefined
|
|
10418
10526
|
} | ({
|
|
@@ -10453,29 +10561,35 @@ type PerfectionistSortObjectTypes = {
|
|
|
10453
10561
|
|
|
10454
10562
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10455
10563
|
|
|
10456
|
-
|
|
10564
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
10565
|
+
block?: (string[] | boolean | string)
|
|
10566
|
+
line?: (string[] | boolean | string)
|
|
10567
|
+
[k: string]: unknown | undefined
|
|
10568
|
+
})
|
|
10457
10569
|
|
|
10458
|
-
|
|
10570
|
+
partitionByNewLine?: boolean
|
|
10459
10571
|
|
|
10460
10572
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10461
10573
|
|
|
10462
|
-
ignoreCase?: boolean
|
|
10463
|
-
|
|
10464
|
-
alphabet?: string
|
|
10465
|
-
|
|
10466
|
-
locales?: (string | string[])
|
|
10467
|
-
|
|
10468
10574
|
groups?: (string | string[] | {
|
|
10469
10575
|
|
|
10470
10576
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10471
10577
|
[k: string]: unknown | undefined
|
|
10472
10578
|
})[]
|
|
10473
|
-
|
|
10474
|
-
order?: ("asc" | "desc")
|
|
10475
10579
|
}[]
|
|
10476
10580
|
// ----- perfectionist/sort-objects -----
|
|
10477
10581
|
type PerfectionistSortObjects = {
|
|
10478
10582
|
|
|
10583
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10584
|
+
|
|
10585
|
+
ignoreCase?: boolean
|
|
10586
|
+
|
|
10587
|
+
alphabet?: string
|
|
10588
|
+
|
|
10589
|
+
locales?: (string | string[])
|
|
10590
|
+
|
|
10591
|
+
order?: ("asc" | "desc")
|
|
10592
|
+
|
|
10479
10593
|
destructuredObjects?: (boolean | {
|
|
10480
10594
|
|
|
10481
10595
|
groups?: boolean
|
|
@@ -10486,12 +10600,45 @@ type PerfectionistSortObjects = {
|
|
|
10486
10600
|
allNamesMatchPattern?: string
|
|
10487
10601
|
callingFunctionNamePattern?: string
|
|
10488
10602
|
}
|
|
10489
|
-
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10603
|
+
customGroups?: ({
|
|
10604
|
+
[k: string]: (string | string[]) | undefined
|
|
10605
|
+
} | ({
|
|
10606
|
+
|
|
10607
|
+
groupName?: string
|
|
10608
|
+
|
|
10609
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
10610
|
+
|
|
10611
|
+
order?: ("desc" | "asc")
|
|
10612
|
+
|
|
10613
|
+
newlinesInside?: ("always" | "never")
|
|
10614
|
+
anyOf?: {
|
|
10615
|
+
|
|
10616
|
+
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10617
|
+
|
|
10618
|
+
selector?: ("member" | "method" | "multiline" | "property")
|
|
10619
|
+
|
|
10620
|
+
elementValuePattern?: string
|
|
10621
|
+
|
|
10622
|
+
elementNamePattern?: string
|
|
10623
|
+
}[]
|
|
10624
|
+
} | {
|
|
10625
|
+
|
|
10626
|
+
groupName?: string
|
|
10627
|
+
|
|
10628
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
10629
|
+
|
|
10630
|
+
order?: ("desc" | "asc")
|
|
10631
|
+
|
|
10632
|
+
newlinesInside?: ("always" | "never")
|
|
10633
|
+
|
|
10634
|
+
modifiers?: ("optional" | "required" | "multiline")[]
|
|
10635
|
+
|
|
10636
|
+
selector?: ("member" | "method" | "multiline" | "property")
|
|
10637
|
+
|
|
10638
|
+
elementValuePattern?: string
|
|
10639
|
+
|
|
10640
|
+
elementNamePattern?: string
|
|
10641
|
+
})[])
|
|
10495
10642
|
|
|
10496
10643
|
destructureOnly?: boolean
|
|
10497
10644
|
|
|
@@ -10501,38 +10648,34 @@ type PerfectionistSortObjects = {
|
|
|
10501
10648
|
|
|
10502
10649
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10503
10650
|
|
|
10504
|
-
|
|
10651
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
10652
|
+
block?: (string[] | boolean | string)
|
|
10653
|
+
line?: (string[] | boolean | string)
|
|
10654
|
+
[k: string]: unknown | undefined
|
|
10655
|
+
})
|
|
10505
10656
|
|
|
10506
|
-
|
|
10657
|
+
partitionByNewLine?: boolean
|
|
10507
10658
|
|
|
10508
10659
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10509
10660
|
|
|
10510
|
-
customGroups?: {
|
|
10511
|
-
[k: string]: (string | string[]) | undefined
|
|
10512
|
-
}
|
|
10513
|
-
|
|
10514
|
-
ignoreCase?: boolean
|
|
10515
|
-
|
|
10516
|
-
alphabet?: string
|
|
10517
|
-
|
|
10518
|
-
locales?: (string | string[])
|
|
10519
|
-
|
|
10520
10661
|
groups?: (string | string[] | {
|
|
10521
10662
|
|
|
10522
10663
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10523
10664
|
[k: string]: unknown | undefined
|
|
10524
10665
|
})[]
|
|
10525
|
-
|
|
10526
|
-
order?: ("asc" | "desc")
|
|
10527
10666
|
}[]
|
|
10528
10667
|
// ----- perfectionist/sort-sets -----
|
|
10529
10668
|
type PerfectionistSortSets = {
|
|
10530
10669
|
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10670
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10671
|
+
|
|
10672
|
+
ignoreCase?: boolean
|
|
10673
|
+
|
|
10674
|
+
alphabet?: string
|
|
10675
|
+
|
|
10676
|
+
locales?: (string | string[])
|
|
10677
|
+
|
|
10678
|
+
order?: ("asc" | "desc")
|
|
10536
10679
|
|
|
10537
10680
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
10538
10681
|
|
|
@@ -10571,23 +10714,21 @@ type PerfectionistSortSets = {
|
|
|
10571
10714
|
|
|
10572
10715
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
10573
10716
|
|
|
10574
|
-
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
10578
|
-
|
|
10717
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
10718
|
+
block?: (string[] | boolean | string)
|
|
10719
|
+
line?: (string[] | boolean | string)
|
|
10720
|
+
[k: string]: unknown | undefined
|
|
10721
|
+
})
|
|
10579
10722
|
|
|
10580
|
-
|
|
10723
|
+
partitionByNewLine?: boolean
|
|
10581
10724
|
|
|
10582
|
-
|
|
10725
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10583
10726
|
|
|
10584
10727
|
groups?: (string | string[] | {
|
|
10585
10728
|
|
|
10586
10729
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10587
10730
|
[k: string]: unknown | undefined
|
|
10588
10731
|
})[]
|
|
10589
|
-
|
|
10590
|
-
order?: ("asc" | "desc")
|
|
10591
10732
|
}[]
|
|
10592
10733
|
// ----- perfectionist/sort-switch-case -----
|
|
10593
10734
|
type PerfectionistSortSwitchCase = []|[{
|
|
@@ -10598,15 +10739,25 @@ type PerfectionistSortSwitchCase = []|[{
|
|
|
10598
10739
|
|
|
10599
10740
|
alphabet?: string
|
|
10600
10741
|
|
|
10601
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10602
|
-
|
|
10603
10742
|
locales?: (string | string[])
|
|
10604
10743
|
|
|
10605
10744
|
order?: ("asc" | "desc")
|
|
10745
|
+
|
|
10746
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10606
10747
|
}]
|
|
10607
10748
|
// ----- perfectionist/sort-union-types -----
|
|
10608
10749
|
type PerfectionistSortUnionTypes = []|[{
|
|
10609
10750
|
|
|
10751
|
+
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10752
|
+
|
|
10753
|
+
ignoreCase?: boolean
|
|
10754
|
+
|
|
10755
|
+
alphabet?: string
|
|
10756
|
+
|
|
10757
|
+
locales?: (string | string[])
|
|
10758
|
+
|
|
10759
|
+
order?: ("asc" | "desc")
|
|
10760
|
+
|
|
10610
10761
|
partitionByComment?: (string[] | boolean | string | {
|
|
10611
10762
|
block?: (string[] | boolean | string)
|
|
10612
10763
|
line?: (string[] | boolean | string)
|
|
@@ -10615,48 +10766,38 @@ type PerfectionistSortUnionTypes = []|[{
|
|
|
10615
10766
|
|
|
10616
10767
|
partitionByNewLine?: boolean
|
|
10617
10768
|
|
|
10618
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10619
|
-
|
|
10620
10769
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10621
10770
|
|
|
10622
|
-
ignoreCase?: boolean
|
|
10623
|
-
|
|
10624
|
-
alphabet?: string
|
|
10625
|
-
|
|
10626
10771
|
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10627
10772
|
|
|
10628
|
-
locales?: (string | string[])
|
|
10629
|
-
|
|
10630
10773
|
groups?: (string | string[] | {
|
|
10631
10774
|
|
|
10632
10775
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10633
10776
|
[k: string]: unknown | undefined
|
|
10634
10777
|
})[]
|
|
10635
|
-
|
|
10636
|
-
order?: ("asc" | "desc")
|
|
10637
10778
|
}]
|
|
10638
10779
|
// ----- perfectionist/sort-variable-declarations -----
|
|
10639
10780
|
type PerfectionistSortVariableDeclarations = []|[{
|
|
10640
10781
|
|
|
10641
|
-
partitionByComment?: (string[] | boolean | string | {
|
|
10642
|
-
block?: (string[] | boolean | string)
|
|
10643
|
-
line?: (string[] | boolean | string)
|
|
10644
|
-
[k: string]: unknown | undefined
|
|
10645
|
-
})
|
|
10646
|
-
|
|
10647
|
-
partitionByNewLine?: boolean
|
|
10648
|
-
|
|
10649
10782
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
10650
10783
|
|
|
10651
10784
|
ignoreCase?: boolean
|
|
10652
10785
|
|
|
10653
10786
|
alphabet?: string
|
|
10654
10787
|
|
|
10655
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10656
|
-
|
|
10657
10788
|
locales?: (string | string[])
|
|
10658
10789
|
|
|
10659
10790
|
order?: ("asc" | "desc")
|
|
10791
|
+
|
|
10792
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
10793
|
+
block?: (string[] | boolean | string)
|
|
10794
|
+
line?: (string[] | boolean | string)
|
|
10795
|
+
[k: string]: unknown | undefined
|
|
10796
|
+
})
|
|
10797
|
+
|
|
10798
|
+
partitionByNewLine?: boolean
|
|
10799
|
+
|
|
10800
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom")
|
|
10660
10801
|
}]
|
|
10661
10802
|
// ----- prefer-arrow-callback -----
|
|
10662
10803
|
type PreferArrowCallback = []|[{
|
|
@@ -12017,7 +12158,7 @@ type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent
|
|
|
12017
12158
|
// ----- style/quotes -----
|
|
12018
12159
|
type StyleQuotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "backtick"), ("avoid-escape" | {
|
|
12019
12160
|
avoidEscape?: boolean
|
|
12020
|
-
allowTemplateLiterals?: boolean
|
|
12161
|
+
allowTemplateLiterals?: (boolean | ("never" | "avoidEscape" | "always"))
|
|
12021
12162
|
ignoreStringLiterals?: boolean
|
|
12022
12163
|
})]
|
|
12023
12164
|
// ----- style/rest-spread-spacing -----
|
|
@@ -12199,6 +12340,10 @@ type TestPreferSnapshotHint = []|[("always" | "multi")]
|
|
|
12199
12340
|
type TestRequireHook = []|[{
|
|
12200
12341
|
allowedFunctionCalls?: string[]
|
|
12201
12342
|
}]
|
|
12343
|
+
// ----- test/require-mock-type-parameters -----
|
|
12344
|
+
type TestRequireMockTypeParameters = []|[{
|
|
12345
|
+
checkImportFunctions?: boolean
|
|
12346
|
+
}]
|
|
12202
12347
|
// ----- test/require-top-level-describe -----
|
|
12203
12348
|
type TestRequireTopLevelDescribe = []|[{
|
|
12204
12349
|
maxNumberOfTopLevelDescribes?: number
|
|
@@ -12394,6 +12539,8 @@ type TsConsistentTypeAssertions = []|[({
|
|
|
12394
12539
|
assertionStyle: "never"
|
|
12395
12540
|
} | {
|
|
12396
12541
|
|
|
12542
|
+
arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
12543
|
+
|
|
12397
12544
|
assertionStyle?: ("as" | "angle-bracket")
|
|
12398
12545
|
|
|
12399
12546
|
objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
@@ -12850,6 +12997,22 @@ type TsNoConfusingVoidExpression = []|[{
|
|
|
12850
12997
|
|
|
12851
12998
|
ignoreVoidReturningFunctions?: boolean
|
|
12852
12999
|
}]
|
|
13000
|
+
// ----- ts/no-deprecated -----
|
|
13001
|
+
type TsNoDeprecated = []|[{
|
|
13002
|
+
|
|
13003
|
+
allow?: (string | {
|
|
13004
|
+
from: "file"
|
|
13005
|
+
name: (string | [string, ...(string)[]])
|
|
13006
|
+
path?: string
|
|
13007
|
+
} | {
|
|
13008
|
+
from: "lib"
|
|
13009
|
+
name: (string | [string, ...(string)[]])
|
|
13010
|
+
} | {
|
|
13011
|
+
from: "package"
|
|
13012
|
+
name: (string | [string, ...(string)[]])
|
|
13013
|
+
package: string
|
|
13014
|
+
})[]
|
|
13015
|
+
}]
|
|
12853
13016
|
// ----- ts/no-duplicate-type-constituents -----
|
|
12854
13017
|
type TsNoDuplicateTypeConstituents = []|[{
|
|
12855
13018
|
|
|
@@ -12991,6 +13154,22 @@ type TsNoMisusedPromises = []|[{
|
|
|
12991
13154
|
variables?: boolean
|
|
12992
13155
|
})
|
|
12993
13156
|
}]
|
|
13157
|
+
// ----- ts/no-misused-spread -----
|
|
13158
|
+
type TsNoMisusedSpread = []|[{
|
|
13159
|
+
|
|
13160
|
+
allow?: (string | {
|
|
13161
|
+
from: "file"
|
|
13162
|
+
name: (string | [string, ...(string)[]])
|
|
13163
|
+
path?: string
|
|
13164
|
+
} | {
|
|
13165
|
+
from: "lib"
|
|
13166
|
+
name: (string | [string, ...(string)[]])
|
|
13167
|
+
} | {
|
|
13168
|
+
from: "package"
|
|
13169
|
+
name: (string | [string, ...(string)[]])
|
|
13170
|
+
package: string
|
|
13171
|
+
})[]
|
|
13172
|
+
}]
|
|
12994
13173
|
// ----- ts/no-namespace -----
|
|
12995
13174
|
type TsNoNamespace = []|[{
|
|
12996
13175
|
|
|
@@ -13066,7 +13245,7 @@ type TsNoShadow = []|[{
|
|
|
13066
13245
|
|
|
13067
13246
|
builtinGlobals?: boolean
|
|
13068
13247
|
|
|
13069
|
-
hoist?: ("all" | "functions" | "never")
|
|
13248
|
+
hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
|
|
13070
13249
|
|
|
13071
13250
|
ignoreFunctionTypeParameterNameValueShadow?: boolean
|
|
13072
13251
|
|
|
@@ -13106,11 +13285,13 @@ type TsNoUnnecessaryBooleanLiteralCompare = []|[{
|
|
|
13106
13285
|
allowComparingNullableBooleansToFalse?: boolean
|
|
13107
13286
|
|
|
13108
13287
|
allowComparingNullableBooleansToTrue?: boolean
|
|
13288
|
+
|
|
13289
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
13109
13290
|
}]
|
|
13110
13291
|
// ----- ts/no-unnecessary-condition -----
|
|
13111
13292
|
type TsNoUnnecessaryCondition = []|[{
|
|
13112
13293
|
|
|
13113
|
-
allowConstantLoopConditions?: boolean
|
|
13294
|
+
allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"))
|
|
13114
13295
|
|
|
13115
13296
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
13116
13297
|
|
|
@@ -13747,7 +13928,6 @@ type VueArrayElementNewline = []|[(_VueArrayElementNewlineBasicConfig | {
|
|
|
13747
13928
|
ArrayPattern?: _VueArrayElementNewlineBasicConfig
|
|
13748
13929
|
})]
|
|
13749
13930
|
type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
13750
|
-
consistent?: boolean
|
|
13751
13931
|
multiline?: boolean
|
|
13752
13932
|
minItems?: (number | null)
|
|
13753
13933
|
})
|
|
@@ -13816,14 +13996,9 @@ type VueCommaDangle = []|[(_VueCommaDangleValue | {
|
|
|
13816
13996
|
imports?: _VueCommaDangleValueWithIgnore
|
|
13817
13997
|
exports?: _VueCommaDangleValueWithIgnore
|
|
13818
13998
|
functions?: _VueCommaDangleValueWithIgnore
|
|
13819
|
-
importAttributes?: _VueCommaDangleValueWithIgnore
|
|
13820
|
-
dynamicImports?: _VueCommaDangleValueWithIgnore
|
|
13821
|
-
enums?: _VueCommaDangleValueWithIgnore
|
|
13822
|
-
generics?: _VueCommaDangleValueWithIgnore
|
|
13823
|
-
tuples?: _VueCommaDangleValueWithIgnore
|
|
13824
13999
|
})]
|
|
13825
14000
|
type _VueCommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline")
|
|
13826
|
-
type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "
|
|
14001
|
+
type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline")
|
|
13827
14002
|
// ----- vue/comma-spacing -----
|
|
13828
14003
|
type VueCommaSpacing = []|[{
|
|
13829
14004
|
before?: boolean
|
|
@@ -13894,10 +14069,6 @@ type VueFirstAttributeLinebreak = []|[{
|
|
|
13894
14069
|
// ----- vue/func-call-spacing -----
|
|
13895
14070
|
type VueFuncCallSpacing = ([]|["never"] | []|["always"]|["always", {
|
|
13896
14071
|
allowNewlines?: boolean
|
|
13897
|
-
optionalChain?: {
|
|
13898
|
-
before?: boolean
|
|
13899
|
-
after?: boolean
|
|
13900
|
-
}
|
|
13901
14072
|
}])
|
|
13902
14073
|
// ----- vue/html-button-has-type -----
|
|
13903
14074
|
type VueHtmlButtonHasType = []|[{
|
|
@@ -13979,7 +14150,6 @@ type VueKeySpacing = []|[({
|
|
|
13979
14150
|
mode?: ("strict" | "minimum")
|
|
13980
14151
|
beforeColon?: boolean
|
|
13981
14152
|
afterColon?: boolean
|
|
13982
|
-
ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
|
|
13983
14153
|
} | {
|
|
13984
14154
|
singleLine?: {
|
|
13985
14155
|
mode?: ("strict" | "minimum")
|
|
@@ -14216,10 +14386,6 @@ type VueKeywordSpacing = []|[{
|
|
|
14216
14386
|
before?: boolean
|
|
14217
14387
|
after?: boolean
|
|
14218
14388
|
}
|
|
14219
|
-
satisfies?: {
|
|
14220
|
-
before?: boolean
|
|
14221
|
-
after?: boolean
|
|
14222
|
-
}
|
|
14223
14389
|
set?: {
|
|
14224
14390
|
before?: boolean
|
|
14225
14391
|
after?: boolean
|
|
@@ -14296,10 +14462,6 @@ type VueKeywordSpacing = []|[{
|
|
|
14296
14462
|
before?: boolean
|
|
14297
14463
|
after?: boolean
|
|
14298
14464
|
}
|
|
14299
|
-
type?: {
|
|
14300
|
-
before?: boolean
|
|
14301
|
-
after?: boolean
|
|
14302
|
-
}
|
|
14303
14465
|
}
|
|
14304
14466
|
}]
|
|
14305
14467
|
// ----- vue/match-component-file-name -----
|
|
@@ -14428,10 +14590,7 @@ type VueMultilineHtmlElementContentNewline = []|[{
|
|
|
14428
14590
|
allowEmptyLines?: boolean
|
|
14429
14591
|
}]
|
|
14430
14592
|
// ----- vue/multiline-ternary -----
|
|
14431
|
-
type VueMultilineTernary = []|[("always" | "always-multiline" | "never")]
|
|
14432
|
-
ignoreJSX?: boolean
|
|
14433
|
-
[k: string]: unknown | undefined
|
|
14434
|
-
}]
|
|
14593
|
+
type VueMultilineTernary = []|[("always" | "always-multiline" | "never")]
|
|
14435
14594
|
// ----- vue/mustache-interpolation-spacing -----
|
|
14436
14595
|
type VueMustacheInterpolationSpacing = []|[("always" | "never")]
|
|
14437
14596
|
// ----- vue/new-line-between-multi-line-property -----
|
|
@@ -14506,7 +14665,6 @@ type VueNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
14506
14665
|
enforceForNewInMemberExpressions?: boolean
|
|
14507
14666
|
enforceForFunctionPrototypeMethods?: boolean
|
|
14508
14667
|
allowParensAfterCommentPattern?: string
|
|
14509
|
-
nestedConditionalExpressions?: boolean
|
|
14510
14668
|
}])
|
|
14511
14669
|
// ----- vue/no-irregular-whitespace -----
|
|
14512
14670
|
type VueNoIrregularWhitespace = []|[{
|
|
@@ -14749,16 +14907,6 @@ type VueObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
14749
14907
|
minProperties?: number
|
|
14750
14908
|
consistent?: boolean
|
|
14751
14909
|
})
|
|
14752
|
-
TSTypeLiteral?: (("always" | "never") | {
|
|
14753
|
-
multiline?: boolean
|
|
14754
|
-
minProperties?: number
|
|
14755
|
-
consistent?: boolean
|
|
14756
|
-
})
|
|
14757
|
-
TSInterfaceBody?: (("always" | "never") | {
|
|
14758
|
-
multiline?: boolean
|
|
14759
|
-
minProperties?: number
|
|
14760
|
-
consistent?: boolean
|
|
14761
|
-
})
|
|
14762
14910
|
})]
|
|
14763
14911
|
// ----- vue/object-curly-spacing -----
|
|
14764
14912
|
type VueObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -14780,7 +14928,7 @@ type VueObjectShorthand = ([]|[("always" | "methods" | "properties" | "never" |
|
|
|
14780
14928
|
avoidExplicitReturnArrows?: boolean
|
|
14781
14929
|
}])
|
|
14782
14930
|
// ----- vue/operator-linebreak -----
|
|
14783
|
-
type VueOperatorLinebreak = []|[(
|
|
14931
|
+
type VueOperatorLinebreak = []|[("after" | "before" | "none" | null)]|[("after" | "before" | "none" | null), {
|
|
14784
14932
|
overrides?: {
|
|
14785
14933
|
[k: string]: ("after" | "before" | "none" | "ignore") | undefined
|
|
14786
14934
|
}
|