Skip to content
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

Update eslint-plugin-react to the latest version 🚀 #7

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

Conversation

greenkeeper[bot]
Copy link

@greenkeeper greenkeeper bot commented May 6, 2017

Version 7.0.0 of eslint-plugin-react just got published.

Dependency eslint-plugin-react
Current Version 6.10.3
Type dependency

The version 7.0.0 is not covered by your current version range.

Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.

I recommend you look into these changes and try to get onto the latest version of eslint-plugin-react.
Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.


Release Notes v7.0.0

Added

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

Commits

The new version differs by 58 commits0.

  • d335b1f Update CHANGELOG and bump version
  • d97e5f0 Merge pull request #1167 from Slumber86/master
  • 79415f1 Wrong import
  • 48a397e Fix syntax error
  • 2cd9e5e Update docs for deprecated prop-types
  • 4d5faee Update CHANGELOG and bump version
  • dfe190b Merge pull request #1134 from MatthewHerbst/jsx-sort-props/new-rule-option--reservedFirst
  • 14dbf99 Merge pull request #802 from kokarn/master
  • 7d08955 Add default for jsx-first-prop-new-line
  • 21ed801 Fix lint errors
  • b5856ca Merge pull request #791 from Lingvokot/790-stateless-multiline-wrap
  • 77048c8 Remove deprecated wrap-multilines rule
  • 6d6d24a Remove deprecated no-comment-textnodes rule
  • 229cc21 Remove deprecated require-extension rule
  • ed928c2 Merge pull request #1013 from jomasti/jsx-no-undef-imported-only

There are 58 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

greenkeeper bot added a commit that referenced this pull request May 13, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented May 13, 2017

Version 7.0.1 just got published.

Update to this version instead 🚀

Release Notes v7.0.1

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

Commits

