Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

7.0.0

Compare
Choose a tag to compare
@robertrossmann robertrossmann released this 14 Jun 08:12
· 197 commits to master since this release
179d1cf

This release adds new rules from ESLint 4 and therefore requires that ESLint version.

New rules:

  • object-curly-newline: set to consistent: true
  • padding-line-between-statements: Used as a replacement for the now-deprecated lines-around-directive (requires a newline after 'use strict'
  • semi-style: Configures semicolon placement to being at the beginning of statements. This makes little difference for semi-less coding style; however, you may wish to reconfigure this rule if you have a different setting for the semi rule.
  • switch-colon-spacing: Requires spaces after the colon in a switch's case and disallows spaces before the colon, ie case test: fn()
  • for-direction: In for loops, require the statement which is executed on each iteration to move toward the terminating condition. See the examples if this sounds incomprehensible. 🙂
  • import/no-anonymous-default-export: Encourages ES2015's default exports to have a name. The reasoning for this is explained in the rule's documentation.
  • react/no-will-update-set-state: Do not allow using setState() inside componentWillUpdate().

Changes

  • react/no-deprecated: Lowered to warn instead of error. This should make it easier to work with React when migrating to a higher version. 💪
  • the environments/react/v15 ruleset now defines the target React version as 15.5 instead of 15. This will most likely cause some warnings to appear due to React preparing you for the v16 release.