hipstersmoothie / storybook-dark-mode

A storybook addon that lets your users toggle between dark and light mode.
MIT License
429 stars 56 forks source link

Update dependency eslint-plugin-react to v7.34.0 #212

Closed renovate[bot] closed 4 months ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
eslint-plugin-react 7.31.11 -> 7.34.0 age adoption passing confidence

Release Notes

jsx-eslint/eslint-plugin-react (eslint-plugin-react) ### [`v7.34.0`](https://togithub.com/jsx-eslint/eslint-plugin-react/blob/HEAD/CHANGELOG.md#7340---20240303) [Compare Source](https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.33.2...v7.34.0) ##### Added - \[`sort-prop-types`]: give errors on TS types ([#​3615][] [@​akulsr0](https://togithub.com/akulsr0)) - \[`no-invalid-html-attribute`]: add support for `apple-touch-startup-image` `rel` attributes in `link` tags ([#​3638][] [@​thomashockaday](https://togithub.com/thomashockaday)) - \[`no-unknown-property`]: add requireDataLowercase option ([#​3645][] [@​HermanBilous](https://togithub.com/HermanBilous)) - \[`no-unknown-property`]: add `displaystyle` on `` ([#​3652][] [@​lounsbrough](https://togithub.com/lounsbrough)) - \[`prefer-read-only-props`], \[`prop-types`], component detection: allow components to be async functions ([#​3654][] [@​pnodet](https://togithub.com/pnodet)) - \[`no-unknown-property`]: support `onResize` on audio/video tags ([#​3662][] [@​caesar1030](https://togithub.com/caesar1030)) - \[`jsx-wrap-multilines`]: add `never` option to prohibit wrapping parens on multiline JSX ([#​3668][] [@​reedws](https://togithub.com/reedws)) - \[`jsx-filename-extension`]: add `ignoreFilesWithoutCode` option to allow empty files ([#​3674][] [@​burtek](https://togithub.com/burtek)) - \[`jsx-boolean-value`]: add `assumeUndefinedIsFalse` option ([#​3675][] [@​developer-bandi](https://togithub.com/developer-bandi)) - `linkAttribute` setting, \[`jsx-no-target-blank`]: support multiple properties ([#​3673][] [@​burtek](https://togithub.com/burtek)) - \[`jsx-no-script-url`]: add `includeFromSettings` option to support `linkAttributes` setting ([#​3673][] [@​burtek](https://togithub.com/burtek)) - \[`jsx-one-expression-per-line`]: add `non-jsx` option to allow non-JSX children in one line ([#​3677][] [@​burtek](https://togithub.com/burtek)) - add \[`checked-requires-onchange-or-readonly`] rule ([#​3680][] [@​jaesoekjjang](https://togithub.com/jaesoekjjang)) ##### Fixed - \[`jsx-no-leaked-render`]: preserve RHS parens for multiline jsx elements while fixing ([#​3623][] [@​akulsr0](https://togithub.com/akulsr0)) - \[`jsx-key`]: detect conditional returns ([#​3630][] [@​yialo](https://togithub.com/yialo)) - \[`jsx-newline`]: prevent a crash when \`allowMultilines ([#​3633][] [@​ljharb](https://togithub.com/ljharb)) - \[`no-unknown-property`]: use a better regex to avoid a crash ([#​3666][] [@​ljharb](https://togithub.com/ljharb) [@​SCH227](https://togithub.com/SCH227)) - \[`prop-types`]: handle nested forwardRef + memo ([#​3679][] [@​developer-bandi](https://togithub.com/developer-bandi)) - \[`no-unknown-property`]: add `fetchPriority` ([#​3697][] [@​SevereCloud](https://togithub.com/SevereCloud)) - \[`forbid-elements`]: prevent a crash on `createElement()` ([#​3632][] [@​ljharb](https://togithub.com/ljharb)) ##### Changed - \[`jsx-boolean-value`]: make error messages clearer ([#​3691][] [@​developer-bandi](https://togithub.com/developer-bandi)) - \[Refactor] `propTypes`: extract type params to var ([#​3634][] [@​HenryBrown0](https://togithub.com/HenryBrown0)) - \[Refactor] \[`boolean-prop-naming`]: invert if statement ([#​3634][] [@​HenryBrown0](https://togithub.com/HenryBrown0)) - \[Refactor] \[`function-component-definition`]: exit early if no type params ([#​3634][] [@​HenryBrown0](https://togithub.com/HenryBrown0)) - \[Refactor] \[`jsx-props-no-multi-spaces`]: extract type parameters to var ([#​3634][] [@​HenryBrown0](https://togithub.com/HenryBrown0)) - \[Docs] \[`jsx-key`]: fix correct example ([#​3656][] [@​developer-bandi](https://togithub.com/developer-bandi)) - \[Tests] `jsx-wrap-multilines`: passing tests ([#​3545][] [@​burtek](https://togithub.com/burtek)) - \[Docs] \[`iframe-missing-sandbox`]: fix link to iframe attribute on mdn ([#​3690][] [@​nnmrts](https://togithub.com/nnmrts)) - \[Docs] \[`hook-use-state`]: fix an undefined variable ([#​3626][] [@​chentsulin](https://togithub.com/chentsulin)) [7.34.0]: https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.33.2...v7.34.0 [#​3697]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3697 [#​3691]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3691 [#​3690]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3690 [#​3680]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3680 [#​3679]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3679 [#​3677]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3677 [#​3675]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3675 [#​3674]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3674 [#​3673]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3673 [#​3668]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3668 [#​3666]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3666 [#​3662]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3662 [#​3656]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3656 [#​3654]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3654 [#​3652]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3652 [#​3645]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3645 [#​3638]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3638 [#​3634]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3634 [#​3633]: https://togithub.com/jsx-eslint/eslint-plugin-react/issues/3633 [#​3632]: https://togithub.com/jsx-eslint/eslint-plugin-react/issues/3632 [#​3630]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3630 [#​3626]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3626 [#​3623]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3623 [#​3615]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3615 [#​3545]: https://togithub.com/jsx-eslint/eslint-plugin-react/issues/3545 ### [`v7.33.2`](https://togithub.com/jsx-eslint/eslint-plugin-react/blob/HEAD/CHANGELOG.md#7332---20230815) [Compare Source](https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.33.1...v7.33.2) ##### Fixed - \[`no-deprecated`]: prevent false positive on commonjs import ([#​3614][] [@​akulsr0](https://togithub.com/akulsr0)) - \[`no-unsafe`]: report on the method instead of the entire component ([@​ljharb](https://togithub.com/ljharb)) - \[`no-deprecated`]: report on the destructured property instead of the entire variable declarator ([@​ljharb](https://togithub.com/ljharb)) - \[`no-deprecated`]: report on the imported specifier instead of the entire import statement ([@​ljharb](https://togithub.com/ljharb)) - \[`no-invalid-html-attribute`]: report more granularly ([@​ljharb](https://togithub.com/ljharb)) [7.33.2]: https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.33.1...v7.33.2 [#​3614]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3614 ### [`v7.33.1`](https://togithub.com/jsx-eslint/eslint-plugin-react/blob/HEAD/CHANGELOG.md#7331---20230729) [Compare Source](https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.33.0...v7.33.1) ##### Fixed - \[`require-default-props`]: fix config schema ([#​3605][] [@​controversial](https://togithub.com/controversial)) - \[`jsx-curly-brace-presence`]: Revert \[[#​3538](https://togithub.com/jsx-eslint/eslint-plugin-react/issues/3538)]\[] due to issues with intended string type casting usage ([#​3611][] [@​taozhou-glean](https://togithub.com/taozhou-glean)) - \[`sort-prop-types`]: ensure sort-prop-types respects noSortAlphabetically ([#​3610][] [@​caesar1030](https://togithub.com/caesar1030)) [7.33.1]: https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.33.0...v7.33.1 [#​3611]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3611 [#​3610]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3610 [#​3605]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3605 ### [`v7.33.0`](https://togithub.com/jsx-eslint/eslint-plugin-react/blob/HEAD/CHANGELOG.md#7330---20230719) [Compare Source](https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.32.2...v7.33.0) ##### Added - \[`display-name`]: add `checkContextObjects` option ([#​3529][] [@​JulesBlm](https://togithub.com/JulesBlm)) - \[`jsx-first-prop-new-line`]: add `multiprop` option ([#​3533][] [@​haydncomley](https://togithub.com/haydncomley)) - \[`no-deprecated`]: add React 18 deprecations ([#​3548][] [@​sergei-startsev](https://togithub.com/sergei-startsev)) - \[`forbid-component-props`]: add `disallowedFor` option ([#​3417][] [@​jacketwpbb](https://togithub.com/jacketwpbb)) ##### Fixed - \[`no-array-index-key`]: consider flatMap ([#​3530][] [@​k-yle](https://togithub.com/k-yle)) - \[`jsx-curly-brace-presence`]: handle single and only expression template literals ([#​3538][] [@​taozhou-glean](https://togithub.com/taozhou-glean)) - \[`no-unknown-property`]: allow `onLoad` on `source` ([@​ljharb](https://togithub.com/ljharb)) - \[`jsx-first-prop-new-line`]: ensure autofix preserves generics in component name ([#​3546][] [@​ljharb](https://togithub.com/ljharb)) - \[`no-unknown-property`]: allow `fill` prop on `` ([#​3555][] [@​stefanprobst](https://togithub.com/stefanprobst)) - \[`display-name`], \[`prop-types`]: when checking for a capitalized name, ignore underscores entirely ([#​3560][] [@​ljharb](https://togithub.com/ljharb)) - \[`no-unused-state`]: avoid crashing on a class field function with destructured state ([#​3568][] [@​ljharb](https://togithub.com/ljharb)) - \[`no-unused-prop-types`]: allow using spread with object expression in jsx ([#​3570][] [@​akulsr0](https://togithub.com/akulsr0)) - Revert "\[`destructuring-assignment`]: Handle destructuring of useContext in SFC" ([#​3583][] \[[#​2797](https://togithub.com/jsx-eslint/eslint-plugin-react/issues/2797)]\[] [@​102](https://togithub.com/102)) - \[`prefer-read-only-props`]: add TS support ([#​3593][] [@​HenryBrown0](https://togithub.com/HenryBrown0)) ##### Changed - \[Docs] \[`jsx-newline`], \[`no-unsafe`], \[`static-property-placement`]: Fix code syntax highlighting ([#​3563][] [@​nbsp1221](https://togithub.com/nbsp1221)) - \[readme] resore configuration URL ([#​3582][] [@​gokaygurcan](https://togithub.com/gokaygurcan)) - \[Docs] \[`jsx-no-bind`]: reword performance rationale ([#​3581][] [@​gpoole](https://togithub.com/gpoole)) - \[Docs] \[`jsx-first-prop-new-line`]: add missing `multiprop` value ([#​3598][] [@​dzek69](https://togithub.com/dzek69)) [7.33.0]: https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.32.2...v7.33.0 [#​3598]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3598 [#​3593]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3593 [#​3583]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3583 [#​3582]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3582 [#​3581]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3581 [#​3570]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3570 [#​3568]: https://togithub.com/jsx-eslint/eslint-plugin-react/issues/3568 [#​3563]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3563 [#​3560]: https://togithub.com/jsx-eslint/eslint-plugin-react/issues/3560 [#​3555]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3555 [#​3548]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3548 [#​3546]: https://togithub.com/jsx-eslint/eslint-plugin-react/issues/3546 [#​3538]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3538 [#​3533]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3533 [#​3530]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3530 [#​3529]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3529 [#​3417]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3417 ### [`v7.32.2`](https://togithub.com/jsx-eslint/eslint-plugin-react/blob/HEAD/CHANGELOG.md#7322---20230128) [Compare Source](https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.32.1...v7.32.2) ##### Fixed - configs: restore `parserOptions` in legacy configs (\[[#​3523](https://togithub.com/jsx-eslint/eslint-plugin-react/issues/3523)]\[] [@​ljharb](https://togithub.com/ljharb)) - \[`jsx-no-constructed-context-values`], \[`jsx-no-useless-fragment`]: add a rule schema ([@​ljharb](https://togithub.com/ljharb)) ( \[`no-unknown-property`]: add `fill` for `` ([#​3525][] [@​alexey-koran](https://togithub.com/alexey-koran)) [7.32.2]: https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.32.1...v7.32.2 [#​3525]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3525 [#​3520]: https://togithub.com/jsx-eslint/eslint-plugin-react/issues/3523 ### [`v7.32.1`](https://togithub.com/jsx-eslint/eslint-plugin-react/blob/HEAD/CHANGELOG.md#7321---20230116) [Compare Source](https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.32.0...v7.32.1) ##### Fixed - prevent circular dependency in index and "all" config ([#​3519][] [@​ljharb](https://togithub.com/ljharb)) - \[`destructuring-assignment`]: do not force destructuring of optionally chained properties ([#​3520][] [@​ljharb](https://togithub.com/ljharb)) [7.32.1]: https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.32.0...v7.32.1 [#​3520]: https://togithub.com/jsx-eslint/eslint-plugin-react/issues/3520 [#​3519]: https://togithub.com/jsx-eslint/eslint-plugin-react/issues/3519 ### [`v7.32.0`](https://togithub.com/jsx-eslint/eslint-plugin-react/blob/HEAD/CHANGELOG.md#7320---20230110) [Compare Source](https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.31.11...v7.32.0) ##### Added - support new config system ([#​3429][] [@​jjangga0214](https://togithub.com/jjangga0214)) - \[`hook-use-state`]: add `allowDestructuredState` option ([#​3449][] [@​ljharb](https://togithub.com/ljharb)) - add \[`sort-default-props`] and deprecate \[`jsx-sort-default-props`] ([#​1861][] [@​alexzherdev](https://togithub.com/alexzherdev)) - add \[`no-object-type-as-default-prop`] rule ([#​2848][] [@​cyan33](https://togithub.com/cyan33) [@​fengkx](https://togithub.com/fengkx)) ##### Fixed - configs: avoid legacy config system error ([#​3461][] [@​ljharb](https://togithub.com/ljharb)) - \[`sort-prop-types`]: restore autofixing ([#​3452][], [#​3471][] [@​ROSSROSALES](https://togithub.com/ROSSROSALES)) - \[`no-unknown-property`]: do not check `fbs` elements ([#​3494][] [@​brianogilvie](https://togithub.com/brianogilvie)) - \[`jsx-newline`]: No newline between comments and jsx elements ([#​3493][] [@​justmejulian](https://togithub.com/justmejulian)) - \[`jsx-no-leaked-render`]: Don't report errors on empty strings if React >= v18 ([#​3488][] [@​himanshu007-creator](https://togithub.com/himanshu007-creator)) - \[`no-invalid-html-attribute`]: convert autofix to suggestion ([#​3474][] [@​himanshu007-creator](https://togithub.com/himanshu007-creator) [@​ljharb](https://togithub.com/ljharb)) - \[`jsx-no-leaked-render`]: fix removing parentheses for conditionals ([#​3502][] [@​akulsr0](https://togithub.com/akulsr0)) - \[`jsx-no-leaked-render`]: invalid fixes in coerce mode ([#​3511][] [@​akulsr0](https://togithub.com/akulsr0)) - \[`destructuring-assignment`]: Handle destructuring of useContext in SFC ([#​2797][] [@​Zinyon](https://togithub.com/Zinyon) [@​ljharb](https://togithub.com/ljharb)) ##### Changed - \[Docs] \[`jsx-no-leaked-render`]: Remove mentions of empty strings for React 18 ([#​3468][] [@​karlhorky](https://togithub.com/karlhorky)) - \[Docs] update `eslint-doc-generator` to v1.0.0 ([#​3499][] [@​bmish](https://togithub.com/bmish)) - \[meta] add issue template ([#​3483][] [@​ROSSROSALES](https://togithub.com/ROSSROSALES)) - \[Docs] Use emoji for jsx-runtime config and config file for eslint-doc-generator ([#​3504][] [@​bmish](https://togithub.com/bmish)) - \[Docs] \[`prefer-exact-props`]: fix example flow syntax ([#​3510][] [@​smackfu](https://togithub.com/smackfu)) - \[Perf] use `anyOf` instead of `oneOf` ([@​ljharb](https://togithub.com/ljharb) [@​remcohaszing](https://togithub.com/remcohaszing)) [7.32.0]: https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.31.11...v7.32.0 [#​3511]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3511 [#​3510]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3510 [#​3504]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3504 [#​3502]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3502 [#​3499]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3499 [#​3494]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3494 [#​3493]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3493 [#​3488]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3488 [#​3483]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3483 [#​3474]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3474 [#​3471]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3471 [#​3468]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3468 [#​3461]: https://togithub.com/jsx-eslint/eslint-plugin-react/issues/3461 [#​3452]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3452 [#​3449]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3449 [#​3429]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3429 [#​2848]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/2848 [#​2797]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/2797 [#​1861]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/1861

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 4 months ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (7.34.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.