The new version differs by 22 commits0.

  • 7ca9841 Update CHANGELOG and bump version
  • 9ce4d85 Merge pull request #1192 from markus-willems/pr/prop-types-docs
  • 660790b fix for wrong rule syntax. no-unused-prop-types instead of react/no-unused-prop-types in docs
  • 227fcf3 fix for wrong rule syntax. prop-types instead of react/prop-types in docs
  • af68f88 Fix require-default-props error message for quoted props (fixes #1161)
  • f7fb96b Fix void-dom-elements-no-children crash on faulty createElement detection (fixes #1101)
  • f111e45 Merge pull request #1180 from fatfisz/fix-newline-with-object-literals
  • 3743e6d Add additional test with flow annotations to prop-types
  • 1ced710 Fix no-unused-prop-types crash with Flow spread operator (fixes #1178
  • 1534bdb Fix the newline with object literals bug
  • 159d0e5 Update rules to match changes in comments attachement in ESLint 4.0.0
  • 1b5743f Update tests to pass parserOptions globally
  • 0a2c510 Fix indent errors
  • 1bcaee0 Update .eslintrc config for ESLint 4.0.0
  • dd10133 Fix prop-types crash with Flow spread operator (fixes #1178)

There are 22 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Aug 9, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 9, 2017

Version 7.2.0 just got published.

Update to this version instead 🚀

Release Notes v7.2.0

Added

Fixed

Changed

Commits

The new version differs by 153 commits.

  • 73abadb Update CHANGELOG and bump version
  • 1a622ea Merge pull request #1343 from DianaSuvorova/unusedPropsFlow
  • f9c22ef Merge pull request #1273 from Overload119/master
  • d66808b Modernize to use let and const
  • e305279 Merge pull request #1344 from DianaSuvorova/docs
  • 15d0f74 [no-unused-prop-types] test from #933
  • f446335 [no-unused-prop-types] known false positives doc
  • 95acd93 Merge pull request #1341 from DianaSuvorova/flowShape
  • 942e594 flow should respect skipShapeProps
  • f0487f2 Merge pull request #1338 from DianaSuvorova/graphql
  • b6bd2da [no-unused-prop-types] graphql issue #1097
  • df84876 Update dependencies
  • a19eec6 Merge pull request #1294 from haridusenadeera/master
  • ed72341 Merge pull request #1329 from DianaSuvorova/docs
  • 3195805 Merge pull request #1302 from davidyorr/master

There are 153 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Aug 14, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 14, 2017

Version 7.2.1 just got published.

Update to this version instead 🚀

Release Notes v7.2.1

Fixed

Changed

Commits

The new version differs by 11 commits.

  • 8511835 Update CHANGELOG and bump version
  • 0f6688b Merge pull request #1124 from penx/patch-1
  • ecc5d89 Fix wrapped propTypes detection (fixes #1366)
  • 4724d48 Merge pull request #1365 from DianaSuvorova/i1288
  • 6272a1d [prop types] fix an assignment to prop
  • b9bb564 Merge pull request #1358 from dustinsoftware/issue1354
  • 99fd813 Fix propTypes wrapper crash in boolean-prop-naming
  • dae6574 [Tests] use pretest to run the linter
  • 2dcb73b [Tests] fixup previous linter error
  • 5ad93b4 [Fix] forbid-prop-types: propWrapperFunctions breaks on identifiers.
  • 08f451f Update no-array-index-key.md to address issue 1123

See the full diff

greenkeeper bot added a commit that referenced this pull request Aug 21, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 21, 2017

Version 7.3.0 just got published.

Update to this version instead 🚀

Release Notes v7.3.0

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

Commits

The new version differs by 25 commits.

  • 162b92b Update CHANGELOG and bump version
  • 686ab89 Merge pull request #1375 from jseminck/more-robust-no-typos-fix
  • 9805f70 Fix no-direct-mutation-state detection with nested components (fixes #1382)
  • 6af4bca Merge pull request #1383 from mjomble/patch-1
  • a05bc0a Fixed links in changelog
  • 48e8dc1 Merge pull request #1380 from brgibson/master
  • f371368 require-default-props - fixing an edge case where linting stops when it finds a component without props - should move on to the next component in the file
  • 5e25a5e Re-add FIXME and disable the warning through eslint-disable-next-line
  • d00e9e6 Remove FIXME as it fails linting
  • 0cf2415 Add comment to the eslint parent definition issue
  • 02ed7d0 Merge pull request #1371 from DianaSuvorova/i213
  • 1292807 Add comment explaining try/catch
  • fa890cb Tests and explaining the case that is currently not supported.
  • 1301fe9 More robust no-typos fix
  • 59a3f6a [no-typo] rule enhancement checking for a correct prop type spelling

There are 25 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Sep 24, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Sep 24, 2017

Version 7.4.0 just got published.

Update to this version instead 🚀

Release Notes v7.4.0

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

Changed

Commits

The new version differs by 112 commits.

  • dc9f85e Update CHANGELOG and bump version
  • 99b12a2 Merge pull request #1432 from jneuendorf/master
  • d2005b1 fixed typos in no-multi-comp
  • ddd05b1 Update CHANGELOG and bump version
  • 7e336aa Merge pull request #1415 from jseminck/intersection-imported-type
  • ad26580 Merge pull request #1387 from zpao/update-expression
  • 09c4ed7 Add tests for {...} & Props in addition to Props & {...}
  • 357dcda buildReactDeclarationTypes to always return an object
  • 0ee5e93 Rewrite reduce to ignorePropsValidation as some()
  • 3e9aefe Make buildTypeAnnotationDeclarationTypes always return an object instead of boolean or an object
  • 3e4d184 Aadd support also for no-unused-prop-types
  • 19a2911 Clean up the code a bit
  • 20f75ee Add support for TypeA & { ... }
  • a771125 Add similar supprt for no-used-prop-types
  • 87aca04 Add support for multiple Flow IntersectionTypeAnnotations and skip propTypes when one of the intersected props is not found, e.g. when imported

There are 112 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Nov 18, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Nov 18, 2017

Version 7.5.0 just got published.

Update to this version instead 🚀

Release Notes v7.5.0

Added

Fixed

Changed

Commits

The new version differs by 176 commits.

  • c148893 Update CHANGELOG and bump version
  • f746d68 Update dependencies
  • 771f534 Merge pull request #1539 from jseminck/jsx-indent-bug
  • acc4f24 Use the new function also in jsx-indent-props
  • c51087c Extract isNodeFirstInLine to astUtil function
  • 6d50fb6 Fix test by using the same isNodeFirstInLine function found in jsx-closing-tag-location rule
  • 8f3dc55 Add failing test
  • 27b8279 Merge pull request #1532 from jomasti/issue-1524
  • 24190c6 Merge pull request #1398 from jseminck/components-as-class
  • cf2d6f6 Keep existing API of exporting Components
  • 04a42a9 Move private functions out of the class
  • a0d47cf Export an object with a single detect() function, removing the static class property
  • e3638ab Remove @class jsdoc
  • c379156 Move detect to a static class property
  • 8d66521 Re-write Components as a class

There are 176 commits in total.

See the full diff

greenkeeper bot added a commit that referenced this pull request Nov 19, 2017
@greenkeeper
Copy link
Author

greenkeeper bot commented Nov 19, 2017

Version 7.5.1 just got published.

Update to this version instead 🚀

Release Notes v7.5.1

Fixed

Changed

Commits

The new version differs by 7 commits.

  • 3a94a95 Update CHANGELOG and bump version
  • 32a050a Merge pull request #1549 from jseminck/documentation-fix-2
  • 31bfdf7 Add button-has-type to readme
  • 56c0a0b Merge pull request #1545 from jomasti/issue-1542
  • 3c6d571 Fix crash in no-unused-prop-types
  • e0bae03 Merge pull request #1544 from jomasti/issue-1543
  • 51ffcd0 Prevent jsx-no-bind crash

See the full diff

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

Successfully merging this pull request may close these issues.

0 participants