Closed renovate[bot] closed 4 years ago
This PR contains the following updates:
7.11.1
7.17.0
:date: Schedule: "on Sunday" (UTC).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
rebase!
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
Newsflash: Renovate has joined WhiteSource, and is now free for all use. Learn more or view updated terms and privacy policies.
This PR contains the following updates:
7.11.1
->7.17.0
Release Notes
yannickcr/eslint-plugin-react
### [`v7.17.0`](https://togithub.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#7170---2019-11-28) [Compare Source](https://togithub.com/yannickcr/eslint-plugin-react/compare/v7.16.0...v7.17.0) ##### Added - [`jsx-no-target-blank`][]: add `allowReferrer` option ([#2478][] [@eps1lon](https://togithub.com/eps1lon)) - [`jsx-handler-names`][]: add `checkLocalVariables` option ([#2470][] [@aub](https://togithub.com/aub)) - [`prop-types`][]: Support Flow Type spread ([#2446][] [@moroine](https://togithub.com/moroine)) - [`jsx-props-no-spreading`][]: add `explicitSpread` option to allow explicit spread of props ([#2449][] [@pawelnvk](https://togithub.com/pawelnvk)) - [`jsx-no-target-blank`][]: warn on `target={'_blank'}` expressions ([#2451][] [@timkraut](https://togithub.com/timkraut)) ##### Fixed - [`sort-prop-types`][], [`jsx-sort-default-props`][]: disable broken autofix ([#2505][] [@webOS101](https://togithub.com/webOS101)) - [`no-typos`][]: improve report location ([#2468][] [@golopot](https://togithub.com/golopot)) - [`jsx-no-literals`][]: trim whitespace for `allowedStrings` check ([#2436][] [@cainlevy](https://togithub.com/cainlevy)) - [`jsx-curly-brace-presence`][]: Fix filter of undefined error with whitespace inside jsx attr curlies ([#2460][] [@dustinyoste](https://togithub.com/dustinyoste)) - [`no-render-return-value`][]: should warn when used in assignment expression ([#2462][] [@jichu4n](https://togithub.com/jichu4n)) - [`jsx-curly-brace-presence`][]: allow trailing spaces in literal ([#2448][] [@doochik](https://togithub.com/doochik)) ##### Changed - [Deps] update `jsx-ast-utils`, `object.fromentries`, `resolve` - [eslint] fix func-names and change object-shorthand to 'always' ([#2483][] [@golopot](https://togithub.com/golopot)) - [Docs] `jsx-first-prop-new-line`: Fix documentation formatting ([#2489][] [@pjg](https://togithub.com/pjg)) - [Docs][`prop-types`]\[]: Update 'skipUndeclared' in rule options ([#2504][] [@cjnickel](https://togithub.com/cjnickel)) - [Docs][`jsx-first-prop-new-line`]\[]: fix wrong rule name ([#2500][] [@zgayjjf](https://togithub.com/zgayjjf)) - [eslint] enable eslint-plugin-eslint-plugin ([#2469][] [@golopot](https://togithub.com/golopot)) - [Docs][`jsx-props-no-multi-spaces`]\[]: suggest using core rule instead ([#2463][] [@golopot](https://togithub.com/golopot)) - [Docs][`jsx-first-prop-new-line`]\[]: add rule options ([#2465][] [@SerdarMustafa1](https://togithub.com/SerdarMustafa1)) - [Docs][`jsx-no-target-blank`]\[]: Add section about overriding for trusted links ([#2438][] [@aschriner](https://togithub.com/aschriner)) - [Docs] fix typo ([#2453][] [@cainwatson](https://togithub.com/cainwatson)) - [Docs][`no-unused-prop-types`]\[]: clean up prose ([#2273][] [@coryhouse](https://togithub.com/coryhouse)) - [Docs][`jsx-no-bind`]\[]: add section about React Hooks ([#2443][] [@kdex](https://togithub.com/kdex)) [#2505]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2505 [#2504]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2504 [#2500]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2500 [#2489]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2489 [#2483]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2483 [#2478]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2478 [#2470]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2470 [#2469]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2469 [#2468]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2468 [#2465]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2465 [#2463]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2463 [#2460]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2460 [#2453]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2453 [#2451]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2451 [#2449]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2449 [#2448]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2448 [#2446]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2446 [#2443]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2443 [#2438]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2438 [#2436]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2436 [#2273]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2273 ### [`v7.16.0`](https://togithub.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#7160---2019-10-04) [Compare Source](https://togithub.com/yannickcr/eslint-plugin-react/compare/v7.15.1...v7.16.0) ##### Added - [`jsx-sort-default-props`][]: make rule fixable ([#2429][] [@emroussel](https://togithub.com/emroussel)) ##### Fixed - [`jsx-no-useless-fragment`][]: use `array-includes` over `.includes` for back compat ([@ljharb](https://togithub.com/ljharb)) - [`jsx-curly-brace-presence`][]: allow necessary white-space literal ([#2437][] [@uniqname](https://togithub.com/uniqname)) - [`jsx-curly-brace-presence`][]: warns incorrectly on trailing whitespace ([#2431][] [@BC-M](https://togithub.com/BC-M)) - [`no-unused-prop-types`][]: false positive when nested destructuring ([#2428][] [@golopot](https://togithub.com/golopot)) [#2437]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2437 [#2431]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2431 [#2429]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2429 [#2428]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2428 ### [`v7.15.1`](https://togithub.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#7151---2019-10-01) [Compare Source](https://togithub.com/yannickcr/eslint-plugin-react/compare/v7.15.0...v7.15.1) ##### Fixed - [`jsx-curly-brace-presence`][]: bail out checks when JSXElements are passed as props ([#2426][] [@vedadeepta](https://togithub.com/vedadeepta)) ##### Changed - [Docs][`prefer-es6-class`]\[]: Fix typos ([#2425][] [@spencerbyw](https://togithub.com/spencerbyw)) [#2426]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2426 [#2425]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2425 ### [`v7.15.0`](https://togithub.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#7150---2019-09-30) [Compare Source](https://togithub.com/yannickcr/eslint-plugin-react/compare/v7.14.3...v7.15.0) ##### Added - add [`jsx-no-useless-fragment`][] rule ([#2261][] [@golopot](https://togithub.com/golopot)) - [`jsx-handler-name`][]: allow `false` to disable `eventHandlerPrefix`/`eventHandlerPropPrefix` ([#2410][] [@tanmoyopenroot](https://togithub.com/tanmoyopenroot)) - [`sort-comp`][]: add `static-variables` grouping ([#2408][] [@vedadeepta](https://togithub.com/vedadeepta)) - [`jsx-no-literals`][]: Add `allowedStrings` option ([#2380][] [@benhollander](https://togithub.com/benhollander)) - [`no-multi-comp`][]: Added handling for `forwardRef` and `memo` wrapping components declared in the same file ([#2184][] [@jenil94](https://togithub.com/jenil94)) - [`jsx-pascal-case`][]: `allowAllCaps` option now allows `SCREAMING_SNAKE_CASE` ([#2364][] [@TylerR909](https://togithub.com/TylerR909)) ##### Fixed - [`jsx-indent`][]: Fix false positive when a jsx element is the last statement within a do expression (with tests) ([#2200][] [@Kenneth-KT](https://togithub.com/Kenneth-KT)) - [`jsx-curly-brace-presence`][]: fix jsx tags in braces ([#2422][] [@tanmoyopenroot](https://togithub.com/tanmoyopenroot)) - [`display-name`][]: Fix false positives ([#2399][] [@BPScott](https://togithub.com/BPScott)) - [`jsx-curly-brace-presence`][]: report unnecessary curly braces with children on next line ([#2409][] [@vedadeepta](https://togithub.com/vedadeepta)) - [`no-unused-prop-types`][]: false positive with callback ([#2375][] [@golopot](https://togithub.com/golopot)) - Fix prop-types detection collision on renamed props ([#2383][] [@yannickcr](https://togithub.com/yannickcr)) - [`jsx-sort-props`][]: use localeCompare rather than comparison operator ([#2391][] [@tanmoyopenroot](https://togithub.com/tanmoyopenroot)) - [`jsx-pascal-case`][]: allow one-letter-named components ([#2395][] [@Haegin](https://togithub.com/Haegin)) - [`jsx-wrap-multilines`][]: fix incorrect formatting ([#2392][] [@tanmoyopenroot](https://togithub.com/tanmoyopenroot)) - [`require-optimization`][]: fix when using arrow function in class components ([#2385][] [@jenil94](https://togithub.com/jenil94)) - [`no-deprecated`][]: Deprecate cWM/cWRP/cWU lifecycle methods since React 16.9.0 ([#2378][] [@meowtec](https://togithub.com/meowtec)) - [`jsx-key`][]: improve docs and confusing error message ([#2367][] [@kaykayehnn](https://togithub.com/kaykayehnn)) - Recognize props wrapped in flow $ReadOnly<> utility type ([#2361][] [@lukeapage](https://togithub.com/lukeapage)) - [`prop-types`][]: false positive with setState updator ([#2359][] [@golopot](https://togithub.com/golopot)) ##### Changed - [Docs][`no-access-state-in-setstate`]\[]: update grammar ([#2418][] [@neaumusic](https://togithub.com/neaumusic)) - [`jsx-curly-brace-presence`][], [`jsx-one-expression-per-line`][], [`no-danger-with-children`][]: add `isWhiteSpaces` to `lib/util/jsx` ([#2409][] [@vedadeepta](https://togithub.com/vedadeepta)) [#2422]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2422 [#2410]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2410 [#2409]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2409 [#2408]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2408 [#2402]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2402 [#2399]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2399 [#2395]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2395 [#2392]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2392 [#2391]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2391 [#2385]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2385 [#2383]: https://togithub.com/yannickcr/eslint-plugin-react/issue/2383 [#2380]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2380 [#2378]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2378 [#2375]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2375 [#2367]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2367 [#2364]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2364 [#2361]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2361 [#2359]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2359 [#2261]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2261 [#2200]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2200 [#2184]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2184 ### [`v7.14.3`](https://togithub.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#7143---2019-07-23) [Compare Source](https://togithub.com/yannickcr/eslint-plugin-react/compare/v7.14.2...v7.14.3) ##### Fixed - Fix [`prop-types`][] to ignore validation when Flow indexers are used ([#2330][] [@yannickcr](https://togithub.com/yannickcr)) - Fix error being thrown after the first warning when react version cannot be detected ([#2336][] [@abhishekdev](https://togithub.com/abhishekdev)) - Fix component detection when `memo` and `forwardRef` are used together ([#2349][] [@yannickcr](https://togithub.com/yannickcr)) ##### Changed - Documentation improvements ([@ljharb](https://togithub.com/ljharb), [#2354][] [@golopot](https://togithub.com/golopot)) [7.14.3]: https://togithub.com/yannickcr/eslint-plugin-react/compare/v7.14.2...v7.14.3 [#2330]: https://togithub.com/yannickcr/eslint-plugin-react/issues/2330 [#2336]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2336 [#2349]: https://togithub.com/yannickcr/eslint-plugin-react/issues/2349 [#2354]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2354 ### [`v7.14.2`](https://togithub.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#7142---2019-06-24) [Compare Source](https://togithub.com/yannickcr/eslint-plugin-react/compare/v7.14.1...v7.14.2) ##### Fixed - Fix [`prop-types`][] crash on for...of destructuring ([#2326][] [@yannickcr](https://togithub.com/yannickcr)) [7.14.2]: https://togithub.com/yannickcr/eslint-plugin-react/compare/v7.14.1...v7.14.2 [#2326]: https://togithub.com/yannickcr/eslint-plugin-react/issues/2326 ### [`v7.14.1`](https://togithub.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#7141---2019-06-24) [Compare Source](https://togithub.com/yannickcr/eslint-plugin-react/compare/v7.14.0...v7.14.1) ##### Fixed - Fix [`prop-types`][] crash on multiple destructuring ([#2319][] [@golopot](https://togithub.com/golopot)) [7.14.1]: https://togithub.com/yannickcr/eslint-plugin-react/compare/v7.14.0...v7.14.1 [#2319]: https://togithub.com/yannickcr/eslint-plugin-react/issues/2319 ### [`v7.14.0`](https://togithub.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#7140---2019-06-23) [Compare Source](https://togithub.com/yannickcr/eslint-plugin-react/compare/v7.13.0...v7.14.0) ##### Added - Add [`jsx-curly-newline`][] rule ([#1493][] [@golopot](https://togithub.com/golopot)) - Add support for nested destructuring to [`prop-types`][] ([#296][] [#1422][] [@golopot](https://togithub.com/golopot)) - Add support for variables defined as props to [`prop-types`][] and [`no-unused-prop-types`][] ([#442][] [#833][] [#1002][] [#1116][] [#1257][] [#1764][] [@golopot](https://togithub.com/golopot)) - Add `checkFragmentShorthand` option to [`jsx-key`][] ([#2316][] [@kaykayehnn](https://togithub.com/kaykayehnn)) ##### Fixed - Fix [`no-did-mount-set-state`][] and [`no-did-update-set-state`][] to handle cDU and cDM defined as class properties ([#1595][] [@jaaberg](https://togithub.com/jaaberg)) - Fix [`sort-prop-types`][] cash when a shape PropType is defined in a variable ([#1749][] [@alexzherdev](https://togithub.com/alexzherdev)) - Fix [`no-unused-state`][] false positive when using state of non-lifecycle method ([#2274][] [@golopot](https://togithub.com/golopot)) - Fix [`static-property-placement`][] false positive when accessing static property inside method ([#2283][] [@dmason30](https://togithub.com/dmason30)) - Fix [`prop-type`][] detection for annotated props with default value ([#2298][] [@yannickcr](https://togithub.com/yannickcr)) ##### Changed - Add ESLint 6.0.0 as valid peerDependency ([@yannickcr](https://togithub.com/yannickcr)) - Improve [`no-render-return-value`][] performance ([#2259][] [@golopot](https://togithub.com/golopot)) - Change [`jsx-sort-props`][] to report errors only on the identifier ([#2312][] [@MrHen](https://togithub.com/MrHen)) - Change to warn only once if react version cannot be detected ([#2276][] [@ljharb](https://togithub.com/ljharb)) - Documentation improvements ([#2263][] [@dimitropoulos](https://togithub.com/dimitropoulos), [#2262][] [@ybiquitous](https://togithub.com/ybiquitous), [#2295][] [@battaglr](https://togithub.com/battaglr), [#2302][] [@Jason-Cooke](https://togithub.com/Jason-Cooke), [#2303][] [@golopot](https://togithub.com/golopot)) - Code refactoring ([#2265][] [#2267][] [#2286][] [#2294][] [@golopot](https://togithub.com/golopot), [@ljharb](https://togithub.com/ljharb)) - Tests improvements ([#2304][] [#1047][] [@golopot](https://togithub.com/golopot), [@yannickcr](https://togithub.com/yannickcr)) [7.14.0]: https://togithub.com/yannickcr/eslint-plugin-react/compare/v7.13.0...v7.14.0 [#296]: https://togithub.com/yannickcr/eslint-plugin-react/issues/296 [#442]: https://togithub.com/yannickcr/eslint-plugin-react/issues/442 [#833]: https://togithub.com/yannickcr/eslint-plugin-react/issues/833 [#1002]: https://togithub.com/yannickcr/eslint-plugin-react/issues/1002 [#1047]: https://togithub.com/yannickcr/eslint-plugin-react/issues/1047 [#1116]: https://togithub.com/yannickcr/eslint-plugin-react/issues/1116 [#1257]: https://togithub.com/yannickcr/eslint-plugin-react/issues/1257 [#1422]: https://togithub.com/yannickcr/eslint-plugin-react/issues/1422 [#1493]: https://togithub.com/yannickcr/eslint-plugin-react/issues/1493 [#1595]: https://togithub.com/yannickcr/eslint-plugin-react/issues/1595 [#1749]: https://togithub.com/yannickcr/eslint-plugin-react/issues/1749 [#1764]: https://togithub.com/yannickcr/eslint-plugin-react/issues/1764 [#2259]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2259 [#2262]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2262 [#2263]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2263 [#2265]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2265 [#2267]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2267 [#2274]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2274 [#2276]: https://togithub.com/yannickcr/eslint-plugin-react/issues/2276 [#2283]: https://togithub.com/yannickcr/eslint-plugin-react/issues/2283 [#2286]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2286 [#2294]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2294 [#2295]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2295 [#2298]: https://togithub.com/yannickcr/eslint-plugin-react/issues/2298 [#2302]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2302 [#2303]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2303 [#2304]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2304 [#2312]: https://togithub.com/yannickcr/eslint-plugin-react/issues/2312 [#2316]: https://togithub.com/yannickcr/eslint-plugin-react/pull/2316 ### [`v7.13.0`](https://togithub.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#7130---2019-05-03) [Compare Source](https://togithub.com/yannickcr/eslint-plugin-react/compare/v7.12.4...v7.13.0) ##### Added - Make [`jsx-sort-props`][] fully fixable ([#2250][], [@guliashvili](https://togithub.com/guliashvili)) - [`boolean-prop-naming`][]: add `validateNested` option to validate shape prop names ([#2234][], [@pawelnvk](https://togithub.com/pawelnvk)) - add [`static-property-placement`][] rule ([#2193][], [@dmason30](https://togithub.com/dmason30)) - add "detect" for flow version ([#2233][], [@jedwards1211](https://togithub.com/jedwards1211)) - [`jsx-indent`][]: Add `indentLogicalExpressions` option ([#2227][], [@mdnsk](https://togithub.com/mdnsk)) - add [`jsx-props-no-spreading`][] ([#2191][], [@ashbhir](https://togithub.com/ashbhir)) - [`no-string-refs`][]: Added `noTemplateLiteral` option ([#2167][], [@jenil94](https://togithub.com/jenil94)) - add `linkComponents` setting ([#2116][], [@gbakernet](https://togithub.com/gbakernet)) - [`jsx-no-target-blank`][]: add support for `linkComponents` setting ([#2116][], [@gbakernet](https://togithub.com/gbakernet)) - Add [`state-in-constructor`][] rule ([#1945][], [@lukyth](https://togithub.com/lukyth)) - Add [`prefer-read-only-props`][] rule ([#2110][], [@golopot](https://togithub.com/golopot)) - [`no-unescaped-entities`][]: more friendly error message; add config to adjust ([#2016][], [@stevemao](https://togithub.com/stevemao)) ##### Fixed - [`jsx-props-no-multi-spaces`][]: support generic components (ts) ([#2256][], [@mateuszsokola](https://togithub.com/mateuszsokola)) - [`prop-types`][]: fix case with destructuring and default param ([#2246][], [@golopot](https://togithub.com/golopot)) - [`prefer-stateless-function`][]: Ignoring pure components without props and context usage ([#2238][], [@pawelnvk](https://togithub.com/pawelnvk)) - `propTypes`: resolveSuperParameterPropsType: add null check ([#2232][], [@jedwards1211](https://togithub.com/jedwards1211)) - [`self-closing-comp`][]: stop reporting single-line spaces ([#2210][], [@golopot](https://togithub.com/golopot)) - [`require-render-return`][]: more accurate report location ([#2229][], [@golopot](https://togithub.com/golopot)) - [`sort-prop-types`][]: Fix sorting props with numeric keys ([#2230][], [@pawelnvk](https://togithub.com/pawelnvk)) - [`display-name`][]: fix false negative around nested functions ([#2225][], [@dwelle](https://togithub.com/dwelle)) - [`no-unknown-property`][]: fix case like `Renovate configuration
:date: Schedule: "on Sunday" (UTC).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
Newsflash: Renovate has joined WhiteSource, and is now free for all use. Learn more or view updated terms and privacy policies.