@vinicunca/eslint-config 3.0.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +1163 -431
  2. package/dist/index.js +0 -1
  3. package/package.json +30 -28
package/dist/index.d.ts CHANGED
@@ -2836,8 +2836,8 @@ interface RuleOptions {
2836
2836
  */
2837
2837
  'radix'?: Linter.RuleEntry<Radix>
2838
2838
  /**
2839
- * disallow passing 'children' to void DOM elements
2840
- * @see https://eslint-react.xyz/docs/rules/dom-no-children-in-void-dom-elements
2839
+ * disallow void elements (AKA self-closing elements) from having children
2840
+ * @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
2841
2841
  */
2842
2842
  'react-dom/no-children-in-void-dom-elements'?: Linter.RuleEntry<[]>
2843
2843
  /**
@@ -2896,10 +2896,20 @@ interface RuleOptions {
2896
2896
  */
2897
2897
  'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
2898
2898
  /**
2899
- * enforce custom hooks to use at least one other hook inside
2900
- * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-redundant-custom-hook
2899
+ * disallow void elements (AKA self-closing elements) from having children
2900
+ * @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
2901
+ */
2902
+ 'react-dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>
2903
+ /**
2904
+ * enforce custom Hooks to use at least one other hook inside
2905
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-useless-custom-hooks
2901
2906
  */
2902
2907
  'react-hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
2908
+ /**
2909
+ * disallow unnecessary usage of 'useCallback'
2910
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
2911
+ */
2912
+ 'react-hooks-extra/ensure-use-callback-has-non-empty-deps'?: Linter.RuleEntry<[]>
2903
2913
  /**
2904
2914
  * disallow unnecessary usage of 'useMemo'
2905
2915
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
@@ -2916,8 +2926,8 @@ interface RuleOptions {
2916
2926
  */
2917
2927
  'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
2918
2928
  /**
2919
- * enforce custom hooks to use at least one other hook inside
2920
- * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-redundant-custom-hook
2929
+ * enforce custom Hooks to use at least one other hook inside
2930
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-useless-custom-hooks
2921
2931
  */
2922
2932
  'react-hooks-extra/no-redundant-custom-hook'?: Linter.RuleEntry<[]>
2923
2933
  /**
@@ -2930,6 +2940,11 @@ interface RuleOptions {
2930
2940
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
2931
2941
  */
2932
2942
  'react-hooks-extra/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>
2943
+ /**
2944
+ * enforce custom Hooks to use at least one other hook inside
2945
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-useless-custom-hooks
2946
+ */
2947
+ 'react-hooks-extra/no-useless-custom-hooks'?: Linter.RuleEntry<[]>
2933
2948
  /**
2934
2949
  * disallow function calls in 'useState' that aren't wrapped in an initializer function
2935
2950
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
@@ -2983,12 +2998,12 @@ interface RuleOptions {
2983
2998
  'react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
2984
2999
  /**
2985
3000
  * disallow duplicate props
2986
- * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
3001
+ * @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
2987
3002
  */
2988
3003
  'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
2989
3004
  /**
2990
- * a helper rule to mark variables as used
2991
- * @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
3005
+ * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
3006
+ * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
2992
3007
  */
2993
3008
  'react/jsx-uses-vars'?: Linter.RuleEntry<[]>
2994
3009
  /**
@@ -3071,6 +3086,11 @@ interface RuleOptions {
3071
3086
  * @see https://eslint-react.xyz/docs/rules/no-component-will-update
3072
3087
  */
3073
3088
  'react/no-component-will-update'?: Linter.RuleEntry<[]>
3089
+ /**
3090
+ * disallow the use of '<Context.Provider>'
3091
+ * @see https://eslint-react.xyz/docs/rules/no-context-provider
3092
+ */
3093
+ 'react/no-context-provider'?: Linter.RuleEntry<[]>
3074
3094
  /**
3075
3095
  * disallow using 'createRef' in function components
3076
3096
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
@@ -3086,11 +3106,21 @@ interface RuleOptions {
3086
3106
  * @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
3087
3107
  */
3088
3108
  'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
3109
+ /**
3110
+ * disallow duplicate props
3111
+ * @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
3112
+ */
3113
+ 'react/no-duplicate-jsx-props'?: Linter.RuleEntry<[]>
3089
3114
  /**
3090
3115
  * disallow duplicate keys when rendering list
3091
3116
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
3092
3117
  */
3093
3118
  'react/no-duplicate-key'?: Linter.RuleEntry<[]>
3119
+ /**
3120
+ * disallow the use of 'forwardRef'
3121
+ * @see https://eslint-react.xyz/docs/rules/no-forward-ref
3122
+ */
3123
+ 'react/no-forward-ref'?: Linter.RuleEntry<[]>
3094
3124
  /**
3095
3125
  * disallow implicit 'key' props
3096
3126
  * @see https://eslint-react.xyz/docs/rules/no-implicit-key
@@ -3181,6 +3211,11 @@ interface RuleOptions {
3181
3211
  * @see https://eslint-react.xyz/docs/rules/no-unused-state
3182
3212
  */
3183
3213
  'react/no-unused-state'?: Linter.RuleEntry<[]>
3214
+ /**
3215
+ * disallow the use of 'useContext'
3216
+ * @see https://eslint-react.xyz/docs/rules/no-use-context
3217
+ */
3218
+ 'react/no-use-context'?: Linter.RuleEntry<[]>
3184
3219
  /**
3185
3220
  * disallow unnecessary fragments
3186
3221
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
@@ -3211,6 +3246,11 @@ interface RuleOptions {
3211
3246
  * @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
3212
3247
  */
3213
3248
  'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
3249
+ /**
3250
+ * helpes `eslint/no-unused-vars` to correctly mark JSX variables as used.
3251
+ * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3252
+ */
3253
+ 'react/use-jsx-vars'?: Linter.RuleEntry<[]>
3214
3254
  /**
3215
3255
  * disallow confusing quantifiers
3216
3256
  * @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
@@ -3925,6 +3965,7 @@ interface RuleOptions {
3925
3965
  /**
3926
3966
  * Disabling Certificate Transparency monitoring is security-sensitive
3927
3967
  * @see https://sonarsource.github.io/rspec/#/rspec/S5742/javascript
3968
+ * @deprecated
3928
3969
  */
3929
3970
  'sonar/certificate-transparency'?: Linter.RuleEntry<SonarCertificateTransparency>
3930
3971
  /**
@@ -5576,7 +5617,7 @@ interface RuleOptions {
5576
5617
  'style/semi'?: Linter.RuleEntry<StyleSemi>
5577
5618
  /**
5578
5619
  * Enforce consistent spacing before and after semicolons
5579
- * @see https://eslint.style/rules/js/semi-spacing
5620
+ * @see https://eslint.style/rules/ts/semi-spacing
5580
5621
  */
5581
5622
  'style/semi-spacing'?: Linter.RuleEntry<StyleSemiSpacing>
5582
5623
  /**
@@ -6239,6 +6280,11 @@ interface RuleOptions {
6239
6280
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
6240
6281
  */
6241
6282
  'test/prefer-spy-on'?: Linter.RuleEntry<[]>
6283
+ /**
6284
+ * enforce using `toBe(true)` and `toBe(false)` over matchers that coerce types to boolean
6285
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-boolean-matchers.md
6286
+ */
6287
+ 'test/prefer-strict-boolean-matchers'?: Linter.RuleEntry<[]>
6242
6288
  /**
6243
6289
  * enforce strict equal over equal
6244
6290
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
@@ -6294,6 +6340,11 @@ interface RuleOptions {
6294
6340
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
6295
6341
  */
6296
6342
  'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
6343
+ /**
6344
+ * enforce using type parameters with vitest mock functions
6345
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
6346
+ */
6347
+ 'test/require-mock-type-parameters'?: Linter.RuleEntry<TestRequireMockTypeParameters>
6297
6348
  /**
6298
6349
  * require toThrow() to be called with an error message
6299
6350
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
@@ -6647,7 +6698,7 @@ interface RuleOptions {
6647
6698
  */
6648
6699
  'ts/no-for-in-array'?: Linter.RuleEntry<[]>
6649
6700
  /**
6650
- * Disallow the use of `eval()`-like methods
6701
+ * Disallow the use of `eval()`-like functions
6651
6702
  * @see https://typescript-eslint.io/rules/no-implied-eval
6652
6703
  */
6653
6704
  'ts/no-implied-eval'?: Linter.RuleEntry<[]>
@@ -7098,702 +7149,642 @@ interface RuleOptions {
7098
7149
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
7099
7150
  /**
7100
7151
  * Improve regexes by making them shorter, consistent, and safer.
7101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
7152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
7102
7153
  */
7103
7154
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
7104
7155
  /**
7105
7156
  * Enforce a specific parameter name in catch clauses.
7106
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
7157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
7107
7158
  */
7108
7159
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
7160
+ /**
7161
+ * Enforce consistent assertion style with `node:assert`.
7162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
7163
+ */
7164
+ 'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
7165
+ /**
7166
+ * Prefer passing `Date` directly to the constructor when cloning.
7167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
7168
+ */
7169
+ 'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
7109
7170
  /**
7110
7171
  * Use destructured variables over properties.
7111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
7172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
7112
7173
  */
7113
7174
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
7114
7175
  /**
7115
7176
  * Prefer consistent types when spreading a ternary in an array literal.
7116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
7177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
7117
7178
  */
7118
7179
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
7119
7180
  /**
7120
7181
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
7182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
7122
7183
  */
7123
7184
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
7124
7185
  /**
7125
7186
  * Move function definitions to the highest possible scope.
7126
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
7187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
7127
7188
  */
7128
7189
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
7129
7190
  /**
7130
7191
  * Enforce correct `Error` subclassing.
7131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
7192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
7132
7193
  */
7133
7194
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
7134
7195
  /**
7135
7196
  * Enforce no spaces between braces.
7136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
7197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
7137
7198
  */
7138
7199
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
7139
7200
  /**
7140
7201
  * Enforce passing a `message` value when creating a built-in error.
7141
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
7202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
7142
7203
  */
7143
7204
  'unicorn/error-message'?: Linter.RuleEntry<[]>
7144
7205
  /**
7145
7206
  * Require escape sequences to use uppercase values.
7146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
7207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
7147
7208
  */
7148
7209
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
7149
7210
  /**
7150
7211
  * Add expiration conditions to TODO comments.
7151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
7212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
7152
7213
  */
7153
7214
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
7154
7215
  /**
7155
7216
  * Enforce explicitly comparing the `length` or `size` property of a value.
7156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
7217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
7157
7218
  */
7158
7219
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
7159
7220
  /**
7160
7221
  * Enforce a case style for filenames.
7161
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
7222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
7162
7223
  */
7163
7224
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
7164
- /**
7165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
7166
- * @deprecated
7167
- */
7168
- 'unicorn/import-index'?: Linter.RuleEntry<[]>
7169
7225
  /**
7170
7226
  * Enforce specific import styles per module.
7171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
7227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
7172
7228
  */
7173
7229
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
7174
7230
  /**
7175
7231
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
7176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
7232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
7177
7233
  */
7178
7234
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
7179
7235
  /**
7180
7236
  * Enforce specifying rules to disable in `eslint-disable` comments.
7181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
7237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
7182
7238
  */
7183
7239
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
7240
+ /**
7241
+ * Disallow recursive access to `this` within getters and setters.
7242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
7243
+ */
7244
+ 'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
7184
7245
  /**
7185
7246
  * Disallow anonymous functions and classes as the default export.
7186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
7247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
7187
7248
  */
7188
7249
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
7189
7250
  /**
7190
7251
  * Prevent passing a function reference directly to iterator methods.
7191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
7252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
7192
7253
  */
7193
7254
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
7194
7255
  /**
7195
7256
  * Prefer `for…of` over the `forEach` method.
7196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
7257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
7197
7258
  */
7198
7259
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
7199
- /**
7200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
7201
- * @deprecated
7202
- */
7203
- 'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
7204
7260
  /**
7205
7261
  * Disallow using the `this` argument in array methods.
7206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
7262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
7207
7263
  */
7208
7264
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
7209
7265
  /**
7210
7266
  * Enforce combining multiple `Array#push()` into one call.
7211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
7267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
7212
7268
  */
7213
7269
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
7214
7270
  /**
7215
7271
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
7272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
7217
7273
  */
7218
7274
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
7219
7275
  /**
7220
7276
  * Disallow member access from await expression.
7221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
7277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
7222
7278
  */
7223
7279
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
7224
7280
  /**
7225
7281
  * Disallow using `await` in `Promise` method parameters.
7226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
7282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
7227
7283
  */
7228
7284
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
7229
7285
  /**
7230
7286
  * Do not use leading/trailing space between `console.log` parameters.
7231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
7287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
7232
7288
  */
7233
7289
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
7234
7290
  /**
7235
7291
  * Do not use `document.cookie` directly.
7236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
7292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
7237
7293
  */
7238
7294
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
7239
7295
  /**
7240
7296
  * Disallow empty files.
7241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
7297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
7242
7298
  */
7243
7299
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
7244
- /**
7245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
7246
- * @deprecated
7247
- */
7248
- 'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
7249
7300
  /**
7250
7301
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
7302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
7252
7303
  */
7253
7304
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
7254
7305
  /**
7255
7306
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
7256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
7307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
7257
7308
  */
7258
7309
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
7259
7310
  /**
7260
- * Require `Array.isArray()` instead of `instanceof Array`.
7261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
7311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
7312
+ * @deprecated
7262
7313
  */
7263
7314
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
7315
+ /**
7316
+ * Disallow `instanceof` with built-in objects
7317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
7318
+ */
7319
+ 'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
7264
7320
  /**
7265
7321
  * Disallow invalid options in `fetch()` and `new Request()`.
7266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
7322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
7267
7323
  */
7268
7324
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
7269
7325
  /**
7270
7326
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
7327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
7272
7328
  */
7273
7329
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
7274
7330
  /**
7275
7331
  * Disallow identifiers starting with `new` or `class`.
7276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
7332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
7277
7333
  */
7278
7334
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
7279
7335
  /**
7280
7336
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
7337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
7282
7338
  */
7283
7339
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
7284
7340
  /**
7285
7341
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
7342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
7287
7343
  */
7288
7344
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
7289
7345
  /**
7290
7346
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
7347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
7292
7348
  */
7293
7349
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
7350
+ /**
7351
+ * Disallow named usage of default import and export.
7352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
7353
+ */
7354
+ 'unicorn/no-named-default'?: Linter.RuleEntry<[]>
7294
7355
  /**
7295
7356
  * Disallow negated conditions.
7296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
7357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
7297
7358
  */
7298
7359
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
7299
7360
  /**
7300
7361
  * Disallow negated expression in equality check.
7301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
7362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
7302
7363
  */
7303
7364
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
7304
7365
  /**
7305
7366
  * Disallow nested ternary expressions.
7306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
7367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
7307
7368
  */
7308
7369
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
7309
7370
  /**
7310
7371
  * Disallow `new Array()`.
7311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
7372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
7312
7373
  */
7313
7374
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
7314
7375
  /**
7315
7376
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
7377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
7317
7378
  */
7318
7379
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
7319
7380
  /**
7320
7381
  * Disallow the use of the `null` literal.
7321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
7382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
7322
7383
  */
7323
7384
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
7324
7385
  /**
7325
7386
  * Disallow the use of objects as default parameters.
7326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
7387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
7327
7388
  */
7328
7389
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
7329
7390
  /**
7330
7391
  * Disallow `process.exit()`.
7331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
7392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
7332
7393
  */
7333
7394
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
7334
- /**
7335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
7336
- * @deprecated
7337
- */
7338
- 'unicorn/no-reduce'?: Linter.RuleEntry<[]>
7339
7395
  /**
7340
7396
  * Disallow passing single-element arrays to `Promise` methods.
7341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
7397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
7342
7398
  */
7343
7399
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
7344
7400
  /**
7345
7401
  * Disallow classes that only have static members.
7346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
7402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
7347
7403
  */
7348
7404
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
7349
7405
  /**
7350
7406
  * Disallow `then` property.
7351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
7407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
7352
7408
  */
7353
7409
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
7354
7410
  /**
7355
7411
  * Disallow assigning `this` to a variable.
7356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
7412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
7357
7413
  */
7358
7414
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
7359
7415
  /**
7360
7416
  * Disallow comparing `undefined` using `typeof`.
7361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
7417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
7362
7418
  */
7363
7419
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
7364
7420
  /**
7365
7421
  * Disallow awaiting non-promise values.
7366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
7422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
7367
7423
  */
7368
7424
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
7369
7425
  /**
7370
7426
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
7427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
7372
7428
  */
7373
7429
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
7374
7430
  /**
7375
7431
  * Disallow unreadable array destructuring.
7376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
7432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
7377
7433
  */
7378
7434
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
7379
7435
  /**
7380
7436
  * Disallow unreadable IIFEs.
7381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
7437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
7382
7438
  */
7383
7439
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
7384
- /**
7385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
7386
- * @deprecated
7387
- */
7388
- 'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
7389
7440
  /**
7390
7441
  * Disallow unused object properties.
7391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
7442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
7392
7443
  */
7393
7444
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
7394
7445
  /**
7395
7446
  * Disallow useless fallback when spreading in object literals.
7396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
7447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
7397
7448
  */
7398
7449
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
7399
7450
  /**
7400
7451
  * Disallow useless array length check.
7401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
7452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
7402
7453
  */
7403
7454
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
7404
7455
  /**
7405
7456
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
7457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
7407
7458
  */
7408
7459
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
7409
7460
  /**
7410
7461
  * Disallow unnecessary spread.
7411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
7462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
7412
7463
  */
7413
7464
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
7414
7465
  /**
7415
7466
  * Disallow useless case in switch statements.
7416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
7467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
7417
7468
  */
7418
7469
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
7419
7470
  /**
7420
7471
  * Disallow useless `undefined`.
7421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
7472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
7422
7473
  */
7423
7474
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
7424
7475
  /**
7425
7476
  * Disallow number literals with zero fractions or dangling dots.
7426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
7477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
7427
7478
  */
7428
7479
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
7429
7480
  /**
7430
7481
  * Enforce proper case for numeric literals.
7431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
7482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
7432
7483
  */
7433
7484
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
7434
7485
  /**
7435
7486
  * Enforce the style of numeric separators by correctly grouping digits.
7436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
7487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
7437
7488
  */
7438
7489
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
7439
7490
  /**
7440
7491
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
7492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
7442
7493
  */
7443
7494
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
7444
7495
  /**
7445
7496
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
7497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
7447
7498
  */
7448
7499
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
7449
7500
  /**
7450
7501
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
7502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
7452
7503
  */
7453
7504
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
7454
7505
  /**
7455
7506
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
7456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
7507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
7457
7508
  */
7458
7509
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
7459
7510
  /**
7460
7511
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
7512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
7462
7513
  */
7463
7514
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
7464
7515
  /**
7465
7516
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
7517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
7467
7518
  */
7468
7519
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
7469
7520
  /**
7470
7521
  * Prefer `.at()` method for index access and `String#charAt()`.
7471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
7522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
7472
7523
  */
7473
7524
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
7474
7525
  /**
7475
7526
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
7527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
7477
7528
  */
7478
7529
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
7479
7530
  /**
7480
7531
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
7532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
7482
7533
  */
7483
7534
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
7484
- /**
7485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
7486
- * @deprecated
7487
- */
7488
- 'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
7489
7535
  /**
7490
7536
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
7537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
7492
7538
  */
7493
7539
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
7494
7540
  /**
7495
7541
  * Prefer default parameters over reassignment.
7496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
7542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
7497
7543
  */
7498
7544
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
7499
7545
  /**
7500
7546
  * Prefer `Node#append()` over `Node#appendChild()`.
7501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
7547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
7502
7548
  */
7503
7549
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
7504
7550
  /**
7505
7551
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
7506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
7552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
7507
7553
  */
7508
7554
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
7509
7555
  /**
7510
7556
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
7557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
7512
7558
  */
7513
7559
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
7514
7560
  /**
7515
7561
  * Prefer `.textContent` over `.innerText`.
7516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
7562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
7517
7563
  */
7518
7564
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
7519
- /**
7520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
7521
- * @deprecated
7522
- */
7523
- 'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
7524
7565
  /**
7525
7566
  * Prefer `EventTarget` over `EventEmitter`.
7526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
7567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
7527
7568
  */
7528
7569
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
7529
- /**
7530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
7531
- * @deprecated
7532
- */
7533
- 'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
7534
7570
  /**
7535
7571
  * Prefer `export…from` when re-exporting.
7536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
7572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
7537
7573
  */
7538
7574
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
7539
- /**
7540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
7541
- * @deprecated
7542
- */
7543
- 'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
7544
7575
  /**
7545
7576
  * Prefer `globalThis` over `window`, `self`, and `global`.
7546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
7577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
7547
7578
  */
7548
7579
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
7549
7580
  /**
7550
7581
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
7582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
7552
7583
  */
7553
7584
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
7554
7585
  /**
7555
7586
  * Prefer reading a JSON file as a buffer.
7556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
7587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
7557
7588
  */
7558
7589
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
7559
7590
  /**
7560
7591
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
7561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
7592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
7562
7593
  */
7563
7594
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
7564
7595
  /**
7565
7596
  * Prefer using a logical operator over a ternary.
7566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
7597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7567
7598
  */
7568
7599
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
7569
7600
  /**
7570
7601
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
7602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
7572
7603
  */
7573
7604
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
7574
7605
  /**
7575
7606
  * Enforce the use of `Math.trunc` instead of bitwise operators.
7576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
7607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
7577
7608
  */
7578
7609
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
7579
7610
  /**
7580
7611
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
7581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
7612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
7582
7613
  */
7583
7614
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
7584
7615
  /**
7585
7616
  * Prefer modern `Math` APIs over legacy patterns.
7586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
7617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
7587
7618
  */
7588
7619
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
7589
7620
  /**
7590
7621
  * Prefer JavaScript modules (ESM) over CommonJS.
7591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
7622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
7592
7623
  */
7593
7624
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
7594
7625
  /**
7595
7626
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
7627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
7597
7628
  */
7598
7629
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
7599
7630
  /**
7600
7631
  * Prefer negative index over `.length - index` when possible.
7601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
7632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
7602
7633
  */
7603
7634
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
7604
- /**
7605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
7606
- * @deprecated
7607
- */
7608
- 'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
7609
7635
  /**
7610
7636
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
7611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
7637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
7612
7638
  */
7613
7639
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
7614
- /**
7615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
7616
- * @deprecated
7617
- */
7618
- 'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
7619
7640
  /**
7620
7641
  * Prefer `Number` static properties over global ones.
7621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
7642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
7622
7643
  */
7623
7644
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
7624
7645
  /**
7625
7646
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
7647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
7627
7648
  */
7628
7649
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
7629
- /**
7630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
7631
- * @deprecated
7632
- */
7633
- 'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
7634
7650
  /**
7635
7651
  * Prefer omitting the `catch` binding parameter.
7636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
7652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
7637
7653
  */
7638
7654
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
7639
7655
  /**
7640
7656
  * Prefer borrowing methods from the prototype instead of the instance.
7641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
7657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
7642
7658
  */
7643
7659
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
7644
7660
  /**
7645
7661
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
7646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
7662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
7647
7663
  */
7648
7664
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
7649
7665
  /**
7650
7666
  * Prefer `Reflect.apply()` over `Function#apply()`.
7651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
7667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
7652
7668
  */
7653
7669
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
7654
7670
  /**
7655
7671
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
7656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
7672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
7657
7673
  */
7658
7674
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
7659
- /**
7660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
7661
- * @deprecated
7662
- */
7663
- 'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
7664
7675
  /**
7665
7676
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
7677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
7667
7678
  */
7668
7679
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
7669
7680
  /**
7670
7681
  * Prefer using `Set#size` instead of `Array#length`.
7671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
7682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
7672
7683
  */
7673
7684
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
7674
7685
  /**
7675
7686
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
7676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
7687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
7677
7688
  */
7678
7689
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
7679
- /**
7680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
7681
- * @deprecated
7682
- */
7683
- 'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
7684
7690
  /**
7685
7691
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
7692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
7687
7693
  */
7688
7694
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
7689
7695
  /**
7690
7696
  * Prefer `String#replaceAll()` over regex searches with the global flag.
7691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
7697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
7692
7698
  */
7693
7699
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
7694
7700
  /**
7695
7701
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
7702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
7697
7703
  */
7698
7704
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
7699
7705
  /**
7700
7706
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
7701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
7707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
7702
7708
  */
7703
7709
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
7704
7710
  /**
7705
7711
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
7712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
7707
7713
  */
7708
7714
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
7709
7715
  /**
7710
7716
  * Prefer using `structuredClone` to create a deep clone.
7711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
7717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
7712
7718
  */
7713
7719
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
7714
7720
  /**
7715
7721
  * Prefer `switch` over multiple `else-if`.
7716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
7722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
7717
7723
  */
7718
7724
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
7719
7725
  /**
7720
7726
  * Prefer ternary expressions over simple `if-else` statements.
7721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
7727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
7722
7728
  */
7723
7729
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
7724
- /**
7725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
7726
- * @deprecated
7727
- */
7728
- 'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
7729
7730
  /**
7730
7731
  * Prefer top-level await over top-level promises and async function calls.
7731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
7732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
7732
7733
  */
7733
7734
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
7734
- /**
7735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
7736
- * @deprecated
7737
- */
7738
- 'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
7739
7735
  /**
7740
7736
  * Enforce throwing `TypeError` in type checking conditions.
7741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
7737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
7742
7738
  */
7743
7739
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
7744
7740
  /**
7745
7741
  * Prevent abbreviations.
7746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
7742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
7747
7743
  */
7748
7744
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
7749
- /**
7750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
7751
- * @deprecated
7752
- */
7753
- 'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
7754
7745
  /**
7755
7746
  * Enforce consistent relative URL style.
7756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
7747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
7757
7748
  */
7758
7749
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
7759
7750
  /**
7760
7751
  * Enforce using the separator argument with `Array#join()`.
7761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
7752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
7762
7753
  */
7763
7754
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
7764
7755
  /**
7765
7756
  * Enforce using the digits argument with `Number#toFixed()`.
7766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
7757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7767
7758
  */
7768
7759
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
7769
7760
  /**
7770
7761
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
7762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
7772
7763
  */
7773
7764
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
7774
7765
  /**
7775
7766
  * Enforce better string content.
7776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
7767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
7777
7768
  */
7778
7769
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
7779
7770
  /**
7780
7771
  * Enforce consistent brace style for `case` clauses.
7781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
7772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
7782
7773
  */
7783
7774
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
7784
7775
  /**
7785
7776
  * Fix whitespace-insensitive template indentation.
7786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
7777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
7787
7778
  */
7788
7779
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
7789
7780
  /**
7790
7781
  * Enforce consistent case for text encoding identifiers.
7791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
7782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
7792
7783
  */
7793
7784
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
7794
7785
  /**
7795
7786
  * Require `new` when creating an error.
7796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
7787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
7797
7788
  */
7798
7789
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
7799
7790
  /**
@@ -8053,7 +8044,7 @@ interface RuleOptions {
8053
8044
  */
8054
8045
  'vue/jsx-uses-vars'?: Linter.RuleEntry<[]>
8055
8046
  /**
8056
- * Enforce consistent spacing between property names and type annotations in types and interfaces in `<template>`
8047
+ * Enforce consistent spacing between keys and values in object literal properties in `<template>`
8057
8048
  * @see https://eslint.vuejs.org/rules/key-spacing.html
8058
8049
  */
8059
8050
  'vue/key-spacing'?: Linter.RuleEntry<VueKeySpacing>
@@ -8746,7 +8737,7 @@ interface RuleOptions {
8746
8737
  */
8747
8738
  'vue/prop-name-casing'?: Linter.RuleEntry<VuePropNameCasing>
8748
8739
  /**
8749
- * Require quotes around object literal, type literal, interfaces and enums property names in `<template>`
8740
+ * Require quotes around object literal property names in `<template>`
8750
8741
  * @see https://eslint.vuejs.org/rules/quote-props.html
8751
8742
  */
8752
8743
  'vue/quote-props'?: Linter.RuleEntry<VueQuoteProps>
@@ -11835,6 +11826,14 @@ type PerfectionistSortArrayIncludes = {
11835
11826
 
11836
11827
  specialCharacters?: ("remove" | "trim" | "keep")
11837
11828
 
11829
+ fallbackSort?: {
11830
+
11831
+ order?: ("asc" | "desc")
11832
+
11833
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11834
+ [k: string]: unknown | undefined
11835
+ }
11836
+
11838
11837
  ignoreCase?: boolean
11839
11838
 
11840
11839
  alphabet?: string
@@ -11843,6 +11842,8 @@ type PerfectionistSortArrayIncludes = {
11843
11842
 
11844
11843
  order?: ("asc" | "desc")
11845
11844
 
11845
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11846
+
11846
11847
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
11847
11848
 
11848
11849
  customGroups?: ({
@@ -11858,7 +11859,13 @@ type PerfectionistSortArrayIncludes = {
11858
11859
 
11859
11860
  selector?: ("literal" | "spread")
11860
11861
 
11861
- elementNamePattern?: string
11862
+ elementNamePattern?: (({
11863
+ pattern?: string
11864
+ flags?: string
11865
+ } | string)[] | ({
11866
+ pattern?: string
11867
+ flags?: string
11868
+ } | string))
11862
11869
  }[]
11863
11870
  } | {
11864
11871
 
@@ -11872,18 +11879,46 @@ type PerfectionistSortArrayIncludes = {
11872
11879
 
11873
11880
  selector?: ("literal" | "spread")
11874
11881
 
11875
- elementNamePattern?: string
11882
+ elementNamePattern?: (({
11883
+ pattern?: string
11884
+ flags?: string
11885
+ } | string)[] | ({
11886
+ pattern?: string
11887
+ flags?: string
11888
+ } | string))
11876
11889
  })[]
11877
11890
  useConfigurationIf?: {
11878
- allNamesMatchPattern?: string
11891
+
11892
+ allNamesMatchPattern?: (({
11893
+ pattern?: string
11894
+ flags?: string
11895
+ } | string)[] | ({
11896
+ pattern?: string
11897
+ flags?: string
11898
+ } | string))
11879
11899
  }
11880
11900
 
11881
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11882
-
11883
- partitionByComment?: (string[] | boolean | string | {
11884
- block?: (string[] | boolean | string)
11885
- line?: (string[] | boolean | string)
11886
- [k: string]: unknown | undefined
11901
+ partitionByComment?: (boolean | (({
11902
+ pattern?: string
11903
+ flags?: string
11904
+ } | string)[] | ({
11905
+ pattern?: string
11906
+ flags?: string
11907
+ } | string)) | {
11908
+ block?: (boolean | (({
11909
+ pattern?: string
11910
+ flags?: string
11911
+ } | string)[] | ({
11912
+ pattern?: string
11913
+ flags?: string
11914
+ } | string)))
11915
+ line?: (boolean | (({
11916
+ pattern?: string
11917
+ flags?: string
11918
+ } | string)[] | ({
11919
+ pattern?: string
11920
+ flags?: string
11921
+ } | string)))
11887
11922
  })
11888
11923
 
11889
11924
  partitionByNewLine?: boolean
@@ -11893,7 +11928,6 @@ type PerfectionistSortArrayIncludes = {
11893
11928
  groups?: (string | string[] | {
11894
11929
 
11895
11930
  newlinesBetween?: ("ignore" | "always" | "never")
11896
- [k: string]: unknown | undefined
11897
11931
  })[]
11898
11932
  }[]
11899
11933
  // ----- perfectionist/sort-classes -----
@@ -11901,6 +11935,14 @@ type PerfectionistSortClasses = []|[{
11901
11935
 
11902
11936
  specialCharacters?: ("remove" | "trim" | "keep")
11903
11937
 
11938
+ fallbackSort?: {
11939
+
11940
+ order?: ("asc" | "desc")
11941
+
11942
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11943
+ [k: string]: unknown | undefined
11944
+ }
11945
+
11904
11946
  ignoreCase?: boolean
11905
11947
 
11906
11948
  alphabet?: string
@@ -11909,7 +11951,7 @@ type PerfectionistSortClasses = []|[{
11909
11951
 
11910
11952
  order?: ("asc" | "desc")
11911
11953
 
11912
- ignoreCallbackDependenciesPatterns?: string[]
11954
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
11913
11955
 
11914
11956
  customGroups?: ({
11915
11957
 
@@ -11922,15 +11964,33 @@ type PerfectionistSortClasses = []|[{
11922
11964
  newlinesInside?: ("always" | "never")
11923
11965
  anyOf?: {
11924
11966
 
11925
- decoratorNamePattern?: string
11926
-
11927
11967
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
11928
11968
 
11929
11969
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
11930
11970
 
11931
- elementValuePattern?: string
11971
+ decoratorNamePattern?: (({
11972
+ pattern?: string
11973
+ flags?: string
11974
+ } | string)[] | ({
11975
+ pattern?: string
11976
+ flags?: string
11977
+ } | string))
11978
+
11979
+ elementValuePattern?: (({
11980
+ pattern?: string
11981
+ flags?: string
11982
+ } | string)[] | ({
11983
+ pattern?: string
11984
+ flags?: string
11985
+ } | string))
11932
11986
 
11933
- elementNamePattern?: string
11987
+ elementNamePattern?: (({
11988
+ pattern?: string
11989
+ flags?: string
11990
+ } | string)[] | ({
11991
+ pattern?: string
11992
+ flags?: string
11993
+ } | string))
11934
11994
  }[]
11935
11995
  } | {
11936
11996
 
@@ -11942,33 +12002,73 @@ type PerfectionistSortClasses = []|[{
11942
12002
 
11943
12003
  newlinesInside?: ("always" | "never")
11944
12004
 
11945
- decoratorNamePattern?: string
11946
-
11947
12005
  modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
11948
12006
 
11949
12007
  selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
11950
12008
 
11951
- elementValuePattern?: string
12009
+ decoratorNamePattern?: (({
12010
+ pattern?: string
12011
+ flags?: string
12012
+ } | string)[] | ({
12013
+ pattern?: string
12014
+ flags?: string
12015
+ } | string))
11952
12016
 
11953
- elementNamePattern?: string
12017
+ elementValuePattern?: (({
12018
+ pattern?: string
12019
+ flags?: string
12020
+ } | string)[] | ({
12021
+ pattern?: string
12022
+ flags?: string
12023
+ } | string))
12024
+
12025
+ elementNamePattern?: (({
12026
+ pattern?: string
12027
+ flags?: string
12028
+ } | string)[] | ({
12029
+ pattern?: string
12030
+ flags?: string
12031
+ } | string))
11954
12032
  })[]
11955
12033
 
11956
- partitionByComment?: (string[] | boolean | string | {
11957
- block?: (string[] | boolean | string)
11958
- line?: (string[] | boolean | string)
11959
- [k: string]: unknown | undefined
12034
+ ignoreCallbackDependenciesPatterns?: (({
12035
+ pattern?: string
12036
+ flags?: string
12037
+ } | string)[] | ({
12038
+ pattern?: string
12039
+ flags?: string
12040
+ } | string))
12041
+
12042
+ partitionByComment?: (boolean | (({
12043
+ pattern?: string
12044
+ flags?: string
12045
+ } | string)[] | ({
12046
+ pattern?: string
12047
+ flags?: string
12048
+ } | string)) | {
12049
+ block?: (boolean | (({
12050
+ pattern?: string
12051
+ flags?: string
12052
+ } | string)[] | ({
12053
+ pattern?: string
12054
+ flags?: string
12055
+ } | string)))
12056
+ line?: (boolean | (({
12057
+ pattern?: string
12058
+ flags?: string
12059
+ } | string)[] | ({
12060
+ pattern?: string
12061
+ flags?: string
12062
+ } | string)))
11960
12063
  })
11961
12064
 
11962
12065
  partitionByNewLine?: boolean
11963
12066
 
11964
12067
  newlinesBetween?: ("ignore" | "always" | "never")
11965
12068
 
11966
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
11967
-
11968
12069
  groups?: (string | string[] | {
11969
12070
 
11970
12071
  newlinesBetween?: ("ignore" | "always" | "never")
11971
- [k: string]: unknown | undefined
11972
12072
  })[]
11973
12073
  }]
11974
12074
  // ----- perfectionist/sort-decorators -----
@@ -11976,6 +12076,14 @@ type PerfectionistSortDecorators = []|[{
11976
12076
 
11977
12077
  specialCharacters?: ("remove" | "trim" | "keep")
11978
12078
 
12079
+ fallbackSort?: {
12080
+
12081
+ order?: ("asc" | "desc")
12082
+
12083
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12084
+ [k: string]: unknown | undefined
12085
+ }
12086
+
11979
12087
  ignoreCase?: boolean
11980
12088
 
11981
12089
  alphabet?: string
@@ -11984,6 +12092,8 @@ type PerfectionistSortDecorators = []|[{
11984
12092
 
11985
12093
  order?: ("asc" | "desc")
11986
12094
 
12095
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12096
+
11987
12097
  sortOnParameters?: boolean
11988
12098
 
11989
12099
  sortOnProperties?: boolean
@@ -11994,22 +12104,36 @@ type PerfectionistSortDecorators = []|[{
11994
12104
 
11995
12105
  sortOnClasses?: boolean
11996
12106
 
11997
- partitionByComment?: (string[] | boolean | string | {
11998
- block?: (string[] | boolean | string)
11999
- line?: (string[] | boolean | string)
12000
- [k: string]: unknown | undefined
12107
+ partitionByComment?: (boolean | (({
12108
+ pattern?: string
12109
+ flags?: string
12110
+ } | string)[] | ({
12111
+ pattern?: string
12112
+ flags?: string
12113
+ } | string)) | {
12114
+ block?: (boolean | (({
12115
+ pattern?: string
12116
+ flags?: string
12117
+ } | string)[] | ({
12118
+ pattern?: string
12119
+ flags?: string
12120
+ } | string)))
12121
+ line?: (boolean | (({
12122
+ pattern?: string
12123
+ flags?: string
12124
+ } | string)[] | ({
12125
+ pattern?: string
12126
+ flags?: string
12127
+ } | string)))
12001
12128
  })
12002
12129
 
12003
12130
  customGroups?: {
12004
12131
  [k: string]: (string | string[]) | undefined
12005
12132
  }
12006
12133
 
12007
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12008
-
12009
12134
  groups?: (string | string[] | {
12010
12135
 
12011
12136
  newlinesBetween?: ("ignore" | "always" | "never")
12012
- [k: string]: unknown | undefined
12013
12137
  })[]
12014
12138
  }]
12015
12139
  // ----- perfectionist/sort-enums -----
@@ -12017,6 +12141,14 @@ type PerfectionistSortEnums = []|[{
12017
12141
 
12018
12142
  specialCharacters?: ("remove" | "trim" | "keep")
12019
12143
 
12144
+ fallbackSort?: {
12145
+
12146
+ order?: ("asc" | "desc")
12147
+
12148
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12149
+ [k: string]: unknown | undefined
12150
+ }
12151
+
12020
12152
  ignoreCase?: boolean
12021
12153
 
12022
12154
  alphabet?: string
@@ -12025,25 +12157,112 @@ type PerfectionistSortEnums = []|[{
12025
12157
 
12026
12158
  order?: ("asc" | "desc")
12027
12159
 
12160
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12161
+
12028
12162
  forceNumericSort?: boolean
12163
+ customGroups?: ({
12164
+ [k: string]: (string | string[]) | undefined
12165
+ } | ({
12166
+
12167
+ groupName?: string
12168
+
12169
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
12170
+
12171
+ order?: ("desc" | "asc")
12172
+
12173
+ newlinesInside?: ("always" | "never")
12174
+ anyOf?: {
12175
+
12176
+ elementValuePattern?: (({
12177
+ pattern?: string
12178
+ flags?: string
12179
+ } | string)[] | ({
12180
+ pattern?: string
12181
+ flags?: string
12182
+ } | string))
12183
+
12184
+ elementNamePattern?: (({
12185
+ pattern?: string
12186
+ flags?: string
12187
+ } | string)[] | ({
12188
+ pattern?: string
12189
+ flags?: string
12190
+ } | string))
12191
+ }[]
12192
+ } | {
12193
+
12194
+ groupName?: string
12195
+
12196
+ type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
12197
+
12198
+ order?: ("desc" | "asc")
12199
+
12200
+ newlinesInside?: ("always" | "never")
12201
+
12202
+ elementValuePattern?: (({
12203
+ pattern?: string
12204
+ flags?: string
12205
+ } | string)[] | ({
12206
+ pattern?: string
12207
+ flags?: string
12208
+ } | string))
12209
+
12210
+ elementNamePattern?: (({
12211
+ pattern?: string
12212
+ flags?: string
12213
+ } | string)[] | ({
12214
+ pattern?: string
12215
+ flags?: string
12216
+ } | string))
12217
+ })[])
12029
12218
 
12030
12219
  sortByValue?: boolean
12031
12220
 
12032
- partitionByComment?: (string[] | boolean | string | {
12033
- block?: (string[] | boolean | string)
12034
- line?: (string[] | boolean | string)
12035
- [k: string]: unknown | undefined
12221
+ partitionByComment?: (boolean | (({
12222
+ pattern?: string
12223
+ flags?: string
12224
+ } | string)[] | ({
12225
+ pattern?: string
12226
+ flags?: string
12227
+ } | string)) | {
12228
+ block?: (boolean | (({
12229
+ pattern?: string
12230
+ flags?: string
12231
+ } | string)[] | ({
12232
+ pattern?: string
12233
+ flags?: string
12234
+ } | string)))
12235
+ line?: (boolean | (({
12236
+ pattern?: string
12237
+ flags?: string
12238
+ } | string)[] | ({
12239
+ pattern?: string
12240
+ flags?: string
12241
+ } | string)))
12036
12242
  })
12037
12243
 
12038
12244
  partitionByNewLine?: boolean
12039
12245
 
12040
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12246
+ newlinesBetween?: ("ignore" | "always" | "never")
12247
+
12248
+ groups?: (string | string[] | {
12249
+
12250
+ newlinesBetween?: ("ignore" | "always" | "never")
12251
+ })[]
12041
12252
  }]
12042
12253
  // ----- perfectionist/sort-exports -----
12043
12254
  type PerfectionistSortExports = []|[{
12044
12255
 
12045
12256
  specialCharacters?: ("remove" | "trim" | "keep")
12046
12257
 
12258
+ fallbackSort?: {
12259
+
12260
+ order?: ("asc" | "desc")
12261
+
12262
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12263
+ [k: string]: unknown | undefined
12264
+ }
12265
+
12047
12266
  ignoreCase?: boolean
12048
12267
 
12049
12268
  alphabet?: string
@@ -12052,23 +12271,48 @@ type PerfectionistSortExports = []|[{
12052
12271
 
12053
12272
  order?: ("asc" | "desc")
12054
12273
 
12274
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12275
+
12055
12276
  groupKind?: ("mixed" | "values-first" | "types-first")
12056
12277
 
12057
- partitionByComment?: (string[] | boolean | string | {
12058
- block?: (string[] | boolean | string)
12059
- line?: (string[] | boolean | string)
12060
- [k: string]: unknown | undefined
12278
+ partitionByComment?: (boolean | (({
12279
+ pattern?: string
12280
+ flags?: string
12281
+ } | string)[] | ({
12282
+ pattern?: string
12283
+ flags?: string
12284
+ } | string)) | {
12285
+ block?: (boolean | (({
12286
+ pattern?: string
12287
+ flags?: string
12288
+ } | string)[] | ({
12289
+ pattern?: string
12290
+ flags?: string
12291
+ } | string)))
12292
+ line?: (boolean | (({
12293
+ pattern?: string
12294
+ flags?: string
12295
+ } | string)[] | ({
12296
+ pattern?: string
12297
+ flags?: string
12298
+ } | string)))
12061
12299
  })
12062
12300
 
12063
12301
  partitionByNewLine?: boolean
12064
-
12065
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12066
12302
  }]
12067
12303
  // ----- perfectionist/sort-heritage-clauses -----
12068
12304
  type PerfectionistSortHeritageClauses = []|[{
12069
12305
 
12070
12306
  specialCharacters?: ("remove" | "trim" | "keep")
12071
12307
 
12308
+ fallbackSort?: {
12309
+
12310
+ order?: ("asc" | "desc")
12311
+
12312
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12313
+ [k: string]: unknown | undefined
12314
+ }
12315
+
12072
12316
  ignoreCase?: boolean
12073
12317
 
12074
12318
  alphabet?: string
@@ -12077,16 +12321,15 @@ type PerfectionistSortHeritageClauses = []|[{
12077
12321
 
12078
12322
  order?: ("asc" | "desc")
12079
12323
 
12324
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12325
+
12080
12326
  customGroups?: {
12081
12327
  [k: string]: (string | string[]) | undefined
12082
12328
  }
12083
12329
 
12084
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12085
-
12086
12330
  groups?: (string | string[] | {
12087
12331
 
12088
12332
  newlinesBetween?: ("ignore" | "always" | "never")
12089
- [k: string]: unknown | undefined
12090
12333
  })[]
12091
12334
  }]
12092
12335
  // ----- perfectionist/sort-imports -----
@@ -12095,6 +12338,14 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
12095
12338
 
12096
12339
  specialCharacters?: ("remove" | "trim" | "keep")
12097
12340
 
12341
+ fallbackSort?: {
12342
+
12343
+ order?: ("asc" | "desc")
12344
+
12345
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12346
+ [k: string]: unknown | undefined
12347
+ }
12348
+
12098
12349
  ignoreCase?: boolean
12099
12350
 
12100
12351
  alphabet?: string
@@ -12103,6 +12354,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
12103
12354
 
12104
12355
  order?: ("asc" | "desc")
12105
12356
 
12357
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12358
+
12106
12359
  customGroups?: {
12107
12360
 
12108
12361
  value?: {
@@ -12114,8 +12367,6 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
12114
12367
  }
12115
12368
  }
12116
12369
 
12117
- internalPattern?: string[]
12118
-
12119
12370
  maxLineLength?: number
12120
12371
 
12121
12372
  sortSideEffects?: boolean
@@ -12124,22 +12375,44 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
12124
12375
 
12125
12376
  tsconfigRootDir?: string
12126
12377
 
12127
- partitionByComment?: (string[] | boolean | string | {
12128
- block?: (string[] | boolean | string)
12129
- line?: (string[] | boolean | string)
12130
- [k: string]: unknown | undefined
12378
+ partitionByComment?: (boolean | (({
12379
+ pattern?: string
12380
+ flags?: string
12381
+ } | string)[] | ({
12382
+ pattern?: string
12383
+ flags?: string
12384
+ } | string)) | {
12385
+ block?: (boolean | (({
12386
+ pattern?: string
12387
+ flags?: string
12388
+ } | string)[] | ({
12389
+ pattern?: string
12390
+ flags?: string
12391
+ } | string)))
12392
+ line?: (boolean | (({
12393
+ pattern?: string
12394
+ flags?: string
12395
+ } | string)[] | ({
12396
+ pattern?: string
12397
+ flags?: string
12398
+ } | string)))
12131
12399
  })
12132
12400
 
12133
12401
  partitionByNewLine?: boolean
12134
12402
 
12135
12403
  newlinesBetween?: ("ignore" | "always" | "never")
12136
12404
 
12137
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12405
+ internalPattern?: (({
12406
+ pattern?: string
12407
+ flags?: string
12408
+ } | string)[] | ({
12409
+ pattern?: string
12410
+ flags?: string
12411
+ } | string))
12138
12412
 
12139
12413
  groups?: (string | string[] | {
12140
12414
 
12141
12415
  newlinesBetween?: ("ignore" | "always" | "never")
12142
- [k: string]: unknown | undefined
12143
12416
  })[]
12144
12417
  })
12145
12418
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
@@ -12154,6 +12427,14 @@ type PerfectionistSortInterfaces = {
12154
12427
 
12155
12428
  specialCharacters?: ("remove" | "trim" | "keep")
12156
12429
 
12430
+ fallbackSort?: {
12431
+
12432
+ order?: ("asc" | "desc")
12433
+
12434
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12435
+ [k: string]: unknown | undefined
12436
+ }
12437
+
12157
12438
  ignoreCase?: boolean
12158
12439
 
12159
12440
  alphabet?: string
@@ -12162,11 +12443,7 @@ type PerfectionistSortInterfaces = {
12162
12443
 
12163
12444
  order?: ("asc" | "desc")
12164
12445
 
12165
- ignorePattern?: string[]
12166
- useConfigurationIf?: {
12167
- allNamesMatchPattern?: string
12168
- declarationMatchesPattern?: string
12169
- }
12446
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12170
12447
  customGroups?: ({
12171
12448
  [k: string]: (string | string[]) | undefined
12172
12449
  } | ({
@@ -12184,7 +12461,13 @@ type PerfectionistSortInterfaces = {
12184
12461
 
12185
12462
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
12186
12463
 
12187
- elementNamePattern?: string
12464
+ elementNamePattern?: (({
12465
+ pattern?: string
12466
+ flags?: string
12467
+ } | string)[] | ({
12468
+ pattern?: string
12469
+ flags?: string
12470
+ } | string))
12188
12471
  }[]
12189
12472
  } | {
12190
12473
 
@@ -12200,27 +12483,73 @@ type PerfectionistSortInterfaces = {
12200
12483
 
12201
12484
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
12202
12485
 
12203
- elementNamePattern?: string
12486
+ elementNamePattern?: (({
12487
+ pattern?: string
12488
+ flags?: string
12489
+ } | string)[] | ({
12490
+ pattern?: string
12491
+ flags?: string
12492
+ } | string))
12204
12493
  })[])
12494
+ useConfigurationIf?: {
12495
+
12496
+ allNamesMatchPattern?: (({
12497
+ pattern?: string
12498
+ flags?: string
12499
+ } | string)[] | ({
12500
+ pattern?: string
12501
+ flags?: string
12502
+ } | string))
12503
+
12504
+ declarationMatchesPattern?: (({
12505
+ pattern?: string
12506
+ flags?: string
12507
+ } | string)[] | ({
12508
+ pattern?: string
12509
+ flags?: string
12510
+ } | string))
12511
+ }
12205
12512
 
12206
12513
  groupKind?: ("mixed" | "required-first" | "optional-first")
12207
12514
 
12208
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12209
-
12210
- partitionByComment?: (string[] | boolean | string | {
12211
- block?: (string[] | boolean | string)
12212
- line?: (string[] | boolean | string)
12213
- [k: string]: unknown | undefined
12515
+ partitionByComment?: (boolean | (({
12516
+ pattern?: string
12517
+ flags?: string
12518
+ } | string)[] | ({
12519
+ pattern?: string
12520
+ flags?: string
12521
+ } | string)) | {
12522
+ block?: (boolean | (({
12523
+ pattern?: string
12524
+ flags?: string
12525
+ } | string)[] | ({
12526
+ pattern?: string
12527
+ flags?: string
12528
+ } | string)))
12529
+ line?: (boolean | (({
12530
+ pattern?: string
12531
+ flags?: string
12532
+ } | string)[] | ({
12533
+ pattern?: string
12534
+ flags?: string
12535
+ } | string)))
12214
12536
  })
12215
12537
 
12216
12538
  partitionByNewLine?: boolean
12217
12539
 
12218
12540
  newlinesBetween?: ("ignore" | "always" | "never")
12219
12541
 
12542
+ ignorePattern?: (({
12543
+ pattern?: string
12544
+ flags?: string
12545
+ } | string)[] | ({
12546
+ pattern?: string
12547
+ flags?: string
12548
+ } | string))
12549
+
12220
12550
  groups?: (string | string[] | {
12221
12551
 
12222
12552
  newlinesBetween?: ("ignore" | "always" | "never")
12223
- [k: string]: unknown | undefined
12224
12553
  })[]
12225
12554
  }[]
12226
12555
  // ----- perfectionist/sort-intersection-types -----
@@ -12228,6 +12557,14 @@ type PerfectionistSortIntersectionTypes = []|[{
12228
12557
 
12229
12558
  specialCharacters?: ("remove" | "trim" | "keep")
12230
12559
 
12560
+ fallbackSort?: {
12561
+
12562
+ order?: ("asc" | "desc")
12563
+
12564
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12565
+ [k: string]: unknown | undefined
12566
+ }
12567
+
12231
12568
  ignoreCase?: boolean
12232
12569
 
12233
12570
  alphabet?: string
@@ -12236,29 +12573,53 @@ type PerfectionistSortIntersectionTypes = []|[{
12236
12573
 
12237
12574
  order?: ("asc" | "desc")
12238
12575
 
12239
- partitionByComment?: (string[] | boolean | string | {
12240
- block?: (string[] | boolean | string)
12241
- line?: (string[] | boolean | string)
12242
- [k: string]: unknown | undefined
12576
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12577
+
12578
+ partitionByComment?: (boolean | (({
12579
+ pattern?: string
12580
+ flags?: string
12581
+ } | string)[] | ({
12582
+ pattern?: string
12583
+ flags?: string
12584
+ } | string)) | {
12585
+ block?: (boolean | (({
12586
+ pattern?: string
12587
+ flags?: string
12588
+ } | string)[] | ({
12589
+ pattern?: string
12590
+ flags?: string
12591
+ } | string)))
12592
+ line?: (boolean | (({
12593
+ pattern?: string
12594
+ flags?: string
12595
+ } | string)[] | ({
12596
+ pattern?: string
12597
+ flags?: string
12598
+ } | string)))
12243
12599
  })
12244
12600
 
12245
12601
  partitionByNewLine?: boolean
12246
12602
 
12247
12603
  newlinesBetween?: ("ignore" | "always" | "never")
12248
12604
 
12249
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12250
-
12251
12605
  groups?: (string | string[] | {
12252
12606
 
12253
12607
  newlinesBetween?: ("ignore" | "always" | "never")
12254
- [k: string]: unknown | undefined
12255
12608
  })[]
12256
12609
  }]
12257
12610
  // ----- perfectionist/sort-jsx-props -----
12258
- type PerfectionistSortJsxProps = []|[{
12611
+ type PerfectionistSortJsxProps = {
12259
12612
 
12260
12613
  specialCharacters?: ("remove" | "trim" | "keep")
12261
12614
 
12615
+ fallbackSort?: {
12616
+
12617
+ order?: ("asc" | "desc")
12618
+
12619
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12620
+ [k: string]: unknown | undefined
12621
+ }
12622
+
12262
12623
  ignoreCase?: boolean
12263
12624
 
12264
12625
  alphabet?: string
@@ -12267,7 +12628,25 @@ type PerfectionistSortJsxProps = []|[{
12267
12628
 
12268
12629
  order?: ("asc" | "desc")
12269
12630
 
12270
- ignorePattern?: string[]
12631
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12632
+ useConfigurationIf?: {
12633
+
12634
+ allNamesMatchPattern?: (({
12635
+ pattern?: string
12636
+ flags?: string
12637
+ } | string)[] | ({
12638
+ pattern?: string
12639
+ flags?: string
12640
+ } | string))
12641
+
12642
+ tagMatchesPattern?: (({
12643
+ pattern?: string
12644
+ flags?: string
12645
+ } | string)[] | ({
12646
+ pattern?: string
12647
+ flags?: string
12648
+ } | string))
12649
+ }
12271
12650
 
12272
12651
  partitionByNewLine?: boolean
12273
12652
 
@@ -12277,19 +12656,32 @@ type PerfectionistSortJsxProps = []|[{
12277
12656
  [k: string]: (string | string[]) | undefined
12278
12657
  }
12279
12658
 
12280
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12659
+ ignorePattern?: (({
12660
+ pattern?: string
12661
+ flags?: string
12662
+ } | string)[] | ({
12663
+ pattern?: string
12664
+ flags?: string
12665
+ } | string))
12281
12666
 
12282
12667
  groups?: (string | string[] | {
12283
12668
 
12284
12669
  newlinesBetween?: ("ignore" | "always" | "never")
12285
- [k: string]: unknown | undefined
12286
12670
  })[]
12287
- }]
12671
+ }[]
12288
12672
  // ----- perfectionist/sort-maps -----
12289
12673
  type PerfectionistSortMaps = {
12290
12674
 
12291
12675
  specialCharacters?: ("remove" | "trim" | "keep")
12292
12676
 
12677
+ fallbackSort?: {
12678
+
12679
+ order?: ("asc" | "desc")
12680
+
12681
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12682
+ [k: string]: unknown | undefined
12683
+ }
12684
+
12293
12685
  ignoreCase?: boolean
12294
12686
 
12295
12687
  alphabet?: string
@@ -12298,6 +12690,8 @@ type PerfectionistSortMaps = {
12298
12690
 
12299
12691
  order?: ("asc" | "desc")
12300
12692
 
12693
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12694
+
12301
12695
  customGroups?: ({
12302
12696
 
12303
12697
  groupName?: string
@@ -12309,7 +12703,13 @@ type PerfectionistSortMaps = {
12309
12703
  newlinesInside?: ("always" | "never")
12310
12704
  anyOf?: {
12311
12705
 
12312
- elementNamePattern?: string
12706
+ elementNamePattern?: (({
12707
+ pattern?: string
12708
+ flags?: string
12709
+ } | string)[] | ({
12710
+ pattern?: string
12711
+ flags?: string
12712
+ } | string))
12313
12713
  }[]
12314
12714
  } | {
12315
12715
 
@@ -12321,28 +12721,55 @@ type PerfectionistSortMaps = {
12321
12721
 
12322
12722
  newlinesInside?: ("always" | "never")
12323
12723
 
12324
- elementNamePattern?: string
12724
+ elementNamePattern?: (({
12725
+ pattern?: string
12726
+ flags?: string
12727
+ } | string)[] | ({
12728
+ pattern?: string
12729
+ flags?: string
12730
+ } | string))
12325
12731
  })[]
12326
12732
  useConfigurationIf?: {
12327
- allNamesMatchPattern?: string
12733
+
12734
+ allNamesMatchPattern?: (({
12735
+ pattern?: string
12736
+ flags?: string
12737
+ } | string)[] | ({
12738
+ pattern?: string
12739
+ flags?: string
12740
+ } | string))
12328
12741
  }
12329
12742
 
12330
- partitionByComment?: (string[] | boolean | string | {
12331
- block?: (string[] | boolean | string)
12332
- line?: (string[] | boolean | string)
12333
- [k: string]: unknown | undefined
12743
+ partitionByComment?: (boolean | (({
12744
+ pattern?: string
12745
+ flags?: string
12746
+ } | string)[] | ({
12747
+ pattern?: string
12748
+ flags?: string
12749
+ } | string)) | {
12750
+ block?: (boolean | (({
12751
+ pattern?: string
12752
+ flags?: string
12753
+ } | string)[] | ({
12754
+ pattern?: string
12755
+ flags?: string
12756
+ } | string)))
12757
+ line?: (boolean | (({
12758
+ pattern?: string
12759
+ flags?: string
12760
+ } | string)[] | ({
12761
+ pattern?: string
12762
+ flags?: string
12763
+ } | string)))
12334
12764
  })
12335
12765
 
12336
12766
  partitionByNewLine?: boolean
12337
12767
 
12338
12768
  newlinesBetween?: ("ignore" | "always" | "never")
12339
12769
 
12340
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12341
-
12342
12770
  groups?: (string | string[] | {
12343
12771
 
12344
12772
  newlinesBetween?: ("ignore" | "always" | "never")
12345
- [k: string]: unknown | undefined
12346
12773
  })[]
12347
12774
  }[]
12348
12775
  // ----- perfectionist/sort-modules -----
@@ -12350,6 +12777,14 @@ type PerfectionistSortModules = []|[{
12350
12777
 
12351
12778
  specialCharacters?: ("remove" | "trim" | "keep")
12352
12779
 
12780
+ fallbackSort?: {
12781
+
12782
+ order?: ("asc" | "desc")
12783
+
12784
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12785
+ [k: string]: unknown | undefined
12786
+ }
12787
+
12353
12788
  ignoreCase?: boolean
12354
12789
 
12355
12790
  alphabet?: string
@@ -12358,6 +12793,8 @@ type PerfectionistSortModules = []|[{
12358
12793
 
12359
12794
  order?: ("asc" | "desc")
12360
12795
 
12796
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12797
+
12361
12798
  customGroups?: ({
12362
12799
 
12363
12800
  groupName?: string
@@ -12369,13 +12806,25 @@ type PerfectionistSortModules = []|[{
12369
12806
  newlinesInside?: ("always" | "never")
12370
12807
  anyOf?: {
12371
12808
 
12372
- decoratorNamePattern?: string
12373
-
12374
12809
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
12375
12810
 
12376
12811
  selector?: ("enum" | "function" | "interface" | "type" | "class")
12377
12812
 
12378
- elementNamePattern?: string
12813
+ decoratorNamePattern?: (({
12814
+ pattern?: string
12815
+ flags?: string
12816
+ } | string)[] | ({
12817
+ pattern?: string
12818
+ flags?: string
12819
+ } | string))
12820
+
12821
+ elementNamePattern?: (({
12822
+ pattern?: string
12823
+ flags?: string
12824
+ } | string)[] | ({
12825
+ pattern?: string
12826
+ flags?: string
12827
+ } | string))
12379
12828
  }[]
12380
12829
  } | {
12381
12830
 
@@ -12387,31 +12836,57 @@ type PerfectionistSortModules = []|[{
12387
12836
 
12388
12837
  newlinesInside?: ("always" | "never")
12389
12838
 
12390
- decoratorNamePattern?: string
12391
-
12392
12839
  modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
12393
12840
 
12394
12841
  selector?: ("enum" | "function" | "interface" | "type" | "class")
12395
12842
 
12396
- elementNamePattern?: string
12843
+ decoratorNamePattern?: (({
12844
+ pattern?: string
12845
+ flags?: string
12846
+ } | string)[] | ({
12847
+ pattern?: string
12848
+ flags?: string
12849
+ } | string))
12850
+
12851
+ elementNamePattern?: (({
12852
+ pattern?: string
12853
+ flags?: string
12854
+ } | string)[] | ({
12855
+ pattern?: string
12856
+ flags?: string
12857
+ } | string))
12397
12858
  })[]
12398
12859
 
12399
- partitionByComment?: (string[] | boolean | string | {
12400
- block?: (string[] | boolean | string)
12401
- line?: (string[] | boolean | string)
12402
- [k: string]: unknown | undefined
12860
+ partitionByComment?: (boolean | (({
12861
+ pattern?: string
12862
+ flags?: string
12863
+ } | string)[] | ({
12864
+ pattern?: string
12865
+ flags?: string
12866
+ } | string)) | {
12867
+ block?: (boolean | (({
12868
+ pattern?: string
12869
+ flags?: string
12870
+ } | string)[] | ({
12871
+ pattern?: string
12872
+ flags?: string
12873
+ } | string)))
12874
+ line?: (boolean | (({
12875
+ pattern?: string
12876
+ flags?: string
12877
+ } | string)[] | ({
12878
+ pattern?: string
12879
+ flags?: string
12880
+ } | string)))
12403
12881
  })
12404
12882
 
12405
12883
  partitionByNewLine?: boolean
12406
12884
 
12407
12885
  newlinesBetween?: ("ignore" | "always" | "never")
12408
12886
 
12409
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12410
-
12411
12887
  groups?: (string | string[] | {
12412
12888
 
12413
12889
  newlinesBetween?: ("ignore" | "always" | "never")
12414
- [k: string]: unknown | undefined
12415
12890
  })[]
12416
12891
  }]
12417
12892
  // ----- perfectionist/sort-named-exports -----
@@ -12419,6 +12894,14 @@ type PerfectionistSortNamedExports = []|[{
12419
12894
 
12420
12895
  specialCharacters?: ("remove" | "trim" | "keep")
12421
12896
 
12897
+ fallbackSort?: {
12898
+
12899
+ order?: ("asc" | "desc")
12900
+
12901
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12902
+ [k: string]: unknown | undefined
12903
+ }
12904
+
12422
12905
  ignoreCase?: boolean
12423
12906
 
12424
12907
  alphabet?: string
@@ -12427,23 +12910,50 @@ type PerfectionistSortNamedExports = []|[{
12427
12910
 
12428
12911
  order?: ("asc" | "desc")
12429
12912
 
12913
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12914
+
12430
12915
  groupKind?: ("mixed" | "values-first" | "types-first")
12431
12916
 
12432
- partitionByComment?: (string[] | boolean | string | {
12433
- block?: (string[] | boolean | string)
12434
- line?: (string[] | boolean | string)
12435
- [k: string]: unknown | undefined
12917
+ ignoreAlias?: boolean
12918
+
12919
+ partitionByComment?: (boolean | (({
12920
+ pattern?: string
12921
+ flags?: string
12922
+ } | string)[] | ({
12923
+ pattern?: string
12924
+ flags?: string
12925
+ } | string)) | {
12926
+ block?: (boolean | (({
12927
+ pattern?: string
12928
+ flags?: string
12929
+ } | string)[] | ({
12930
+ pattern?: string
12931
+ flags?: string
12932
+ } | string)))
12933
+ line?: (boolean | (({
12934
+ pattern?: string
12935
+ flags?: string
12936
+ } | string)[] | ({
12937
+ pattern?: string
12938
+ flags?: string
12939
+ } | string)))
12436
12940
  })
12437
12941
 
12438
12942
  partitionByNewLine?: boolean
12439
-
12440
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12441
12943
  }]
12442
12944
  // ----- perfectionist/sort-named-imports -----
12443
12945
  type PerfectionistSortNamedImports = []|[{
12444
12946
 
12445
12947
  specialCharacters?: ("remove" | "trim" | "keep")
12446
12948
 
12949
+ fallbackSort?: {
12950
+
12951
+ order?: ("asc" | "desc")
12952
+
12953
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12954
+ [k: string]: unknown | undefined
12955
+ }
12956
+
12447
12957
  ignoreCase?: boolean
12448
12958
 
12449
12959
  alphabet?: string
@@ -12452,25 +12962,50 @@ type PerfectionistSortNamedImports = []|[{
12452
12962
 
12453
12963
  order?: ("asc" | "desc")
12454
12964
 
12965
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12966
+
12455
12967
  groupKind?: ("mixed" | "values-first" | "types-first")
12456
12968
 
12457
12969
  ignoreAlias?: boolean
12458
12970
 
12459
- partitionByComment?: (string[] | boolean | string | {
12460
- block?: (string[] | boolean | string)
12461
- line?: (string[] | boolean | string)
12462
- [k: string]: unknown | undefined
12971
+ partitionByComment?: (boolean | (({
12972
+ pattern?: string
12973
+ flags?: string
12974
+ } | string)[] | ({
12975
+ pattern?: string
12976
+ flags?: string
12977
+ } | string)) | {
12978
+ block?: (boolean | (({
12979
+ pattern?: string
12980
+ flags?: string
12981
+ } | string)[] | ({
12982
+ pattern?: string
12983
+ flags?: string
12984
+ } | string)))
12985
+ line?: (boolean | (({
12986
+ pattern?: string
12987
+ flags?: string
12988
+ } | string)[] | ({
12989
+ pattern?: string
12990
+ flags?: string
12991
+ } | string)))
12463
12992
  })
12464
12993
 
12465
12994
  partitionByNewLine?: boolean
12466
-
12467
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12468
12995
  }]
12469
12996
  // ----- perfectionist/sort-object-types -----
12470
12997
  type PerfectionistSortObjectTypes = {
12471
12998
 
12472
12999
  specialCharacters?: ("remove" | "trim" | "keep")
12473
13000
 
13001
+ fallbackSort?: {
13002
+
13003
+ order?: ("asc" | "desc")
13004
+
13005
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
13006
+ [k: string]: unknown | undefined
13007
+ }
13008
+
12474
13009
  ignoreCase?: boolean
12475
13010
 
12476
13011
  alphabet?: string
@@ -12479,11 +13014,7 @@ type PerfectionistSortObjectTypes = {
12479
13014
 
12480
13015
  order?: ("asc" | "desc")
12481
13016
 
12482
- ignorePattern?: string[]
12483
- useConfigurationIf?: {
12484
- allNamesMatchPattern?: string
12485
- declarationMatchesPattern?: string
12486
- }
13017
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12487
13018
  customGroups?: ({
12488
13019
  [k: string]: (string | string[]) | undefined
12489
13020
  } | ({
@@ -12501,7 +13032,13 @@ type PerfectionistSortObjectTypes = {
12501
13032
 
12502
13033
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
12503
13034
 
12504
- elementNamePattern?: string
13035
+ elementNamePattern?: (({
13036
+ pattern?: string
13037
+ flags?: string
13038
+ } | string)[] | ({
13039
+ pattern?: string
13040
+ flags?: string
13041
+ } | string))
12505
13042
  }[]
12506
13043
  } | {
12507
13044
 
@@ -12517,27 +13054,73 @@ type PerfectionistSortObjectTypes = {
12517
13054
 
12518
13055
  selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
12519
13056
 
12520
- elementNamePattern?: string
13057
+ elementNamePattern?: (({
13058
+ pattern?: string
13059
+ flags?: string
13060
+ } | string)[] | ({
13061
+ pattern?: string
13062
+ flags?: string
13063
+ } | string))
12521
13064
  })[])
13065
+ useConfigurationIf?: {
13066
+
13067
+ allNamesMatchPattern?: (({
13068
+ pattern?: string
13069
+ flags?: string
13070
+ } | string)[] | ({
13071
+ pattern?: string
13072
+ flags?: string
13073
+ } | string))
13074
+
13075
+ declarationMatchesPattern?: (({
13076
+ pattern?: string
13077
+ flags?: string
13078
+ } | string)[] | ({
13079
+ pattern?: string
13080
+ flags?: string
13081
+ } | string))
13082
+ }
12522
13083
 
12523
13084
  groupKind?: ("mixed" | "required-first" | "optional-first")
12524
13085
 
12525
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12526
-
12527
- partitionByComment?: (string[] | boolean | string | {
12528
- block?: (string[] | boolean | string)
12529
- line?: (string[] | boolean | string)
12530
- [k: string]: unknown | undefined
13086
+ partitionByComment?: (boolean | (({
13087
+ pattern?: string
13088
+ flags?: string
13089
+ } | string)[] | ({
13090
+ pattern?: string
13091
+ flags?: string
13092
+ } | string)) | {
13093
+ block?: (boolean | (({
13094
+ pattern?: string
13095
+ flags?: string
13096
+ } | string)[] | ({
13097
+ pattern?: string
13098
+ flags?: string
13099
+ } | string)))
13100
+ line?: (boolean | (({
13101
+ pattern?: string
13102
+ flags?: string
13103
+ } | string)[] | ({
13104
+ pattern?: string
13105
+ flags?: string
13106
+ } | string)))
12531
13107
  })
12532
13108
 
12533
13109
  partitionByNewLine?: boolean
12534
13110
 
12535
13111
  newlinesBetween?: ("ignore" | "always" | "never")
12536
13112
 
13113
+ ignorePattern?: (({
13114
+ pattern?: string
13115
+ flags?: string
13116
+ } | string)[] | ({
13117
+ pattern?: string
13118
+ flags?: string
13119
+ } | string))
13120
+
12537
13121
  groups?: (string | string[] | {
12538
13122
 
12539
13123
  newlinesBetween?: ("ignore" | "always" | "never")
12540
- [k: string]: unknown | undefined
12541
13124
  })[]
12542
13125
  }[]
12543
13126
  // ----- perfectionist/sort-objects -----
@@ -12545,6 +13128,14 @@ type PerfectionistSortObjects = {
12545
13128
 
12546
13129
  specialCharacters?: ("remove" | "trim" | "keep")
12547
13130
 
13131
+ fallbackSort?: {
13132
+
13133
+ order?: ("asc" | "desc")
13134
+
13135
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
13136
+ [k: string]: unknown | undefined
13137
+ }
13138
+
12548
13139
  ignoreCase?: boolean
12549
13140
 
12550
13141
  alphabet?: string
@@ -12553,16 +13144,12 @@ type PerfectionistSortObjects = {
12553
13144
 
12554
13145
  order?: ("asc" | "desc")
12555
13146
 
13147
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
13148
+
12556
13149
  destructuredObjects?: (boolean | {
12557
13150
 
12558
13151
  groups?: boolean
12559
13152
  })
12560
-
12561
- ignorePattern?: string[]
12562
- useConfigurationIf?: {
12563
- allNamesMatchPattern?: string
12564
- callingFunctionNamePattern?: string
12565
- }
12566
13153
  customGroups?: ({
12567
13154
  [k: string]: (string | string[]) | undefined
12568
13155
  } | ({
@@ -12580,9 +13167,21 @@ type PerfectionistSortObjects = {
12580
13167
 
12581
13168
  selector?: ("member" | "method" | "multiline" | "property")
12582
13169
 
12583
- elementValuePattern?: string
13170
+ elementValuePattern?: (({
13171
+ pattern?: string
13172
+ flags?: string
13173
+ } | string)[] | ({
13174
+ pattern?: string
13175
+ flags?: string
13176
+ } | string))
12584
13177
 
12585
- elementNamePattern?: string
13178
+ elementNamePattern?: (({
13179
+ pattern?: string
13180
+ flags?: string
13181
+ } | string)[] | ({
13182
+ pattern?: string
13183
+ flags?: string
13184
+ } | string))
12586
13185
  }[]
12587
13186
  } | {
12588
13187
 
@@ -12598,10 +13197,40 @@ type PerfectionistSortObjects = {
12598
13197
 
12599
13198
  selector?: ("member" | "method" | "multiline" | "property")
12600
13199
 
12601
- elementValuePattern?: string
13200
+ elementValuePattern?: (({
13201
+ pattern?: string
13202
+ flags?: string
13203
+ } | string)[] | ({
13204
+ pattern?: string
13205
+ flags?: string
13206
+ } | string))
12602
13207
 
12603
- elementNamePattern?: string
13208
+ elementNamePattern?: (({
13209
+ pattern?: string
13210
+ flags?: string
13211
+ } | string)[] | ({
13212
+ pattern?: string
13213
+ flags?: string
13214
+ } | string))
12604
13215
  })[])
13216
+ useConfigurationIf?: {
13217
+
13218
+ allNamesMatchPattern?: (({
13219
+ pattern?: string
13220
+ flags?: string
13221
+ } | string)[] | ({
13222
+ pattern?: string
13223
+ flags?: string
13224
+ } | string))
13225
+
13226
+ callingFunctionNamePattern?: (({
13227
+ pattern?: string
13228
+ flags?: string
13229
+ } | string)[] | ({
13230
+ pattern?: string
13231
+ flags?: string
13232
+ } | string))
13233
+ }
12605
13234
 
12606
13235
  destructureOnly?: boolean
12607
13236
 
@@ -12609,22 +13238,44 @@ type PerfectionistSortObjects = {
12609
13238
 
12610
13239
  styledComponents?: boolean
12611
13240
 
12612
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12613
-
12614
- partitionByComment?: (string[] | boolean | string | {
12615
- block?: (string[] | boolean | string)
12616
- line?: (string[] | boolean | string)
12617
- [k: string]: unknown | undefined
13241
+ partitionByComment?: (boolean | (({
13242
+ pattern?: string
13243
+ flags?: string
13244
+ } | string)[] | ({
13245
+ pattern?: string
13246
+ flags?: string
13247
+ } | string)) | {
13248
+ block?: (boolean | (({
13249
+ pattern?: string
13250
+ flags?: string
13251
+ } | string)[] | ({
13252
+ pattern?: string
13253
+ flags?: string
13254
+ } | string)))
13255
+ line?: (boolean | (({
13256
+ pattern?: string
13257
+ flags?: string
13258
+ } | string)[] | ({
13259
+ pattern?: string
13260
+ flags?: string
13261
+ } | string)))
12618
13262
  })
12619
13263
 
12620
13264
  partitionByNewLine?: boolean
12621
13265
 
12622
13266
  newlinesBetween?: ("ignore" | "always" | "never")
12623
13267
 
13268
+ ignorePattern?: (({
13269
+ pattern?: string
13270
+ flags?: string
13271
+ } | string)[] | ({
13272
+ pattern?: string
13273
+ flags?: string
13274
+ } | string))
13275
+
12624
13276
  groups?: (string | string[] | {
12625
13277
 
12626
13278
  newlinesBetween?: ("ignore" | "always" | "never")
12627
- [k: string]: unknown | undefined
12628
13279
  })[]
12629
13280
  }[]
12630
13281
  // ----- perfectionist/sort-sets -----
@@ -12632,6 +13283,14 @@ type PerfectionistSortSets = {
12632
13283
 
12633
13284
  specialCharacters?: ("remove" | "trim" | "keep")
12634
13285
 
13286
+ fallbackSort?: {
13287
+
13288
+ order?: ("asc" | "desc")
13289
+
13290
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
13291
+ [k: string]: unknown | undefined
13292
+ }
13293
+
12635
13294
  ignoreCase?: boolean
12636
13295
 
12637
13296
  alphabet?: string
@@ -12640,6 +13299,8 @@ type PerfectionistSortSets = {
12640
13299
 
12641
13300
  order?: ("asc" | "desc")
12642
13301
 
13302
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
13303
+
12643
13304
  groupKind?: ("mixed" | "literals-first" | "spreads-first")
12644
13305
 
12645
13306
  customGroups?: ({
@@ -12655,7 +13316,13 @@ type PerfectionistSortSets = {
12655
13316
 
12656
13317
  selector?: ("literal" | "spread")
12657
13318
 
12658
- elementNamePattern?: string
13319
+ elementNamePattern?: (({
13320
+ pattern?: string
13321
+ flags?: string
13322
+ } | string)[] | ({
13323
+ pattern?: string
13324
+ flags?: string
13325
+ } | string))
12659
13326
  }[]
12660
13327
  } | {
12661
13328
 
@@ -12669,18 +13336,46 @@ type PerfectionistSortSets = {
12669
13336
 
12670
13337
  selector?: ("literal" | "spread")
12671
13338
 
12672
- elementNamePattern?: string
13339
+ elementNamePattern?: (({
13340
+ pattern?: string
13341
+ flags?: string
13342
+ } | string)[] | ({
13343
+ pattern?: string
13344
+ flags?: string
13345
+ } | string))
12673
13346
  })[]
12674
13347
  useConfigurationIf?: {
12675
- allNamesMatchPattern?: string
13348
+
13349
+ allNamesMatchPattern?: (({
13350
+ pattern?: string
13351
+ flags?: string
13352
+ } | string)[] | ({
13353
+ pattern?: string
13354
+ flags?: string
13355
+ } | string))
12676
13356
  }
12677
13357
 
12678
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12679
-
12680
- partitionByComment?: (string[] | boolean | string | {
12681
- block?: (string[] | boolean | string)
12682
- line?: (string[] | boolean | string)
12683
- [k: string]: unknown | undefined
13358
+ partitionByComment?: (boolean | (({
13359
+ pattern?: string
13360
+ flags?: string
13361
+ } | string)[] | ({
13362
+ pattern?: string
13363
+ flags?: string
13364
+ } | string)) | {
13365
+ block?: (boolean | (({
13366
+ pattern?: string
13367
+ flags?: string
13368
+ } | string)[] | ({
13369
+ pattern?: string
13370
+ flags?: string
13371
+ } | string)))
13372
+ line?: (boolean | (({
13373
+ pattern?: string
13374
+ flags?: string
13375
+ } | string)[] | ({
13376
+ pattern?: string
13377
+ flags?: string
13378
+ } | string)))
12684
13379
  })
12685
13380
 
12686
13381
  partitionByNewLine?: boolean
@@ -12690,7 +13385,6 @@ type PerfectionistSortSets = {
12690
13385
  groups?: (string | string[] | {
12691
13386
 
12692
13387
  newlinesBetween?: ("ignore" | "always" | "never")
12693
- [k: string]: unknown | undefined
12694
13388
  })[]
12695
13389
  }[]
12696
13390
  // ----- perfectionist/sort-switch-case -----
@@ -12698,6 +13392,14 @@ type PerfectionistSortSwitchCase = []|[{
12698
13392
 
12699
13393
  specialCharacters?: ("remove" | "trim" | "keep")
12700
13394
 
13395
+ fallbackSort?: {
13396
+
13397
+ order?: ("asc" | "desc")
13398
+
13399
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
13400
+ [k: string]: unknown | undefined
13401
+ }
13402
+
12701
13403
  ignoreCase?: boolean
12702
13404
 
12703
13405
  alphabet?: string
@@ -12706,13 +13408,21 @@ type PerfectionistSortSwitchCase = []|[{
12706
13408
 
12707
13409
  order?: ("asc" | "desc")
12708
13410
 
12709
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
13411
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
12710
13412
  }]
12711
13413
  // ----- perfectionist/sort-union-types -----
12712
13414
  type PerfectionistSortUnionTypes = []|[{
12713
13415
 
12714
13416
  specialCharacters?: ("remove" | "trim" | "keep")
12715
13417
 
13418
+ fallbackSort?: {
13419
+
13420
+ order?: ("asc" | "desc")
13421
+
13422
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
13423
+ [k: string]: unknown | undefined
13424
+ }
13425
+
12716
13426
  ignoreCase?: boolean
12717
13427
 
12718
13428
  alphabet?: string
@@ -12721,22 +13431,38 @@ type PerfectionistSortUnionTypes = []|[{
12721
13431
 
12722
13432
  order?: ("asc" | "desc")
12723
13433
 
12724
- partitionByComment?: (string[] | boolean | string | {
12725
- block?: (string[] | boolean | string)
12726
- line?: (string[] | boolean | string)
12727
- [k: string]: unknown | undefined
13434
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
13435
+
13436
+ partitionByComment?: (boolean | (({
13437
+ pattern?: string
13438
+ flags?: string
13439
+ } | string)[] | ({
13440
+ pattern?: string
13441
+ flags?: string
13442
+ } | string)) | {
13443
+ block?: (boolean | (({
13444
+ pattern?: string
13445
+ flags?: string
13446
+ } | string)[] | ({
13447
+ pattern?: string
13448
+ flags?: string
13449
+ } | string)))
13450
+ line?: (boolean | (({
13451
+ pattern?: string
13452
+ flags?: string
13453
+ } | string)[] | ({
13454
+ pattern?: string
13455
+ flags?: string
13456
+ } | string)))
12728
13457
  })
12729
13458
 
12730
13459
  partitionByNewLine?: boolean
12731
13460
 
12732
13461
  newlinesBetween?: ("ignore" | "always" | "never")
12733
13462
 
12734
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12735
-
12736
13463
  groups?: (string | string[] | {
12737
13464
 
12738
13465
  newlinesBetween?: ("ignore" | "always" | "never")
12739
- [k: string]: unknown | undefined
12740
13466
  })[]
12741
13467
  }]
12742
13468
  // ----- perfectionist/sort-variable-declarations -----
@@ -12744,6 +13470,14 @@ type PerfectionistSortVariableDeclarations = []|[{
12744
13470
 
12745
13471
  specialCharacters?: ("remove" | "trim" | "keep")
12746
13472
 
13473
+ fallbackSort?: {
13474
+
13475
+ order?: ("asc" | "desc")
13476
+
13477
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
13478
+ [k: string]: unknown | undefined
13479
+ }
13480
+
12747
13481
  ignoreCase?: boolean
12748
13482
 
12749
13483
  alphabet?: string
@@ -12752,15 +13486,32 @@ type PerfectionistSortVariableDeclarations = []|[{
12752
13486
 
12753
13487
  order?: ("asc" | "desc")
12754
13488
 
12755
- partitionByComment?: (string[] | boolean | string | {
12756
- block?: (string[] | boolean | string)
12757
- line?: (string[] | boolean | string)
12758
- [k: string]: unknown | undefined
13489
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
13490
+
13491
+ partitionByComment?: (boolean | (({
13492
+ pattern?: string
13493
+ flags?: string
13494
+ } | string)[] | ({
13495
+ pattern?: string
13496
+ flags?: string
13497
+ } | string)) | {
13498
+ block?: (boolean | (({
13499
+ pattern?: string
13500
+ flags?: string
13501
+ } | string)[] | ({
13502
+ pattern?: string
13503
+ flags?: string
13504
+ } | string)))
13505
+ line?: (boolean | (({
13506
+ pattern?: string
13507
+ flags?: string
13508
+ } | string)[] | ({
13509
+ pattern?: string
13510
+ flags?: string
13511
+ } | string)))
12759
13512
  })
12760
13513
 
12761
13514
  partitionByNewLine?: boolean
12762
-
12763
- type?: ("alphabetical" | "natural" | "line-length" | "custom")
12764
13515
  }]
12765
13516
  // ----- prefer-arrow-callback -----
12766
13517
  type PreferArrowCallback = []|[{
@@ -13099,7 +13850,7 @@ type SonarClassName = []|[{
13099
13850
  format?: string
13100
13851
  }]
13101
13852
  // ----- sonar/cognitive-complexity -----
13102
- type SonarCognitiveComplexity = []|[number]|[number, ("sonar-runtime" | "metric")]
13853
+ type SonarCognitiveComplexity = []|[(number | string)]|[(number | string), string]
13103
13854
  // ----- sonar/comment-regex -----
13104
13855
  type SonarCommentRegex = []|[{
13105
13856
  regularExpression?: string
@@ -14479,6 +15230,7 @@ type StyleSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
14479
15230
  // ----- style/space-infix-ops -----
14480
15231
  type StyleSpaceInfixOps = []|[{
14481
15232
  int32Hint?: boolean
15233
+ ignoreTypes?: boolean
14482
15234
  }]
14483
15235
  // ----- style/space-unary-ops -----
14484
15236
  type StyleSpaceUnaryOps = []|[{
@@ -14783,6 +15535,10 @@ type TestPreferSnapshotHint = []|[("always" | "multi")]
14783
15535
  type TestRequireHook = []|[{
14784
15536
  allowedFunctionCalls?: string[]
14785
15537
  }]
15538
+ // ----- test/require-mock-type-parameters -----
15539
+ type TestRequireMockTypeParameters = []|[{
15540
+ checkImportFunctions?: boolean
15541
+ }]
14786
15542
  // ----- test/require-top-level-describe -----
14787
15543
  type TestRequireTopLevelDescribe = []|[{
14788
15544
  maxNumberOfTopLevelDescribes?: number
@@ -15724,11 +16480,13 @@ type TsNoUnnecessaryBooleanLiteralCompare = []|[{
15724
16480
  allowComparingNullableBooleansToFalse?: boolean
15725
16481
 
15726
16482
  allowComparingNullableBooleansToTrue?: boolean
16483
+
16484
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
15727
16485
  }]
15728
16486
  // ----- ts/no-unnecessary-condition -----
15729
16487
  type TsNoUnnecessaryCondition = []|[{
15730
16488
 
15731
- allowConstantLoopConditions?: boolean
16489
+ allowConstantLoopConditions?: (boolean | ("always" | "never" | "only-allowed-literals"))
15732
16490
 
15733
16491
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
15734
16492
 
@@ -16154,6 +16912,13 @@ type UnicornNoArrayPushPush = []|[{
16154
16912
  type UnicornNoArrayReduce = []|[{
16155
16913
  allowSimpleOperations?: boolean
16156
16914
  }]
16915
+ // ----- unicorn/no-instanceof-builtins -----
16916
+ type UnicornNoInstanceofBuiltins = []|[{
16917
+ useErrorIsError?: boolean
16918
+ strategy?: ("loose" | "strict")
16919
+ include?: string[]
16920
+ exclude?: string[]
16921
+ }]
16157
16922
  // ----- unicorn/no-keyword-prefix -----
16158
16923
  type UnicornNoKeywordPrefix = []|[{
16159
16924
 
@@ -16365,7 +17130,6 @@ type VueArrayElementNewline = []|[(_VueArrayElementNewlineBasicConfig | {
16365
17130
  ArrayPattern?: _VueArrayElementNewlineBasicConfig
16366
17131
  })]
16367
17132
  type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
16368
- consistent?: boolean
16369
17133
  multiline?: boolean
16370
17134
  minItems?: (number | null)
16371
17135
  })
@@ -16434,14 +17198,9 @@ type VueCommaDangle = []|[(_VueCommaDangleValue | {
16434
17198
  imports?: _VueCommaDangleValueWithIgnore
16435
17199
  exports?: _VueCommaDangleValueWithIgnore
16436
17200
  functions?: _VueCommaDangleValueWithIgnore
16437
- importAttributes?: _VueCommaDangleValueWithIgnore
16438
- dynamicImports?: _VueCommaDangleValueWithIgnore
16439
- enums?: _VueCommaDangleValueWithIgnore
16440
- generics?: _VueCommaDangleValueWithIgnore
16441
- tuples?: _VueCommaDangleValueWithIgnore
16442
17201
  })]
16443
17202
  type _VueCommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline")
16444
- type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "never" | "only-multiline" | "ignore")
17203
+ type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline")
16445
17204
  // ----- vue/comma-spacing -----
16446
17205
  type VueCommaSpacing = []|[{
16447
17206
  before?: boolean
@@ -16512,10 +17271,6 @@ type VueFirstAttributeLinebreak = []|[{
16512
17271
  // ----- vue/func-call-spacing -----
16513
17272
  type VueFuncCallSpacing = ([]|["never"] | []|["always"]|["always", {
16514
17273
  allowNewlines?: boolean
16515
- optionalChain?: {
16516
- before?: boolean
16517
- after?: boolean
16518
- }
16519
17274
  }])
16520
17275
  // ----- vue/html-button-has-type -----
16521
17276
  type VueHtmlButtonHasType = []|[{
@@ -16597,7 +17352,6 @@ type VueKeySpacing = []|[({
16597
17352
  mode?: ("strict" | "minimum")
16598
17353
  beforeColon?: boolean
16599
17354
  afterColon?: boolean
16600
- ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
16601
17355
  } | {
16602
17356
  singleLine?: {
16603
17357
  mode?: ("strict" | "minimum")
@@ -16834,10 +17588,6 @@ type VueKeywordSpacing = []|[{
16834
17588
  before?: boolean
16835
17589
  after?: boolean
16836
17590
  }
16837
- satisfies?: {
16838
- before?: boolean
16839
- after?: boolean
16840
- }
16841
17591
  set?: {
16842
17592
  before?: boolean
16843
17593
  after?: boolean
@@ -16914,10 +17664,6 @@ type VueKeywordSpacing = []|[{
16914
17664
  before?: boolean
16915
17665
  after?: boolean
16916
17666
  }
16917
- type?: {
16918
- before?: boolean
16919
- after?: boolean
16920
- }
16921
17667
  }
16922
17668
  }]
16923
17669
  // ----- vue/match-component-file-name -----
@@ -17046,10 +17792,7 @@ type VueMultilineHtmlElementContentNewline = []|[{
17046
17792
  allowEmptyLines?: boolean
17047
17793
  }]
17048
17794
  // ----- vue/multiline-ternary -----
17049
- type VueMultilineTernary = []|[("always" | "always-multiline" | "never")]|[("always" | "always-multiline" | "never"), {
17050
- ignoreJSX?: boolean
17051
- [k: string]: unknown | undefined
17052
- }]
17795
+ type VueMultilineTernary = []|[("always" | "always-multiline" | "never")]
17053
17796
  // ----- vue/mustache-interpolation-spacing -----
17054
17797
  type VueMustacheInterpolationSpacing = []|[("always" | "never")]
17055
17798
  // ----- vue/new-line-between-multi-line-property -----
@@ -17124,7 +17867,6 @@ type VueNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
17124
17867
  enforceForNewInMemberExpressions?: boolean
17125
17868
  enforceForFunctionPrototypeMethods?: boolean
17126
17869
  allowParensAfterCommentPattern?: string
17127
- nestedConditionalExpressions?: boolean
17128
17870
  }])
17129
17871
  // ----- vue/no-irregular-whitespace -----
17130
17872
  type VueNoIrregularWhitespace = []|[{
@@ -17367,16 +18109,6 @@ type VueObjectCurlyNewline = []|[((("always" | "never") | {
17367
18109
  minProperties?: number
17368
18110
  consistent?: boolean
17369
18111
  })
17370
- TSTypeLiteral?: (("always" | "never") | {
17371
- multiline?: boolean
17372
- minProperties?: number
17373
- consistent?: boolean
17374
- })
17375
- TSInterfaceBody?: (("always" | "never") | {
17376
- multiline?: boolean
17377
- minProperties?: number
17378
- consistent?: boolean
17379
- })
17380
18112
  })]
17381
18113
  // ----- vue/object-curly-spacing -----
17382
18114
  type VueObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
@@ -17398,7 +18130,7 @@ type VueObjectShorthand = ([]|[("always" | "methods" | "properties" | "never" |
17398
18130
  avoidExplicitReturnArrows?: boolean
17399
18131
  }])
17400
18132
  // ----- vue/operator-linebreak -----
17401
- type VueOperatorLinebreak = []|[(("after" | "before" | "none") | null)]|[(("after" | "before" | "none") | null), {
18133
+ type VueOperatorLinebreak = []|[("after" | "before" | "none" | null)]|[("after" | "before" | "none" | null), {
17402
18134
  overrides?: {
17403
18135
  [k: string]: ("after" | "before" | "none" | "ignore") | undefined
17404
18136
  }