@2digits/eslint-config 4.15.2 → 4.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -3146,97 +3146,97 @@ interface RuleOptions {
3146
3146
  */
3147
3147
  'react-compiler/react-compiler'?: Linter.RuleEntry<ReactCompilerReactCompiler>;
3148
3148
  /**
3149
- * Disallow `dangerouslySetInnerHTML`.
3149
+ * Disallows 'dangerouslySetInnerHTML'.
3150
3150
  * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
3151
3151
  */
3152
3152
  'react-dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>;
3153
3153
  /**
3154
- * Disallow `dangerouslySetInnerHTML` and `children` at the same time.
3154
+ * Disallows 'dangerouslySetInnerHTML' and 'children' at the same time.
3155
3155
  * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
3156
3156
  */
3157
3157
  'react-dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>;
3158
3158
  /**
3159
- * Disallow `findDOMNode`.
3159
+ * Disallows 'findDOMNode'.
3160
3160
  * @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
3161
3161
  */
3162
3162
  'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>;
3163
3163
  /**
3164
- * Disallow `flushSync`.
3164
+ * Disallows 'flushSync'.
3165
3165
  * @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
3166
3166
  */
3167
3167
  'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>;
3168
3168
  /**
3169
- * Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.
3169
+ * Replaces usage of 'ReactDom.hydrate()' with 'hydrateRoot()'.
3170
3170
  * @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
3171
3171
  */
3172
3172
  'react-dom/no-hydrate'?: Linter.RuleEntry<[]>;
3173
3173
  /**
3174
- * Enforces explicit `type` attribute for `button` elements.
3174
+ * Enforces explicit 'type' attribute for 'button' elements.
3175
3175
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
3176
3176
  */
3177
3177
  'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>;
3178
3178
  /**
3179
- * Enforces explicit `sandbox` prop for `iframe` elements.
3179
+ * Enforces explicit 'sandbox' attribute for 'iframe' elements.
3180
3180
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
3181
3181
  */
3182
3182
  'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>;
3183
3183
  /**
3184
- * Enforces the absence of a `namespace` in React elements.
3184
+ * Enforces the absence of a 'namespace' in React elements.
3185
3185
  * @see https://eslint-react.xyz/docs/rules/dom-no-namespace
3186
3186
  */
3187
3187
  'react-dom/no-namespace'?: Linter.RuleEntry<[]>;
3188
3188
  /**
3189
- * Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.
3189
+ * Replaces usage of 'ReactDom.render()' with 'createRoot(node).render()'.
3190
3190
  * @see https://eslint-react.xyz/docs/rules/dom-no-render
3191
3191
  */
3192
3192
  'react-dom/no-render'?: Linter.RuleEntry<[]>;
3193
3193
  /**
3194
- * Disallow the return value of `ReactDOM.render`.
3194
+ * Disallows the return value of 'ReactDOM.render'.
3195
3195
  * @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
3196
3196
  */
3197
3197
  'react-dom/no-render-return-value'?: Linter.RuleEntry<[]>;
3198
3198
  /**
3199
- * Disallow `javascript:` URLs as attribute values.
3199
+ * Disallows 'javascript:' URLs as attribute values.
3200
3200
  * @see https://eslint-react.xyz/docs/rules/dom-no-script-url
3201
3201
  */
3202
3202
  'react-dom/no-script-url'?: Linter.RuleEntry<[]>;
3203
3203
  /**
3204
- * Disallows the use of string style prop.
3204
+ * Disallows the use of string style prop in JSX. Use an object instead.
3205
3205
  * @see https://eslint-react.xyz/docs/rules/dom-no-string-style-prop
3206
3206
  */
3207
3207
  'react-dom/no-string-style-prop'?: Linter.RuleEntry<[]>;
3208
3208
  /**
3209
- * Disallow unknown `DOM` property.
3209
+ * Disallows unknown 'DOM' property.
3210
3210
  * @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
3211
3211
  */
3212
3212
  'react-dom/no-unknown-property'?: Linter.RuleEntry<ReactDomNoUnknownProperty>;
3213
3213
  /**
3214
- * Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations.
3214
+ * Enforces 'sandbox' attribute for 'iframe' elements is not set to unsafe combinations.
3215
3215
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
3216
3216
  */
3217
3217
  'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>;
3218
3218
  /**
3219
- * Disallow `target="_blank"` without `rel="noreferrer noopener"`.
3219
+ * Disallows 'target="_blank"' without 'rel="noreferrer noopener"'.
3220
3220
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
3221
3221
  */
3222
3222
  'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>;
3223
3223
  /**
3224
- * Replaces usages of `useFormState` with `useActionState`.
3224
+ * Replaces usage of 'useFormState' with 'useActionState'.
3225
3225
  * @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
3226
3226
  */
3227
3227
  'react-dom/no-use-form-state'?: Linter.RuleEntry<[]>;
3228
3228
  /**
3229
- * Disallow `children` in void DOM elements.
3229
+ * Disallows 'children' in void DOM elements.
3230
3230
  * @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
3231
3231
  */
3232
3232
  'react-dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>;
3233
3233
  /**
3234
- * Enforces React Dom is imported via a namespace import.
3234
+ * Enforces React DOM is imported via a namespace import.
3235
3235
  * @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
3236
3236
  */
3237
3237
  'react-dom/prefer-namespace-import'?: Linter.RuleEntry<[]>;
3238
3238
  /**
3239
- * Prevents dollar signs from being inserted as text nodes before expressions.
3239
+ * Prevents unnecessary dollar signs ('$') from being inserted before an expression in JSX.
3240
3240
  * @see https://eslint-react.xyz/docs/rules/jsx-dollar
3241
3241
  */
3242
3242
  'react-extra/jsx-dollar'?: Linter.RuleEntry<[]>;
@@ -3246,37 +3246,37 @@ interface RuleOptions {
3246
3246
  */
3247
3247
  'react-extra/jsx-key-before-spread'?: Linter.RuleEntry<[]>;
3248
3248
  /**
3249
- * Prevents comments from being inserted as text nodes.
3249
+ * Prevents comment strings (e.g., beginning with '//' or '/*') from being accidentally inserted into a JSX element's text nodes.
3250
3250
  * @see https://eslint-react.xyz/docs/rules/jsx-no-comment-textnodes
3251
3251
  */
3252
3252
  'react-extra/jsx-no-comment-textnodes'?: Linter.RuleEntry<[]>;
3253
3253
  /**
3254
- * Disallow duplicate props in JSX elements.
3254
+ * Disallows duplicate props in JSX elements.
3255
3255
  * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
3256
3256
  */
3257
3257
  'react-extra/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>;
3258
3258
  /**
3259
- * Disallows 'IIFE' in JSX elements.
3259
+ * Disallows 'IIFE' in JSX.
3260
3260
  * @see https://eslint-react.xyz/docs/rules/jsx-no-iife
3261
3261
  */
3262
3262
  'react-extra/jsx-no-iife'?: Linter.RuleEntry<[]>;
3263
3263
  /**
3264
- * Disallow undefined variables in JSX.
3264
+ * Prevents using variables in JSX that are not defined in the scope.
3265
3265
  * @see https://eslint-react.xyz/docs/rules/jsx-no-undef
3266
3266
  */
3267
3267
  'react-extra/jsx-no-undef'?: Linter.RuleEntry<[]>;
3268
3268
  /**
3269
- * Enforces shorthand syntax for boolean attributes.
3269
+ * Enforces the use of shorthand syntax for boolean attributes.
3270
3270
  * @see https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean
3271
3271
  */
3272
3272
  'react-extra/jsx-shorthand-boolean'?: Linter.RuleEntry<ReactExtraJsxShorthandBoolean>;
3273
3273
  /**
3274
- * Enforces shorthand syntax for fragments.
3274
+ * Enforces the use of shorthand syntax for fragments.
3275
3275
  * @see https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment
3276
3276
  */
3277
3277
  'react-extra/jsx-shorthand-fragment'?: Linter.RuleEntry<ReactExtraJsxShorthandFragment>;
3278
3278
  /**
3279
- * Marks React variables as used when JSX is used.
3279
+ * Marks React variables as used when JSX is present.
3280
3280
  * @see https://eslint-react.xyz/docs/rules/jsx-uses-react
3281
3281
  */
3282
3282
  'react-extra/jsx-uses-react'?: Linter.RuleEntry<[]>;
@@ -3286,108 +3286,108 @@ interface RuleOptions {
3286
3286
  */
3287
3287
  'react-extra/jsx-uses-vars'?: Linter.RuleEntry<[]>;
3288
3288
  /**
3289
- * Disallow accessing `this.state` inside `setState` calls.
3289
+ * Disallows accessing 'this.state' inside 'setState' calls.
3290
3290
  * @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
3291
3291
  */
3292
3292
  'react-extra/no-access-state-in-setstate'?: Linter.RuleEntry<[]>;
3293
3293
  /**
3294
- * Disallow an item's index in the array as its key.
3294
+ * Disallows using an item's index in the array as its key.
3295
3295
  * @see https://eslint-react.xyz/docs/rules/no-array-index-key
3296
3296
  */
3297
3297
  'react-extra/no-array-index-key'?: Linter.RuleEntry<[]>;
3298
3298
  /**
3299
- * Disallow `Children.count`.
3299
+ * Disallows the use of 'Children.count' from the 'react' package.
3300
3300
  * @see https://eslint-react.xyz/docs/rules/no-children-count
3301
3301
  */
3302
3302
  'react-extra/no-children-count'?: Linter.RuleEntry<[]>;
3303
3303
  /**
3304
- * Disallow 'Children.forEach'.
3304
+ * Disallows the use of 'Children.forEach' from the 'react' package.
3305
3305
  * @see https://eslint-react.xyz/docs/rules/no-children-for-each
3306
3306
  */
3307
3307
  'react-extra/no-children-for-each'?: Linter.RuleEntry<[]>;
3308
3308
  /**
3309
- * Disallow `Children.map`.
3309
+ * Disallows the use of 'Children.map' from the 'react' package.
3310
3310
  * @see https://eslint-react.xyz/docs/rules/no-children-map
3311
3311
  */
3312
3312
  'react-extra/no-children-map'?: Linter.RuleEntry<[]>;
3313
3313
  /**
3314
- * Disallow `Children.only`.
3314
+ * Disallows the use of 'Children.only' from the 'react' package.
3315
3315
  * @see https://eslint-react.xyz/docs/rules/no-children-only
3316
3316
  */
3317
3317
  'react-extra/no-children-only'?: Linter.RuleEntry<[]>;
3318
3318
  /**
3319
- * Disallow passing `children` as a prop.
3319
+ * Disallows passing 'children' as a prop.
3320
3320
  * @see https://eslint-react.xyz/docs/rules/no-children-prop
3321
3321
  */
3322
3322
  'react-extra/no-children-prop'?: Linter.RuleEntry<[]>;
3323
3323
  /**
3324
- * Disallow `Children.toArray`.
3324
+ * Disallows the use of 'Children.toArray' from the 'react' package.
3325
3325
  * @see https://eslint-react.xyz/docs/rules/no-children-to-array
3326
3326
  */
3327
3327
  'react-extra/no-children-to-array'?: Linter.RuleEntry<[]>;
3328
3328
  /**
3329
- * Disallow class components except for error boundaries.
3329
+ * Disallows class components except for error boundaries.
3330
3330
  * @see https://eslint-react.xyz/docs/rules/no-class-component
3331
3331
  */
3332
3332
  'react-extra/no-class-component'?: Linter.RuleEntry<[]>;
3333
3333
  /**
3334
- * Disallow `cloneElement`.
3334
+ * Disallows 'cloneElement'.
3335
3335
  * @see https://eslint-react.xyz/docs/rules/no-clone-element
3336
3336
  */
3337
3337
  'react-extra/no-clone-element'?: Linter.RuleEntry<[]>;
3338
3338
  /**
3339
- * Replace usages of `componentWillMount` with `UNSAFE_componentWillMount`.
3339
+ * Replaces usage of 'componentWillMount' with 'UNSAFE_componentWillMount'.
3340
3340
  * @see https://eslint-react.xyz/docs/rules/no-component-will-mount
3341
3341
  */
3342
3342
  'react-extra/no-component-will-mount'?: Linter.RuleEntry<[]>;
3343
3343
  /**
3344
- * Replace usages of `componentWillReceiveProps` with `UNSAFE_componentWillReceiveProps`.
3344
+ * Replaces usage of 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'.
3345
3345
  * @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
3346
3346
  */
3347
3347
  'react-extra/no-component-will-receive-props'?: Linter.RuleEntry<[]>;
3348
3348
  /**
3349
- * Replace usages of `componentWillUpdate` with `UNSAFE_componentWillUpdate`.
3349
+ * Replaces usage of 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'.
3350
3350
  * @see https://eslint-react.xyz/docs/rules/no-component-will-update
3351
3351
  */
3352
3352
  'react-extra/no-component-will-update'?: Linter.RuleEntry<[]>;
3353
3353
  /**
3354
- * Replace usages of `<Context.Provider>` with `<Context>`.
3354
+ * Replaces usage of '<Context.Provider>' with '<Context>'.
3355
3355
  * @see https://eslint-react.xyz/docs/rules/no-context-provider
3356
3356
  */
3357
3357
  'react-extra/no-context-provider'?: Linter.RuleEntry<[]>;
3358
3358
  /**
3359
- * Disallow `createRef` in function components.
3359
+ * Disallows 'createRef' in function components.
3360
3360
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
3361
3361
  */
3362
3362
  'react-extra/no-create-ref'?: Linter.RuleEntry<[]>;
3363
3363
  /**
3364
- * Disallow `defaultProps` property in favor of ES6 default parameters.
3364
+ * Disallows the 'defaultProps' property in favor of ES6 default parameters.
3365
3365
  * @see https://eslint-react.xyz/docs/rules/no-default-props
3366
3366
  */
3367
3367
  'react-extra/no-default-props'?: Linter.RuleEntry<[]>;
3368
3368
  /**
3369
- * Disallow direct mutation of `this.state`.
3369
+ * Disallows direct mutation of 'this.state'.
3370
3370
  * @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
3371
3371
  */
3372
3372
  'react-extra/no-direct-mutation-state'?: Linter.RuleEntry<[]>;
3373
3373
  /**
3374
- * Disallow duplicate `key` on elements in the same array or a list of `children`.
3374
+ * Disallows duplicate 'key' on elements in the same array or a list of 'children'.
3375
3375
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
3376
3376
  */
3377
3377
  'react-extra/no-duplicate-key'?: Linter.RuleEntry<[]>;
3378
3378
  /**
3379
- * Disallow certain props on components.
3379
+ * Disallows certain props on components.
3380
3380
  * @see https://eslint-react.xyz/docs/rules/no-forbidden-props
3381
3381
  * @deprecated
3382
3382
  */
3383
3383
  'react-extra/no-forbidden-props'?: Linter.RuleEntry<ReactExtraNoForbiddenProps>;
3384
3384
  /**
3385
- * Replaces usages of `forwardRef` with passing `ref` as a prop.
3385
+ * Replaces usage of 'forwardRef' with passing 'ref' as a prop.
3386
3386
  * @see https://eslint-react.xyz/docs/rules/no-forward-ref
3387
3387
  */
3388
3388
  'react-extra/no-forward-ref'?: Linter.RuleEntry<[]>;
3389
3389
  /**
3390
- * Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects).
3390
+ * Prevents 'key' from not being explicitly specified (e.g., spreading 'key' from objects).
3391
3391
  * @see https://eslint-react.xyz/docs/rules/no-implicit-key
3392
3392
  */
3393
3393
  'react-extra/no-implicit-key'?: Linter.RuleEntry<[]>;
@@ -3397,57 +3397,57 @@ interface RuleOptions {
3397
3397
  */
3398
3398
  'react-extra/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>;
3399
3399
  /**
3400
- * Enforces that all components have a `displayName` which can be used in devtools.
3400
+ * Enforces that all components have a 'displayName' that can be used in devtools.
3401
3401
  * @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
3402
3402
  */
3403
3403
  'react-extra/no-missing-component-display-name'?: Linter.RuleEntry<[]>;
3404
3404
  /**
3405
- * Enforces that all contexts have a `displayName` which can be used in devtools.
3405
+ * Enforces that all contexts have a 'displayName' that can be used in devtools.
3406
3406
  * @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
3407
3407
  */
3408
3408
  'react-extra/no-missing-context-display-name'?: Linter.RuleEntry<[]>;
3409
3409
  /**
3410
- * Disallow missing `key` on items in list rendering.
3410
+ * Disallows missing 'key' on items in list rendering.
3411
3411
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
3412
3412
  */
3413
3413
  'react-extra/no-missing-key'?: Linter.RuleEntry<[]>;
3414
3414
  /**
3415
- * Prevents incorrect usage of `captureOwnerStack`.
3415
+ * Prevents incorrect usage of 'captureOwnerStack'.
3416
3416
  * @see https://eslint-react.xyz/docs/rules/no-misused-capture-owner-stack
3417
3417
  */
3418
3418
  'react-extra/no-misused-capture-owner-stack'?: Linter.RuleEntry<[]>;
3419
3419
  /**
3420
- * Disallow nesting component definitions inside other components.
3420
+ * Disallows nesting component definitions inside other components.
3421
3421
  * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
3422
3422
  */
3423
3423
  'react-extra/no-nested-component-definitions'?: Linter.RuleEntry<[]>;
3424
3424
  /**
3425
- * Disallow nesting lazy component declarations inside other components.
3425
+ * Disallows nesting lazy component declarations inside other components.
3426
3426
  * @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
3427
3427
  */
3428
3428
  'react-extra/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
3429
3429
  /**
3430
- * Disallow `propTypes` in favor of TypeScript or another type-checking solution.
3430
+ * Disallows 'propTypes' in favor of TypeScript or another type-checking solution.
3431
3431
  * @see https://eslint-react.xyz/docs/rules/no-prop-types
3432
3432
  */
3433
3433
  'react-extra/no-prop-types'?: Linter.RuleEntry<[]>;
3434
3434
  /**
3435
- * Disallow `shouldComponentUpdate` when extending `React.PureComponent`.
3435
+ * Disallows 'shouldComponentUpdate' when extending 'React.PureComponent'.
3436
3436
  * @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
3437
3437
  */
3438
3438
  'react-extra/no-redundant-should-component-update'?: Linter.RuleEntry<[]>;
3439
3439
  /**
3440
- * Disallow calling `this.setState` in `componentDidMount` outside of functions, such as callbacks.
3440
+ * Disallows calling 'this.setState' in 'componentDidMount' outside functions such as callbacks.
3441
3441
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
3442
3442
  */
3443
3443
  'react-extra/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>;
3444
3444
  /**
3445
- * Disallow calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
3445
+ * Disallows calling 'this.setState' in 'componentDidUpdate' outside functions such as callbacks.
3446
3446
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
3447
3447
  */
3448
3448
  'react-extra/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>;
3449
3449
  /**
3450
- * Disallow calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks.
3450
+ * Disallows calling 'this.setState' in 'componentWillUpdate' outside functions such as callbacks.
3451
3451
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
3452
3452
  */
3453
3453
  'react-extra/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>;
@@ -3457,42 +3457,42 @@ interface RuleOptions {
3457
3457
  */
3458
3458
  'react-extra/no-string-refs'?: Linter.RuleEntry<[]>;
3459
3459
  /**
3460
- * Prevents the use of unnecessary `key` props on JSX elements when rendering lists.
3460
+ * Prevents 'key' from being placed on non-top-level elements in list rendering.
3461
3461
  * @see https://eslint-react.xyz/docs/rules/no-unnecessary-key
3462
3462
  */
3463
3463
  'react-extra/no-unnecessary-key'?: Linter.RuleEntry<[]>;
3464
3464
  /**
3465
- * Disallow unnecessary usage of `useCallback`.
3465
+ * Disallows unnecessary usage of 'useCallback'.
3466
3466
  * @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-callback
3467
3467
  */
3468
3468
  'react-extra/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>;
3469
3469
  /**
3470
- * Disallow unnecessary usage of `useMemo`.
3470
+ * Disallows unnecessary usage of 'useMemo'.
3471
3471
  * @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-memo
3472
3472
  */
3473
3473
  'react-extra/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>;
3474
3474
  /**
3475
- * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
3475
+ * Enforces that a function with the 'use' prefix uses at least one Hook inside it.
3476
3476
  * @see https://eslint-react.xyz/docs/rules/no-unnecessary-use-prefix
3477
3477
  */
3478
3478
  'react-extra/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>;
3479
3479
  /**
3480
- * Warns the usage of `UNSAFE_componentWillMount` in class components.
3480
+ * Warns about the use of 'UNSAFE_componentWillMount' in class components.
3481
3481
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
3482
3482
  */
3483
3483
  'react-extra/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>;
3484
3484
  /**
3485
- * Warns the usage of `UNSAFE_componentWillReceiveProps` in class components.
3485
+ * Warns about the use of 'UNSAFE_componentWillReceiveProps' in class components.
3486
3486
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
3487
3487
  */
3488
3488
  'react-extra/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>;
3489
3489
  /**
3490
- * Warns the usage of `UNSAFE_componentWillUpdate` in class components.
3490
+ * Warns about the use of 'UNSAFE_componentWillUpdate' in class components.
3491
3491
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
3492
3492
  */
3493
3493
  'react-extra/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>;
3494
3494
  /**
3495
- * Prevents non-stable values (i.e. object literals) from being used as a value for `Context.Provider`.
3495
+ * Prevents non-stable values (i.e., object literals) from being used as a value for 'Context.Provider'.
3496
3496
  * @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
3497
3497
  */
3498
3498
  'react-extra/no-unstable-context-value'?: Linter.RuleEntry<[]>;
@@ -3502,32 +3502,32 @@ interface RuleOptions {
3502
3502
  */
3503
3503
  'react-extra/no-unstable-default-props'?: Linter.RuleEntry<ReactExtraNoUnstableDefaultProps>;
3504
3504
  /**
3505
- * Warns unused class component methods and properties.
3505
+ * Warns about unused class component methods and properties.
3506
3506
  * @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
3507
3507
  */
3508
3508
  'react-extra/no-unused-class-component-members'?: Linter.RuleEntry<[]>;
3509
3509
  /**
3510
- * Warns component props that are defined but never used.
3510
+ * Warns about component props that are defined but never used.
3511
3511
  * @see https://eslint-react.xyz/docs/rules/no-unused-props
3512
3512
  */
3513
3513
  'react-extra/no-unused-props'?: Linter.RuleEntry<[]>;
3514
3514
  /**
3515
- * Warns unused class component state.
3515
+ * Warns about unused class component state.
3516
3516
  * @see https://eslint-react.xyz/docs/rules/no-unused-state
3517
3517
  */
3518
3518
  'react-extra/no-unused-state'?: Linter.RuleEntry<[]>;
3519
3519
  /**
3520
- * Replaces usages of `useContext` with `use`.
3520
+ * Replaces usage of 'useContext' with 'use'.
3521
3521
  * @see https://eslint-react.xyz/docs/rules/no-use-context
3522
3522
  */
3523
3523
  'react-extra/no-use-context'?: Linter.RuleEntry<[]>;
3524
3524
  /**
3525
- * Disallow useless `forwardRef` calls on components that don't use `ref`s.
3525
+ * Disallows useless 'forwardRef' calls on components that don't use 'ref's.
3526
3526
  * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
3527
3527
  */
3528
3528
  'react-extra/no-useless-forward-ref'?: Linter.RuleEntry<[]>;
3529
3529
  /**
3530
- * Disallow useless fragment elements.
3530
+ * Disallows useless fragment elements.
3531
3531
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
3532
3532
  */
3533
3533
  'react-extra/no-useless-fragment'?: Linter.RuleEntry<ReactExtraNoUselessFragment>;
@@ -3537,7 +3537,7 @@ interface RuleOptions {
3537
3537
  */
3538
3538
  'react-extra/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>;
3539
3539
  /**
3540
- * Enforces React is imported via a namespace import.
3540
+ * Enforces importing React via a namespace import.
3541
3541
  * @see https://eslint-react.xyz/docs/rules/prefer-namespace-import
3542
3542
  */
3543
3543
  'react-extra/prefer-namespace-import'?: Linter.RuleEntry<[]>;
@@ -3547,12 +3547,12 @@ interface RuleOptions {
3547
3547
  */
3548
3548
  'react-extra/prefer-read-only-props'?: Linter.RuleEntry<[]>;
3549
3549
  /**
3550
- * Enforces function calls made inside `useState` to be wrapped in an `initializer function`.
3550
+ * Enforces wrapping function calls made inside 'useState' in an 'initializer function'.
3551
3551
  * @see https://eslint-react.xyz/docs/rules/prefer-use-state-lazy-initialization
3552
3552
  */
3553
3553
  'react-extra/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>;
3554
3554
  /**
3555
- * Disallow direct calls to the `set` function of `useState` in `useEffect`.
3555
+ * Disallows **direct** calls to the 'set' function of 'useState' in 'useEffect'.
3556
3556
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
3557
3557
  */
3558
3558
  'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>;
@@ -3680,7 +3680,7 @@ interface RuleOptions {
3680
3680
  */
3681
3681
  'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>;
3682
3682
  /**
3683
- * Enforces context name to be a valid component name with the suffix `Context`.
3683
+ * Enforces the context name to be a valid component name with the suffix 'Context'.
3684
3684
  * @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
3685
3685
  */
3686
3686
  'react-naming-convention/context-name'?: Linter.RuleEntry<[]>;
@@ -3690,32 +3690,37 @@ interface RuleOptions {
3690
3690
  */
3691
3691
  'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>;
3692
3692
  /**
3693
- * Enforces consistent file naming conventions.
3693
+ * Enforces consistent use of the JSX file extension.
3694
3694
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
3695
3695
  */
3696
3696
  'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>;
3697
3697
  /**
3698
- * Enforces destructuring and symmetric naming of `useState` hook value and setter.
3698
+ * Enforces that variables assigned from useRef calls have names ending with 'Ref'.
3699
+ * @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
3700
+ */
3701
+ 'react-naming-convention/ref-name'?: Linter.RuleEntry<[]>;
3702
+ /**
3703
+ * Enforces destructuring and symmetric naming of the 'useState' hook value and setter.
3699
3704
  * @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
3700
3705
  */
3701
3706
  'react-naming-convention/use-state'?: Linter.RuleEntry<ReactNamingConventionUseState>;
3702
3707
  /**
3703
- * Prevents leaked `addEventListener` in a component or custom Hook.
3708
+ * Enforces that every 'addEventListener' in a component or custom hook has a corresponding 'removeEventListener'.
3704
3709
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
3705
3710
  */
3706
3711
  'react-web-api/no-leaked-event-listener'?: Linter.RuleEntry<[]>;
3707
3712
  /**
3708
- * Prevents leaked `setInterval` in a component or custom Hook.
3713
+ * Enforces that every 'setInterval' in a component or custom hook has a corresponding 'clearInterval'.
3709
3714
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
3710
3715
  */
3711
3716
  'react-web-api/no-leaked-interval'?: Linter.RuleEntry<[]>;
3712
3717
  /**
3713
- * Prevents leaked `ResizeObserver` in a component or custom Hook.
3718
+ * Enforces that every 'ResizeObserver' created in a component or custom hook has a corresponding 'ResizeObserver.disconnect()'.
3714
3719
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
3715
3720
  */
3716
3721
  'react-web-api/no-leaked-resize-observer'?: Linter.RuleEntry<[]>;
3717
3722
  /**
3718
- * Prevents leaked `setTimeout` in a component or custom Hook.
3723
+ * Enforces that every 'setTimeout' in a component or custom hook has a corresponding 'clearTimeout'.
3719
3724
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
3720
3725
  */
3721
3726
  'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;