RightCapitalHQ / frontend-style-guide

RightCapital's frontend style guide.
MIT License
7 stars 0 forks source link

fix(deps): update eslint rule and plugin updates #170

Closed renovate[bot] closed 1 month ago

renovate[bot] commented 2 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@eslint-react/eslint-plugin (source) 1.5.23 -> 1.9.0 age adoption passing confidence
@rushstack/eslint-patch (source) 1.10.3 -> 1.10.4 age adoption passing confidence
@typescript-eslint/eslint-plugin (source) 8.0.0 -> 8.0.1 age adoption passing confidence
@typescript-eslint/parser (source) 8.0.0 -> 8.0.1 age adoption passing confidence
@typescript-eslint/rule-tester (source) 8.0.0 -> 8.0.1 age adoption passing confidence
@typescript-eslint/utils (source) 8.0.0 -> 8.0.1 age adoption passing confidence
eslint-plugin-n 17.9.0 -> 17.10.2 age adoption passing confidence
eslint-plugin-react 7.34.3 -> 7.35.0 age adoption passing confidence
typescript-eslint (source) 8.0.0 -> 8.0.1 age adoption passing confidence

Release Notes

Rel1cx/eslint-react (@​eslint-react/eslint-plugin) ### [`v1.9.0`](https://togithub.com/Rel1cx/eslint-react/blob/HEAD/CHANGELOG.md#v190-Tue-06-Aug-2024) [Compare Source](https://togithub.com/Rel1cx/eslint-react/compare/v1.8.2...v1.9.0) ##### โœจ New - Add `core` preset that includes the most essential rules. ##### ๐Ÿช„ Improvements - Upgrade `@typescript-eslint`'s packages to `8.0.1`. ### [`v1.8.2`](https://togithub.com/Rel1cx/eslint-react/blob/HEAD/CHANGELOG.md#v182-Sat-03-Aug-2024) [Compare Source](https://togithub.com/Rel1cx/eslint-react/compare/v1.8.1...v1.8.2) ##### ๐Ÿž Fixes - Fixed legacy presets not being exported correctly in `@eslint-react/eslint-plugin`. ### [`v1.8.1`](https://togithub.com/Rel1cx/eslint-react/blob/HEAD/CHANGELOG.md#v181-Sat-03-Aug-2024) [Compare Source](https://togithub.com/Rel1cx/eslint-react/compare/v1.8.0...v1.8.1) ##### ๐Ÿช„ Improvements - Enhance rule `hooks-extra/no-direct-set-state-in-use-effect` and `hooks-extra/no-direct-set-state-in-use-layout-effect` to support `set` function directly passed to `useCallback` and `useMemo` without explicitly calling it. - Improve website and documentation. ### [`v1.8.0`](https://togithub.com/Rel1cx/eslint-react/blob/HEAD/CHANGELOG.md#v180-Fri-02-Aug-2024) [Compare Source](https://togithub.com/Rel1cx/eslint-react/compare/v1.7.1...v1.8.0) ##### ๐Ÿž Fixes - Fixed `ESLintReactSettings` type not being exported correctly. - Fixed the `set` function calls that are wrapped in a `useMemo` or `useCallback` like hook not being detected by `hooks-extra/no-direct-set-state-in-use-effect` and `hooks-extra/no-direct-set-state-in-use-layout-effect`. ##### ๐Ÿช„ Improvements - Upgrade `@typescript-eslint`'s packages to `8.0.0`. - Improve website and documentation. ### [`v1.7.1`](https://togithub.com/Rel1cx/eslint-react/blob/HEAD/CHANGELOG.md#v171-Wed-31-Jul-2024) [Compare Source](https://togithub.com/Rel1cx/eslint-react/compare/v1.7.0...v1.7.1) ##### ๐Ÿž Fixes - Fixed the spread attributes support for dom related rules. - Fixed the issue where the overridden value was retrieved when there were duplicate attributes on a JSX element. ##### ๐Ÿช„ Improvements - Rule `no-leaked-conditional-rendering` now allows a falsy boolean literal to be used on the left side of the logical expression. - Tweaked the default settings shipped with various presets. - Overall performance improvements. ### [`v1.7.0`](https://togithub.com/Rel1cx/eslint-react/blob/HEAD/CHANGELOG.md#v170-Tue-30-Jul-2024) [Compare Source](https://togithub.com/Rel1cx/eslint-react/compare/v1.6.0...v1.7.0) ##### โœจ New - Add `settings["react-x"].polymorphicPropName` setting to specify the name of the prop that is used to determine the component type. ##### ๐Ÿช„ Improvements - Dropped the current incomplete lint support for `React.createElement` to improve performance and subsequent code maintainability. ### [`v1.6.0`](https://togithub.com/Rel1cx/eslint-react/blob/HEAD/CHANGELOG.md#v160-Sat-27-Jul-2024) [Compare Source](https://togithub.com/Rel1cx/eslint-react/compare/v1.5.30...v1.6.0) ##### โœจ New - Add `controlled` setting to `settings["react-x"].additionalComponents`' `attributes` object to set whether it is controlled or not. - Add glob support to `settings["react-x"].additionalComponents`' `name` setting. - Add default settings for `react-x` settings to presets. - Undeprecate rule `no-implicit-key` and improve its usefulness. - Undeprecate rule `no-complicated-conditional-rendering` and rename it to `no-complex-conditional-rendering` (the previous rule will still be available until the next major update to avoid breaking changes). ##### ๐Ÿž Fixes - `no-direct-set-state-in-use-(layout?)-effect` should warn only for the `set` function. ##### ๐Ÿช„ Improvements - Remove `no-direct-set-state-in-use-(layout?)-effect` from recommended presets. ### [`v1.5.30`](https://togithub.com/Rel1cx/eslint-react/blob/HEAD/CHANGELOG.md#v1530-Mon-22-Jul-2024) [Compare Source](https://togithub.com/Rel1cx/eslint-react/compare/v1.5.29...v1.5.30) ##### ๐Ÿž Fixes - Revert ~~change `@typescript-eslint`'s packages in `dependencies` to `"^7.16.1 || ^rc-v8"`~~ as this format is not supported by all package managers. ### [`v1.5.29`](https://togithub.com/Rel1cx/eslint-react/blob/HEAD/CHANGELOG.md#v1529-Mon-22-Jul-2024) [Compare Source](https://togithub.com/Rel1cx/eslint-react/compare/v1.5.28...v1.5.29) ##### โœจ New - Add rule `no-prop-types`. - Add rule `no-default-props`. - Add experimental `settings["react-x"].additionalComponents` settings (currently only the `no-unsafe-target-blank` rule uses it, but more rules will use it in the future). ##### ๐Ÿช„ Improvements - Add rule `no-prop-types` to recommended presets. - Add rule `no-default-props` to recommended presets. - Remove rule `no-useless-fragment` from recommended presets. - Optimize performance of rule `no-create-ref`. - Change `@typescript-eslint`' packages in `dependencies` to `"^7.16.1 || ^rc-v8"`. ### [`v1.5.28`](https://togithub.com/Rel1cx/eslint-react/blob/HEAD/CHANGELOG.md#v1528-Sat-20-Jul-2024) [Compare Source](https://togithub.com/Rel1cx/eslint-react/compare/v1.5.27...v1.5.28) ##### ๐Ÿž Fixes - Fix false positives and negatives in rule `hooks-extra/no-direct-set-state-in-use-effect`. - Fix false positives and negatives in rule `hooks-extra/no-direct-set-state-in-use-layout-effect`. - Fix rule `prefer-read-only-props` reports only the first component in a file. ##### ๐Ÿช„ Improvements - Improve website and documentation. ### [`v1.5.27`](https://togithub.com/Rel1cx/eslint-react/blob/HEAD/CHANGELOG.md#v1527-Tue-16-Jul-2024) [Compare Source](https://togithub.com/Rel1cx/eslint-react/compare/v1.5.26...v1.5.27) ##### ๐Ÿž Fixes - Fix rule `prefer-read-only-props` that was accidentally added to the recommended type-checked presets. - Fix false negatives in rule `hooks-extra/no-direct-set-state-in-use-effect` when call `set` function inside a non-function scope. - Fix false negatives in rule `hooks-extra/no-direct-set-state-in-use-layout-effect` when call `set` function inside a non-function scope. ##### ๐Ÿช„ Improvements - Rule `no-leaked-conditional-rendering` now supports BigInt literals on the left side of the logical expression - Rule `no-leaked-conditional-rendering` now allows a truthy number literal to be used on the left side of the logical expression. - Optimize bundle size. ### [`v1.5.26`](https://togithub.com/Rel1cx/eslint-react/blob/HEAD/CHANGELOG.md#v1526-Mon-15-Jul-2024) [Compare Source](https://togithub.com/Rel1cx/eslint-react/compare/v1.5.25...v1.5.26) ##### โœจ New - Add rule `hooks-extra/no-direct-set-state-in-use-effect`. - Add rule `hooks-extra/no-direct-set-state-in-use-layout-effect`. ##### ๐Ÿž Fixes - Fix false positives in rule `hooks-extra/ensure-use-memo-has-non-empty-deps` when referencing component block scope. - Fix false positives in rule `hooks-extra/ensure-use-callback-has-non-empty-deps` when referencing component block scope. ##### ๐Ÿช„ Improvements - Add rule `hooks-extra/no-direct-set-state-in-use-effect` to recommended presets. - Add rule `hooks-extra/no-direct-set-state-in-use-layout-effect` to recommended presets. - Add rule `hooks-extra/prefer-use-state-lazy-initialization` to recommended presets. ### [`v1.5.25`](https://togithub.com/Rel1cx/eslint-react/blob/HEAD/CHANGELOG.md#v1525-Sat-13-Jul-2024) [Compare Source](https://togithub.com/Rel1cx/eslint-react/compare/v1.5.24...v1.5.25) ##### ๐Ÿช„ Improvements - Optimize bundle size. ### [`v1.5.24`](https://togithub.com/Rel1cx/eslint-react/blob/HEAD/CHANGELOG.md#v1524-Thu-11-Jul-2024) [Compare Source](https://togithub.com/Rel1cx/eslint-react/compare/v1.5.23...v1.5.24) ##### ๐Ÿž Fixes - Fix rule `prefer-read-only-props` false positive when using `ObjectPattern` in function arguments. ##### ๐Ÿช„ Improvements - Change `typescript` version in `peerDependencies` to `"^4.9.5 || ^5.3.3"`
microsoft/rushstack (@​rushstack/eslint-patch) ### [`v1.10.4`](https://togithub.com/microsoft/rushstack/blob/HEAD/eslint/eslint-patch/CHANGELOG.md#1104) [Compare Source](https://togithub.com/microsoft/rushstack/compare/f29305d1c97aaf94a6b734cfd3d31c098fda60b9...2154c686b7770d49c269870b4403ecf1ef24be47) Sat, 27 Jul 2024 00:10:27 GMT ##### Patches - Include CHANGELOG.md in published releases again
typescript-eslint/typescript-eslint (@​typescript-eslint/eslint-plugin) ### [`v8.0.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#801-2024-08-05) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v8.0.0...v8.0.1) ##### ๐Ÿฉน Fixes - **eslint-plugin:** \[no-unused-vars] ignore imports used only as types ##### โค๏ธ Thank You - Jake Bailey You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.
typescript-eslint/typescript-eslint (@​typescript-eslint/parser) ### [`v8.0.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#801-2024-08-05) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v8.0.0...v8.0.1) This was a version bump only for parser to align it with other projects, there were no code changes. You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.
typescript-eslint/typescript-eslint (@​typescript-eslint/rule-tester) ### [`v8.0.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/rule-tester/CHANGELOG.md#801-2024-08-05) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v8.0.0...v8.0.1) This was a version bump only for rule-tester to align it with other projects, there were no code changes. You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.
typescript-eslint/typescript-eslint (@​typescript-eslint/utils) ### [`v8.0.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/utils/CHANGELOG.md#801-2024-08-05) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v8.0.0...v8.0.1) This was a version bump only for utils to align it with other projects, there were no code changes. You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.
eslint-community/eslint-plugin-n (eslint-plugin-n) ### [`v17.10.2`](https://togithub.com/eslint-community/eslint-plugin-n/blob/HEAD/CHANGELOG.md#17102-2024-08-05) [Compare Source](https://togithub.com/eslint-community/eslint-plugin-n/compare/v17.10.1...v17.10.2) ##### ๐Ÿฉน Fixes - Duplex.from is supported in 16.8.0 ([#​325](https://togithub.com/eslint-community/eslint-plugin-n/issues/325)) ([de5ac0a](https://togithub.com/eslint-community/eslint-plugin-n/commit/de5ac0a4f4ea3e6de21d765084e03fcc37ef0b68)), closes [#​324](https://togithub.com/eslint-community/eslint-plugin-n/issues/324) ### [`v17.10.1`](https://togithub.com/eslint-community/eslint-plugin-n/blob/HEAD/CHANGELOG.md#17101-2024-07-26) [Compare Source](https://togithub.com/eslint-community/eslint-plugin-n/compare/v17.10.0...v17.10.1) ##### ๐Ÿฉน Fixes - Revert ts version (5.5 -> 5.4) ([#​317](https://togithub.com/eslint-community/eslint-plugin-n/issues/317)) ([3bee0d9](https://togithub.com/eslint-community/eslint-plugin-n/commit/3bee0d9b3d6b01c1dffb21aa0ca608045ae4aafd)) ### [`v17.10.0`](https://togithub.com/eslint-community/eslint-plugin-n/blob/HEAD/CHANGELOG.md#17100-2024-07-26) [Compare Source](https://togithub.com/eslint-community/eslint-plugin-n/compare/v17.9.0...v17.10.0) ##### ๐ŸŒŸ Features - **no-unsupported:** Support node 20.16.0 ([73e2bed](https://togithub.com/eslint-community/eslint-plugin-n/commit/73e2bed2e76dc9382069268954ae894665f18538)) - **no-unsupported:** Support node 22.3.0 and 20.16.0 ([#​315](https://togithub.com/eslint-community/eslint-plugin-n/issues/315)) ([73e2bed](https://togithub.com/eslint-community/eslint-plugin-n/commit/73e2bed2e76dc9382069268954ae894665f18538)) - Update to node v22.4.0 ([#​310](https://togithub.com/eslint-community/eslint-plugin-n/issues/310)) ([f7a74eb](https://togithub.com/eslint-community/eslint-plugin-n/commit/f7a74eb147875d7e2125125863befe61d0be0614)), closes [#​308](https://togithub.com/eslint-community/eslint-plugin-n/issues/308) - Update to node v22.5.0 ([#​312](https://togithub.com/eslint-community/eslint-plugin-n/issues/312)) ([2539c9d](https://togithub.com/eslint-community/eslint-plugin-n/commit/2539c9deaa0c339b520dcd45ba4998dca6b678e3)) ##### ๐Ÿ“š Documentation - add clarifications to readme ([dbdfa8e](https://togithub.com/eslint-community/eslint-plugin-n/commit/dbdfa8e0abdeb96f2f843c4112cc43f16f2657ea)) - fix spacings in the example ([#​306](https://togithub.com/eslint-community/eslint-plugin-n/issues/306)) ([c092cd8](https://togithub.com/eslint-community/eslint-plugin-n/commit/c092cd893010f8da894f87da567c07d69be6cc0d)) ##### ๐Ÿงน Chores - upgrade compatible deps ([8f6f11d](https://togithub.com/eslint-community/eslint-plugin-n/commit/8f6f11da5d072fe7b0ca1e916744e527ee260db2))
jsx-eslint/eslint-plugin-react (eslint-plugin-react) ### [`v7.35.0`](https://togithub.com/jsx-eslint/eslint-plugin-react/blob/HEAD/CHANGELOG.md#7350---20240719) [Compare Source](https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.34.4...v7.35.0) ##### Added - support eslint v9 ([#​3759][] [@​mdjermanovic](https://togithub.com/mdjermanovic)) - export flat configs from plugin root and fix flat config crash ([#​3694][] [@​bradzacher](https://togithub.com/bradzacher) [@​mdjermanovic](https://togithub.com/mdjermanovic)) - add \[`jsx-props-no-spread-multi`] ([#​3724][] [@​SimonSchick](https://togithub.com/SimonSchick)) - \[`forbid-component-props`]: add `propNamePattern` to allow / disallow prop name patterns ([#​3774][] [@​akulsr0](https://togithub.com/akulsr0)) - \[`jsx-handler-names`]: support ignoring component names ([#​3772][] [@​akulsr0](https://togithub.com/akulsr0)) - version settings: Allow react defaultVersion to be configurable ([#​3771][] [@​onlywei](https://togithub.com/onlywei)) - \[`jsx-closing-tag-location`]: add `line-aligned` option ([#​3777] [@​kimtaejin3](https://togithub.com/kimtaejin3)) - \[`no-danger`]: add `customComponentNames` option ([#​3748][] [@​akulsr0](https://togithub.com/akulsr0)) ##### Fixed - \[`no-invalid-html-attribute`]: substitute placeholders in suggestion messages ([#​3759][] [@​mdjermanovic](https://togithub.com/mdjermanovic)) - \[`sort-prop-types`]: single line type ending without semicolon ([#​3784][] [@​akulsr0](https://togithub.com/akulsr0)) - \[`require-default-props`]: report when required props have default value ([#​3785][] [@​akulsr0](https://togithub.com/akulsr0)) ##### Changed - \[Refactor] `variableUtil`: Avoid creating a single flat variable scope for each lookup ([#​3782][] [@​DanielRosenwasser](https://togithub.com/DanielRosenwasser)) [7.35.0]: https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.34.4...v7.35.0 [#​3785]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3785 [#​3784]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3784 [#​3782]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3782 [#​3777]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3777 [#​3774]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3774 [#​3772]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3772 [#​3771]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3771 [#​3759]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3759 [#​3748]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3748 [#​3724]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3724 [#​3694]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3694 ### [`v7.34.4`](https://togithub.com/jsx-eslint/eslint-plugin-react/blob/HEAD/CHANGELOG.md#7344---20240713) [Compare Source](https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.34.3...v7.34.4) ##### Fixed - \[`prop-types`]: fix `className` missing in prop validation false negative ([#​3749] [@​akulsr0](https://togithub.com/akulsr0)) - \[`sort-prop-types`]: Check for undefined before accessing `node.typeAnnotation.typeAnnotation` ([#​3779] [@​tylerlaprade](https://togithub.com/tylerlaprade)) [7.34.4]: https://togithub.com/jsx-eslint/eslint-plugin-react/compare/v7.34.3...v7.34.4 [#​3779]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3779 [#​3749]: https://togithub.com/jsx-eslint/eslint-plugin-react/pull/3749
typescript-eslint/typescript-eslint (typescript-eslint) ### [`v8.0.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/typescript-eslint/CHANGELOG.md#801-2024-08-05) [Compare Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v8.0.0...v8.0.1) This was a version bump only for typescript-eslint to align it with other projects, there were no code changes. You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.

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.

๐Ÿ‘ป Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



This PR was generated by Mend Renovate. View the repository job log.