chore(deps): update dependency eslint-plugin-react to v7.6.1 #427
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request updates dependency eslint-plugin-react from
v7.5.1tov7.6.1Note: This PR was created on a configured schedule ("before 3am on Monday") and will not receive updates outside those times.
Release Notes
v7.6.0Added
forbid-dom-propsrule ([#1562][] @davazp)jsx-child-element-spacingrule (feat(request-builder): add orderNumber support on order service #1515 @pfhayes)no-this-in-sfcrule (fix(deps): update dependency flat to v5 #1435 @jomasti)jsx-sort-default-propsrule (212 password flow #281 @b0gok)messageoption toboolean-prop-naming(#1588 @louisscruz)beforeClosingoption tojsx-tag-spacing(chore: use yarn workspaces #1396 @cjskillingstad)instance-methodsandinstance-variablestosort-comp(chore(deps): update dependency lerna to v2.11.0 #599 @RDGthree)propWrapperFunctionssupport forboolean-prop-naming(#1478 @jomasti)React.addons.TestUtilsinno-deprecated(fix(deps): update dependency csv-parser to v3 - autoclosed #1644 @nirnaor)Fixed
no-access-state-in-setstate(chore(deps): pin dependency organize-imports-cli to 0.7.0 #1559 @jomasti, #1611 @pfhayes)require-optimizationwhen encountering arrays with empty items as values in object (#1621 @kamataryo)no-unused-prop-typeswhen passing an empty function as a PropType (fix(ts-sdk): add return type for shipping method #1542 fix(sdk-auth): to encode request body #1581 @kevinzwhuang)no-typoswhen usingPropType.shapewithout arguments ([typescript-sdk] Empty arrays in queryArgs append extra&to the URI. #1471 @mrichmond)setStores#1468 @justinanastos)jsx-tag-spacing(#1650 @flyerhzm)no-unused-stateto detect usage ofthis.stateas an object (chore: update emails commercetools.de -> commercetools.com #1572)no-access-state-in-setstateto detect when thestatevariable is destructured fromthis.state(Discount Code Generator yields no error message even if CSV file contains duplicate values #1597 @jaaberg)jsx-no-literalsto correctly find string literals part of BinaryExpressions (feat(sync-actions): adding set key action for cart-discounts #1511 @jaaberg)no-typosfalse positive on custom propTypes with isRequired (chore(deps): update dependency @babel/plugin-proposal-object-rest-spread to v7.11.0 - autoclosed #1607 @lfades)prop-typesto check fornextPropsincomponentWillReceiveProps(gitbook: publishing docs failing on v12.18.3 #1636 @xjmdoo)no-unknown-propertyto not pascal-casingcrossoriginattribute and only allow it on script/img/video (fix: bump node to 12.19.1 to mitigate security issue #1642 @ljharb)Changed
jsx-wrap-multilinesauto fix (#1576 @sharmilajesupaul)defaultConfigfromsort-comprule for programmatic use (#1578 @Andarist)v7.6.1Fixed
prop-typeswith recursive type annotations (#1653 @jetpacmonkey)no-unknown-propertyto properly recognizecrossOrigininstead ofcrossorigin, and allow it onlinktags. (#1659 @jzDev)no-access-state-in-setstateto handle object spread (#1657 @ljharb)Commits
yannickcr/eslint-plugin-react
v7.6.0
16e57ffFix crash in prop-types test withUnionTypeAnnotation077e017Create failing no-unused-prop-types test with union flowtypesdd10851Fix crash in no-unused-prop-types test withUnionTypeAnnotationdf17cd4Merge pull request #1563 from justinanastos/fix/prop-types-union-flowtype-14682c2d831Add related rules link to both forbid-dom-props and forbid-component-props28654e2Add more invalid tests cases for forbid-dom-propsae55fdfFix typo in changelog7aaec03Merge pull request #1566 from lukeapage/patch-1adf5d81[Fix]jsx-curly-spacing:115e4b9[Refactor] Move findVariableByName to variable util78ec577test(no-unused-prop-types): Addimporttest withUnion6323015test(prop-types): Addimporttest withUnione5e4536Merge pull request #1570 from justinanastos/fix/prop-types-union-flowtype-1468e632628[Docs] improve readme268a704Refine schema for forbid-dom-props optionsc7dd755Merge pull request #1470 from RDGthree/masteraf6ccb0Fix no-unused-state to detect usage of this.state as an object (fixes #1572)c072c89Merge pull request #1562 from davazp/add-forbid-dom-props-rule6a41c60Potential autofix improvement for jsx-wrap-mulitlinesb801624Merge pull request #1576 from sharmilajesupaul/shar--remove-newline-before-paren06e1667Merge pull request #1519 from pfhayes/spacescfd1c34Merge pull request #1509 from jomasti/issue-1435f044bc2Export defaultConfig from sort-comp rule for programmatic use6f444a7Merge pull request #1578 from Andarist/sort-comp/export-default-configeefce85[Dev Deps] updatebabel-eslint,eslint58159c0[Deps] updatejsx-ast-utils,doctrinef6e4c89Merge pull request #1478 from jomasti/issue-14529a7423eAdd custom message73f135aAdd more test cases for no-access-state-in-setstate4950623Make no-access-state-in-setstate find cases where state is destructured from this37902d4Use ESLint string templatingd331af6Add empty params check for unused prop types rule to fix empty proptype functions from causing crashes292ebedMerge pull request #1588 from louisscruz/bool-props-messagea908eb3Merge pull request #1598 from jaaberg/master6015af2Add test cases for other forms of empty functions in no-unused-prop-types and remove parser option3194de2Exclude references to this.state in setState callbackaf6cb31Fix typo in commenteb7e152Handle nodes without init4cf6752Add failing tests for jsx-no-literals with literal as BinaryExpression2ae8d5eFind usages of literals as a part of BinaryExpressions in jsx-no-literalsf27ebc2jsx-no-literals Add tests combining literals and strings28581dfjsx-no-literals Find all usages of literals combined with strings9b8ea5eMerge pull request #1600 from kevinzwhuang/fix-unused-prop-typesbb34372Add testf40b7b8Merge pull request #1611 from pfhayes/node.init22c9237Add null avoidance5f1ec80Merge pull request #1621 from kamataryo/master686fa76Docs: Documentforbidforno-unescaped-entitiesrule (#1263)a7bc91bMerge pull request #1624 from alexilyaev/patch-2d9c36bf[Tests]no-typos: add regression testc23d395Merge pull request #1504 from mrichmond/bugfix/no-typos-TypeErrorbf544dcAdd URL to rule documentation to the metadata07345b4Merge pull request #1635 from Arcanemagus/rules-docs-url73c86c9Add beforeClosing option to jsx-tag-spacing9cc118cAdd unit tests6fdefcfAdd jsx-sort-default-props rule5770c72Surround sort-default-props keywords with backticks and fix typo4f00455Add SFC examples in the documentation and testsba394d2Fix wording in docsf5cff2aFix typof103712Make default value allow2043520Add multiline test cases0e983deMerge pull request #1641 from cjskillingstad/feat/jsx-tag-spacing_before_closing2e3a6a4[Fix] crossOrigin is wrong; and crossorigin is only valid on script/img/video92add21Adding a warning for React.addons.TestUtils.8237551Merge pull request #1645 from nirnaor/master558576cAdd more tests with spread, add examplese24b53fAdd tests and examples with multiple spreadsc2c7a2aMerge pull request #1616 from jaaberg/jsx-no-literals-binary36beb6dMerge pull request #1483 from b0gok/jsx-sort-default-propsd3840a5add missing meta to jsx-tag-spacingf9cc10dprop-types doesn't check nextProps of componentWillReceiveProps8360ffasupport isRequired for custom props and call expressions1d12044Merge pull request #1650 from xinminlabs/add-missing-meta-to-jsx-tag-spacing942a92cmerged one of the previous tests and added 2 new tests for the default parser20dff22Adds more checks to MethodDefinition case and adds new test case for default parserf4cab9aMerge pull request #1652 from lfades/fix/no-typosc558451Merge pull request #1651 from xjmdoo/master692cdc8Merge pull request #1643 from ljharb/fix_crossorigin614d3bdSupport recursive type annotations, fixes #913e4f7e30Mark all recursive proptypes as acceptable with {}, not true7b742d0Update CHANGELOG and bump version7443a37[New]forbid-foreign-prop-types: AddallowInPropTypesoptionv7.6.1
509f2cbUse typeof === 'undefined' instead of void 0f947536Fixed crossorigin naming convention to match React's supported HTML attributes.a19b2adRemoved unnecessary mapping and tests handled by React's existing warnings.d64a16bAdded the missing tagName, link, to support the crossOrigin property.843d71aMerge pull request #1653 from jetpacmonkey/master1d13218Restore tests and crossorigin attribute mapd060041Merge pull request #1659 from jzDev/jzDev/flip-crossorigin-rulee56376e[Fix]no-access-state-in-setstate: handle object spreadf7441bbUpdate CHANGELOG and bump versionThis PR has been generated by Renovate Bot.