Skip to content

chore: update dependency eslint-plugin-react to v7 #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brokenmass
Copy link
Owner

This Pull Request updates dependency eslint-plugin-react from v6.10.3 to v7.8.2

Release Notes

v7.8.2

Compare Source

Fixed
  • Fix crash in [boolean-prop-naming][] when encountering a required shape prop type (#​1791 @​pcorpet)

v7.8.1

Compare Source

Fixed
  • Fix crash in [no-deprecated][] when encountering a class constructor (#​1785 @​taddei)

v7.8.0

Compare Source

Added
  • Add support for fragments to [react-in-jsx-scope][] (#​1758)
  • Add support for Flow generic PropType to [require-default-props][] (#​1724 @​Miziak)
  • Add component whitelist option to [forbid-component-props][] (#​1732 @​ThiefMaster)
  • Add support for React 16.3 lifecycle methods to [no-unused-prop-types][] (#​1681 @​bvaughn)
  • Add support for React 16.3 lifecycle methods to [sort-comp][] (#​1767 @​joe-denea)
  • Add support for React 16.3 lifecycle methods to [no-typos][]
  • Add support for prevState and nextState to [no-unused-state][] (#​1759)
  • Add warnings for componentWillMount, componentWillReceiveProps and componentWillUpdate lifecycle methods in [no-deprecated][] (#​1750 @​sergei-startsev)
Fixed
  • Fix [no-typos][] false positive on custom PropType classes (#​1389 @​brettdh)
  • Fix [boolean-prop-naming][] to handle required props (#​1389 @​louisscruz)
  • Fix [jsx-curly-brace-presence][] to allow whitespace JSX container (#​1717 @​sharmilajesupaul)
  • Fix [jsx-no-bind][] to handle ternary conditions (#​1722 @​gwenaellarmet)
Changed
  • Documentation improvements (#​1699 @​ronanmathew, #​1743 @​ybiquitous, #​1753 @​awthwathje, #​1783 @​chentsulin, #​1703 @​ferhatelmas)

v7.7.0

Compare Source

Added
  • [forbid-foreign-prop-types][]: add allowInPropTypes option (#​1655 @​iansu)
  • Add [jsx-max-depth][] rule (#​1260 @​chriswong)
Fixed
  • [no-access-state-in-setstate][]: Exclude references to this.state in setState callback (#​1610 @​pfhayes)
  • [no-danger-with-children][]: prevent infinite loop (#​1571 @​ljharb)
  • [sort-prop-types][]: Fix sortShapeProp when shape is not an object literal (#​1669 @​justinanastos)
  • [jsx-child-element-spacing][]: fix error location (#​1666 @​pfhayes)
  • [no-unused-prop-types][]: fix for createClass (#​1675 @​yuri-sakharov)
  • [prop-types][]: include nextProps checking in shouldComponentUpdate (#​1690 @​amerryma)
  • [jsx-curly-spacing][]: refactor to fix start and end-braces in a single pass (#​1414 @​s-h-a-d-o-w)
Changed
  • [jsx-child-element-spacing][]: add missing docs ([#​1665][] @​pfhayes); fix docs (#​1670 @​SammyM)

v7.6.1

Compare Source

Fixed
  • Flow: fix crash in [prop-types][] with recursive type annotations (#​1653 @​jetpacmonkey)
  • Fix [no-unknown-property][] to properly recognize crossOrigin instead of crossorigin, and allow it on link tags. (#​1659 @​jzDev)
  • Fix [no-access-state-in-setstate][] to handle object spread (#​1657 @​ljharb)

v7.6.0

Compare Source

Added
  • Add [forbid-dom-props][] rule (#​1562 @​davazp)
  • Add [jsx-child-element-spacing][] rule (#​1515 @​pfhayes)
  • Add [no-this-in-sfc][] rule (#​1435 @​jomasti)
  • Add [jsx-sort-default-props][] rule (#​281 @​b0gok)
  • Add message option to [boolean-prop-naming][] (#​1588 @​louisscruz)
  • Add beforeClosing option to [jsx-tag-spacing][] (#​1396 @​cjskillingstad)
  • Add instance-methods and instance-variables to [sort-comp][] (#​599 @​RDGthree)
  • Add propWrapperFunctions support for [boolean-prop-naming][] (#​1478 @​jomasti)
  • Add warning for React.addons.TestUtils in [no-deprecated][] (#​1644 @​nirnaor)
  • Add URL to rule documentation to the rules metadata (#​1635 @​Arcanemagus)
Fixed
  • Fix crashes in [no-access-state-in-setstate][] (#​1559 @​jomasti, #​1611 @​pfhayes)
  • Fix crash in [require-optimization][] when encountering arrays with empty items as values in object (#​1621 @​kamataryo)
  • Fix crash in [no-unused-prop-types][] when passing an empty function as a PropType (#​1542 #​1581 @​kevinzwhuang)
  • Fix crash in [no-typos][] when using PropType.shape without arguments (#​1471 @​mrichmond)
  • Fix crash when using Unions in flow propTypes (#​1468 @​justinanastos)
  • Fix missing meta in [jsx-tag-spacing][] (#​1650 @​flyerhzm)
  • Fix [no-unused-state][] to detect usage of this.state as an object (#​1572)
  • Fix [no-access-state-in-setstate][] to detect when the state variable is destructured from this.state (#​1597 @​jaaberg)
  • Fix [jsx-no-literals][] to correctly find string literals part of BinaryExpressions (#​1511 @​jaaberg)
  • Fix [no-typos][] false positive on custom propTypes with isRequired (#​1607 @​lfades)
  • Fix [prop-types][] to check for nextProps in componentWillReceiveProps (#​1636 @​xjmdoo)
  • Fix [no-unknown-property][] to not pascal-casing crossorigin attribute and only allow it on script/img/video (#​1642 @​ljharb)
Changed
  • Improve [jsx-wrap-multilines][] auto fix (#​1576 @​sharmilajesupaul)
  • Export defaultConfig from [sort-comp][] rule for programmatic use (#​1578 @​Andarist)
  • Documentation improvements (#​1552 @​TSMMark, #​1566 @​lukeapage, #​1624 @​alexilyaev, @​ljharb)
  • Update dependencies (@​ljharb)

v7.5.1

Compare Source

Fixed
  • Fix [jsx-no-bind][] crash (#​1543 @​jomasti)
  • Fix [no-unused-prop-types][] crash (#​1542 @​jomasti)
Changed
  • Documentation improvements (#​1546 @​jseminck)

v7.5.0

Compare Source

Added
  • Add [jsx-one-expression-per-line][] rule (#​1497 @​TSMMark)
  • Add [destructuring-assignment][] rule (#​1462 @​DianaSuvorova)
  • Add [no-access-state-in-setstate][] rule (#​1374 @​jaaberg)
  • Add [button-has-type][] rule (#​1525 @​Hypnosphi)
  • Add warnings for React.DOM factories in [no-deprecated][] (#​1530 @​backjo)
  • Add sortShapeProp option to [sort-prop-types][] (#​1476 @​jomasti)
  • Add parens-new-line option to [jsx-wrap-multilines][] (#​1475 @​jomasti)
  • Add checkContextTypes and checkChildContextTypes options to [forbid-prop-types][] (#​1533 @​jomasti)
  • Add forbidDefaultForRequired option to [require-default-props][] (#​1524 @​jomasti)
  • Add new nodes support to [jsx-wrap-multilines][] (#​1384 @​evgeny-petukhov)
Fixed
  • Fix [jsx-curly-brace-presence][] auto fix by bailing out when some chars exist (#​1479 #​1449 @​jackyho112)
  • Fix [boolean-prop-naming][] crash with Object spread (#​1485 @​track0x1)
  • Fix [no-unused-state][] to correctly handle arrow function class method (#​1363 @​jackyho112)
  • Fix incompatibility with typescript-eslint-parser (#​1496 @​timothykang)
  • Fix [jsx-no-bind][] to only warn for props and account for variable declaration (#​1444 #​1395 #​1417 @​jackyho112)
  • Fix [no-unused-prop-types][] to handle props usage in custom prop validators (#​1518 @​petersendidit)
  • Fix [prefer-stateless-function][] to account for contextTypes and defaultProps (#​1521 @​jomasti)
  • Fix [jsx-no-comment-textnodes][] to not warn when using two slashes via html entities at the beginning of a literal (#​1517 @​jomasti)
  • Fix [default-props-match-prop-types][] crash (#​1499 @​jomasti)
  • Fix [no-unused-prop-types][] to handle props used in the setState update callback (#​1507 @​petersendidit)
  • Fix alignment bug in [jsx-indent][] (#​1246 @​jseminck)
Changed
  • Documentation improvements (#​1438 @​jseminck, #​1464 @​AlaaAttya, #​1494 @​piperchester, #​1467 @​felicio, #​1512 @​adam-golab)
  • Code refactoring (#​1423 #​1398 @​jseminck, #​1500 #​1514 @​Aladdin-ADD, #​1502 @​SimenB, #​1508 #​1526 @​jomasti, @​ljharb)
  • Update dependencies (#​1450 @​leebyron, @​ljharb)

v7.4.0

Compare Source

Added
  • Add Flow 0.53 support (#​1376 @​jseminck)
  • Add [jsx-curly-brace-presence][] rule (#​1310 @​jackyho112)
  • Add support for Flow IntersectionTypeAnnotation to [prop-types][] and [no-unused-prop-types][] (#​1364 #​1323 @​jseminck)
  • Add support for Flow TypedArgument to [no-unused-prop-types][] (#​1412 @​jseminck)
  • Add support for Flow ClassExpressions to [prop-types][] (#​1400 @​jseminck)
  • Add support for Flow read-only props to [no-unused-prop-types][] (#​1388 @​jseminck)
  • Add more tests for [prop-types][] and [no-unused-prop-types][] (#​1381 @​DianaSuvorova)
  • Add support for increment and decrement operations to [no-direct-mutation-state][] (#​1386 @​zpao)
Fixed
  • Fix [no-unused-state][] to ignore computed property keys (#​1361 @​jackyho112)
  • Fix [no-typos][] crash (#​1406 @​jseminck)
  • Fix [boolean-prop-naming][] crash (#​1409 @​EvHaus)
  • Fix [prop-types][] and [no-unused-prop-types][] crash with IntersectionTypeAnnotation (#​1413 @​jseminck)
Changed
  • Documentation improvements (#​1392 @​xcatliu, #​1403 @​piperchester, #​1432 @​jneuendorf)

v7.3.0

Compare Source

Added
  • Add checks for propTypes, contextTypes and childContextTypes to [no-typos][] (#​213 @​DianaSuvorova)
Fixed
  • Fix [boolean-prop-naming][] crash (#​1369 @​EvHaus)
  • Fix [no-typos][] crash (#​1353 @​jseminck)
  • Fix [require-default-props][] stopping when it finds a component without props (#​1380 @​brgibson)
  • Fix [no-direct-mutation-state][] detection with nested components (#​1382)
Changed
  • Documentation improvements (#​1383 @​mjomble)

v7.2.1

Compare Source

Fixed
  • Fix [forbid-prop-types][] crash on identifiers (#​1352 @​ljharb)
  • Fix [boolean-prop-naming][] crash with propTypes wrapper (#​1354 @​dustinsoftware)
  • Fix [prop-types][] false positive with local variable props (#​1288 @​DianaSuvorova)
  • Fix wrapped propTypes detection (#​1366)
Changed
  • Documentation improvements (#​1123 @​penx)

v7.2.0

Compare Source

Added
  • Add [no-unused-state][] rule (#​1103 @​wbinnssmith)
  • Add [boolean-prop-naming][] rule (#​1264 @​EvHaus)
  • Add [no-typos][] rule (#​1189 @​jseminck, #​1294 @​haridusenadeera)
  • Add auto fix for [jsx-sort-props][] (#​1273 @​Overload119)
  • Add getters and setters groups to [sort-comp][] (#​100 @​RDGthree)
  • Add noStrings option to [jsx-no-literals][] (#​1202 @​deecewan)
  • Add inverse option for always/never to [jsx-boolean-value][] (#​1249 @​ljharb)
Fixed
  • Fix [no-direct-mutation-state][] to disallow this.state mutation in constructor (#​832 @​burabure)
  • Fix [jsx-no-target-blank][] crash on empty rel attribute (#​1269 @​dustinsoftware)
  • Fix [sort-comp][] component detection with ClassExpression (#​1076 @​webOS101)
  • Fix [no-unused-prop-types][] detection with async class properties and methods (#​1053 @​benstepp)
  • Fix [void-dom-elements-no-children][] crash (#​1226 @​kokobeware)
  • Fix [no-danger-with-children][] to ignore line breaks (#​1262)
  • Fix [no-danger-with-children][] crash with undefined (#​1287)
  • Fix [jsx-no-target-blank][] crash (#​1296 @​jseminck)
  • Fix [no-unused-prop-types][] to no longer ignore components with no used props (#​1303 @​DianaSuvorova)
  • Fix [jsx-no-duplicate-props][] crash (#​969 @​marcelmokos)
  • Fix [jsx-no-literals][] false positives (#​1301 @​davidyorr)
  • Fix [no-find-dom-node][] detection with named imports (#​785 @​Hypnosphi)
  • Fix proTypes-related rules detection with wrapped propTypes (#​1266 @​dustinsoftware)
  • Fix [no-unused-prop-types][] detection with propTypes wrapped in a function (#​1253 @​dustinsoftware)
  • Fix [no-unused-prop-types][] detection with destructured use of properties (#​816 @​DianaSuvorova)
  • Fix [no-unused-prop-types][] detection with inline functions (#​1309 @​DianaSuvorova)
  • Fix [no-unused-prop-types][] skipShapeProps option with Flow annotations (#​1335 @​DianaSuvorova)
  • Fix [jsx-curly-spacing][] schema incompatibility with ESLint 4.2.0 (#​1290 @​jseminck)
Changed
  • Documentation improvements (#​1261 @​mminer, #​1005 @​yooungt13, #​1289 @​konekoya, #​1308 @​xcatliu, #​1306 @​egberts, #​1329 #​1344 @​DianaSuvorova)
  • ES6-ify codebase (#​1274 #​1277 #​1281 @​dfilipidisz)
  • Code refactoring (@​ljharb)
  • Update Travis CI and AppVeyor CI configurations (@​lencioni)

v7.1.0

Compare Source

Added
  • Add [default-props-match-prop-types][] rule (#​1022 @​webOS101)
  • Add [no-redundant-should-component-update][] rule (#​985 @​jomasti)
  • Add [jsx-closing-tag-location][] rule (#​1206 @​rsolomon)
  • Add auto fix for [jsx-max-props-per-line][] (#​949 @​snowypowers)
  • Add support for lifecycle methods with nextProps/prevProps in [no-unused-prop-types][] (#​1213 @​jseminck)
  • Add Flow SuperTypeParameters support to [prop-types][] (#​1236 @​gpeal)
  • Add children option to [jsx-curly-spacing][] (#​857 @​fatfisz)
Fixed
  • Fix [prefer-stateless-function][] ignorePureComponents option when using class expressions (#​1122 @​dreid)
  • Fix [void-dom-elements-no-children][] crash (#​1195 @​oliviertassinari)
  • Fix [require-default-props][] quoted defaultProps detection (#​1201)
  • Fix [jsx-sort-props][] bug with ignoreCase and callbacksLast options set to true (#​1175 @​jseminck)
  • Fix [no-unused-prop-types][] false positive (#​1183 #​1135 @​jseminck)
  • Fix [jsx-no-target-blank][] to not issue errors for non-external URLs (#​1216 @​gfx)
  • Fix [prop-types][] quoted Flow types detection (#​1132 @​ethanjgoldberg)
  • Fix [no-array-index-key][] crash with key without value (#​1242 @​jseminck)
Changed
  • Set ESLint 4.0.0 as valid peerDependency
  • Dead code removal (#​1227 @​jseminck)
  • Update dependencies (@​ljharb)
  • Documentation improvements (#​1071 @​adnasa, #​1199 @​preco21, #​1222 @​alexilyaev, #​1231 @​vonovak, #​1239 @​webOS101, #​1241 @​102)

v7.0.1

Compare Source

Fixed
  • Fix [jsx-curly-spacing][] allowMultiline option being undefined in some cases (#​1179 @​fatfisz)
  • Fix [jsx-curly-spacing][] newline with object literals bug (#​1180 @​fatfisz)
  • Fix [prop-types][] to not mark class static function as valid propTypes definition (#​1174)
  • Fix [prop-types][] crash with Flow spread operator (#​1178)
  • Fix [void-dom-elements-no-children][] crash on faulty createElement detection (#​1101)
  • Fix [require-default-props][] error message for quoted props (#​1161)
Changed
  • Update dependencies
  • Documentation improvements (#​1173 @​luftywiranda13, #​1192 @​markus-willems)

v7.0.0

Compare Source

Added
  • Add [no-will-update-set-state][] rule (#​1139 @​ManThursday)
  • Add import and destructuring support to [no-deprecated][]
  • Add reservedFirst option to [jsx-sort-props][] (#​1134 @​MatthewHerbst)
Breaking
  • Update rules for React 15.5.0:
    • Add warnings for React.PropTypes and React.createClass in [no-deprecated][] (#​1148 @​Calyhre)
    • Update createClass component factory to createReactClass. This is used for React component detection, if you still using React.createClass use the shared settings to specify createClass as component factory
  • Drop Node.js < 4 support (#​1038 @​ljharb)
  • Add [no-danger-with-children][] rule to recommended rules (#​748 @​ljharb)
  • Add [no-string-refs][] rule to recommended rules (#​749 @​ljharb)
  • Add [jsx-key][] rule to recommended rules (#​750 @​ljharb)
  • Add [jsx-no-comment-textnodes][] rule to recommended rules (#​751 @​ljharb)
  • Add [jsx-no-target-blank][] rule to recommended rules (#​752 @​ljharb)
  • Add [no-unescaped-entities][] rule to recommended rules (#​841 @​ljharb)
  • Add [no-children-prop][] rule to recommended rules (#​842 @​ljharb)
  • Remove deprecated [wrap-multilines][] rule, use [jsx-wrap-multilines][] instead
  • Remove deprecated [no-comment-textnodes][] rule, use [jsx-no-comment-textnodes][] instead
  • Remove deprecated [require-extension][] rule, use the eslint-plugin-import extensions rule instead
  • Deprecate [jsx-space-before-closing][] rule, use the [jsx-tag-spacing][] rule instead. [jsx-space-before-closing][] still works but will trigger a warning (#​1070 @​afairb)
  • [jsx-first-prop-new-line][] default is now multiline-multiprop (#​802 @​kokarn)
  • [jsx-wrap-multilines][] now checks arrow functions without block body. It can be deactivated in rule options (#​790 @​ColCh)
  • [jsx-no-undef][] will not check the global scope by default. You can force it with the allowGlobals option (#​1013 @​jomasti)
Fixed
  • Fix [no-unused-prop-types][] false positive with nextProps (#​1079 @​Kerumen)
  • Fix [prefer-stateless-function][] to not warn on classes with decorators (#​1034 @​benstepp)
Changed
  • Update dependencies (#​1119 @​danez)
  • Documentation improvements (#​1121 @​omerzach, #​1130 @​dreid, #​1131 @​shoesandsocks, #​1149 @​Adzz, #​1151 @​MatthewHerbst, #​1167 @​Slumber86)


🚀 This PR has been generated by Renovate using COB-LVS/renovate configuration.

@codecov
Copy link

codecov bot commented May 16, 2018

Codecov Report

Merging #17 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #17   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           6      6           
  Lines         137    137           
=====================================
  Hits          137    137

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d13c62f...7a5a4e6. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant