Update dependency eslint-plugin-react to v7.6.1 #197
Merged
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.4.0
tov7.6.1
Release Notes
v7.5.0
Added
jsx-one-expression-per-line
rule ([#1497][] @TSMMark)destructuring-assignment
rule (#1462 @DianaSuvorova)no-access-state-in-setstate
rule (#1374 @jaaberg)button-has-type
rule (#1525 @Hypnosphi)React.DOM
factories inno-deprecated
(#1530 @backjo)sortShapeProp
option tosort-prop-types
(#1476 @jomasti)parens-new-line
option tojsx-wrap-multilines
(#1475 @jomasti)checkContextTypes
andcheckChildContextTypes
options toforbid-prop-types
(#1533 @jomasti)forbidDefaultForRequired
option torequire-default-props
(#1524 @jomasti)jsx-wrap-multilines
(#1384 @evgeny-petukhov)Fixed
jsx-curly-brace-presence
auto fix by bailing out when some chars exist (#1479 #1449 @jackyho112)boolean-prop-naming
crash with Object spread (#1485 @track0x1)no-unused-state
to correctly handle arrow function class method (#1363 @jackyho112)typescript-eslint-parser
(#1496 @timothykang)jsx-no-bind
to only warn for props and account for variable declaration (#1444 #1395 #1417 @jackyho112)no-props-unused-props
to handle props usage in custom prop validators (#1518 @petersendidit)prefer-stateless-function
to account forcontextTypes
anddefaultProps
(#1521 @jomasti)jsx-no-comment-textnodes
to not warn when using two slashes via html entities at the beginning of a literal (#1517 @jomasti)default-props-match-prop-types
crash (#1499 @jomasti)no-unused-prop-types
to handle props used in thesetState
update callback (#1507 @petersendidit)jsx-indent
(#1246 @jseminck)Changed
v7.5.1
Fixed
jsx-no-bind
crash (#1543 @jomasti)no-unused-prop-types
crash (#1542 @jomasti)Changed
v7.6.0
Added
forbid-dom-props
rule (#1562 @davazp)jsx-child-element-spacing
rule (#1515 @pfhayes)no-this-in-sfc
rule (#1435 @jomasti)jsx-sort-default-props
rule (Include the crash rate from mission control #281 @b0gok)message
option toboolean-prop-naming
(#1588 @louisscruz)beforeClosing
option tojsx-tag-spacing
(#1396 @cjskillingstad)instance-methods
andinstance-variables
tosort-comp
(#599 @RDGthree)propWrapperFunctions
support forboolean-prop-naming
(#1478 @jomasti)React.addons.TestUtils
inno-deprecated
(#1644 @nirnaor)Fixed
no-access-state-in-setstate
(#1559 @jomasti, #1611 @pfhayes)require-optimization
when encountering arrays with empty items as values in object (#1621 @kamataryo)no-unused-prop-types
when passing an empty function as a PropType (#1542 #1581 @kevinzwhuang)no-typos
when usingPropType.shape
without arguments (#1471 @mrichmond)jsx-tag-spacing
(#1650 @flyerhzm)no-unused-state
to detect usage ofthis.state
as an object (#1572)no-access-state-in-setstate
to detect when thestate
variable is destructured fromthis.state
(#1597 @jaaberg)jsx-no-literals
to correctly find string literals part of BinaryExpressions (#1511 @jaaberg)no-typos
false positive on custom propTypes with isRequired (#1607 @lfades)prop-types
to check fornextProps
incomponentWillReceiveProps
(#1636 @xjmdoo)no-unknown-property
to not pascal-casingcrossorigin
attribute and only allow it on script/img/video (#1642 @ljharb)Changed
jsx-wrap-multilines
auto fix (#1576 @sharmilajesupaul)defaultConfig
fromsort-comp
rule for programmatic use (#1578 @Andarist)v7.6.1
Fixed
prop-types
with recursive type annotations (#1653 @jetpacmonkey)no-unknown-property
to properly recognizecrossOrigin
instead ofcrossorigin
, and allow it onlink
tags. (#1659 @jzDev)no-access-state-in-setstate
to handle object spread (#1657 @ljharb)Commits
yannickcr/eslint-plugin-react
v7.6.0
16e57ff
Fix crash in prop-types test withUnionTypeAnnotation
077e017
Create failing no-unused-prop-types test with union flowtypesdd10851
Fix crash in no-unused-prop-types test withUnionTypeAnnotation
df17cd4
Merge pull request #1563 from justinanastos/fix/prop-types-union-flowtype-14682c2d831
Add related rules link to both forbid-dom-props and forbid-component-props28654e2
Add more invalid tests cases for forbid-dom-propsae55fdf
Fix typo in changelog7aaec03
Merge pull request #1566 from lukeapage/patch-1adf5d81
[Fix]jsx-curly-spacing
:115e4b9
[Refactor] Move findVariableByName to variable util78ec577
test(no-unused-prop-types): Addimport
test withUnion
6323015
test(prop-types): Addimport
test withUnion
e5e4536
Merge pull request #1570 from justinanastos/fix/prop-types-union-flowtype-1468e632628
[Docs] improve readme268a704
Refine schema for forbid-dom-props optionsc7dd755
Merge pull request #1470 from RDGthree/masteraf6ccb0
Fix no-unused-state to detect usage of this.state as an object (fixes #1572)c072c89
Merge pull request #1562 from davazp/add-forbid-dom-props-rule6a41c60
Potential autofix improvement for jsx-wrap-mulitlinesb801624
Merge pull request #1576 from sharmilajesupaul/shar--remove-newline-before-paren06e1667
Merge pull request #1519 from pfhayes/spacescfd1c34
Merge pull request #1509 from jomasti/issue-1435f044bc2
Export defaultConfig from sort-comp rule for programmatic use6f444a7
Merge pull request #1578 from Andarist/sort-comp/export-default-configeefce85
[Dev Deps] updatebabel-eslint
,eslint
58159c0
[Deps] updatejsx-ast-utils
,doctrine
f6e4c89
Merge pull request #1478 from jomasti/issue-14529a7423e
Add custom message73f135a
Add more test cases for no-access-state-in-setstate4950623
Make no-access-state-in-setstate find cases where state is destructured from this37902d4
Use ESLint string templatingd331af6
Add empty params check for unused prop types rule to fix empty proptype functions from causing crashes292ebed
Merge pull request #1588 from louisscruz/bool-props-messagea908eb3
Merge pull request #1598 from jaaberg/master6015af2
Add test cases for other forms of empty functions in no-unused-prop-types and remove parser option3194de2
Exclude references to this.state in setState callbackaf6cb31
Fix typo in commenteb7e152
Handle nodes without init4cf6752
Add failing tests for jsx-no-literals with literal as BinaryExpression2ae8d5e
Find usages of literals as a part of BinaryExpressions in jsx-no-literalsf27ebc2
jsx-no-literals Add tests combining literals and strings28581df
jsx-no-literals Find all usages of literals combined with strings9b8ea5e
Merge pull request #1600 from kevinzwhuang/fix-unused-prop-typesbb34372
Add testf40b7b8
Merge pull request #1611 from pfhayes/node.init22c9237
Add null avoidance5f1ec80
Merge pull request #1621 from kamataryo/master686fa76
Docs: Documentforbid
forno-unescaped-entities
rule (#1263)a7bc91b
Merge pull request #1624 from alexilyaev/patch-2d9c36bf
[Tests]no-typos
: add regression testc23d395
Merge pull request #1504 from mrichmond/bugfix/no-typos-TypeErrorbf544dc
Add URL to rule documentation to the metadata07345b4
Merge pull request #1635 from Arcanemagus/rules-docs-url73c86c9
Add beforeClosing option to jsx-tag-spacing9cc118c
Add unit tests6fdefcf
Add jsx-sort-default-props rule5770c72
Surround sort-default-props keywords with backticks and fix typo4f00455
Add SFC examples in the documentation and testsba394d2
Fix wording in docsf5cff2a
Fix typof103712
Make default value allow2043520
Add multiline test cases0e983de
Merge pull request #1641 from cjskillingstad/feat/jsx-tag-spacing_before_closing2e3a6a4
[Fix] crossOrigin is wrong; and crossorigin is only valid on script/img/video92add21
Adding a warning for React.addons.TestUtils.8237551
Merge pull request #1645 from nirnaor/master558576c
Add more tests with spread, add examplese24b53f
Add tests and examples with multiple spreadsc2c7a2a
Merge pull request #1616 from jaaberg/jsx-no-literals-binary36beb6d
Merge pull request #1483 from b0gok/jsx-sort-default-propsd3840a5
add missing meta to jsx-tag-spacingf9cc10d
prop-types doesn't check nextProps of componentWillReceiveProps8360ffa
support isRequired for custom props and call expressions1d12044
Merge pull request #1650 from xinminlabs/add-missing-meta-to-jsx-tag-spacing942a92c
merged one of the previous tests and added 2 new tests for the default parser20dff22
Adds more checks to MethodDefinition case and adds new test case for default parserf4cab9a
Merge pull request #1652 from lfades/fix/no-typosc558451
Merge pull request #1651 from xjmdoo/master692cdc8
Merge pull request #1643 from ljharb/fix_crossorigin614d3bd
Support recursive type annotations, fixes #913e4f7e30
Mark all recursive proptypes as acceptable with {}, not true7b742d0
Update CHANGELOG and bump version7443a37
[New]forbid-foreign-prop-types
: AddallowInPropTypes
optionv7.6.1
509f2cb
Use typeof === 'undefined' instead of void 0f947536
Fixed crossorigin naming convention to match React's supported HTML attributes.a19b2ad
Removed unnecessary mapping and tests handled by React's existing warnings.d64a16b
Added the missing tagName, link, to support the crossOrigin property.843d71a
Merge pull request #1653 from jetpacmonkey/master1d13218
Restore tests and crossorigin attribute mapd060041
Merge pull request #1659 from jzDev/jzDev/flip-crossorigin-rulee56376e
[Fix]no-access-state-in-setstate
: handle object spreadf7441bb
Update CHANGELOG and bump versionThis PR has been generated by Renovate Bot.