This repository was archived by the owner on Mar 7, 2019. It is now read-only.
7.0.0
This release adds new rules from ESLint 4 and therefore requires that ESLint version.
New rules:
object-curly-newline: set toconsistent: truepadding-line-between-statements: Used as a replacement for the now-deprecatedlines-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 thesemirule.switch-colon-spacing: Requires spaces after the colon in aswitch'scaseand disallows spaces before the colon, iecase test: fn()for-direction: Inforloops, 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 usingsetState()insidecomponentWillUpdate().
Changes
react/no-deprecated: Lowered towarninstead oferror. This should make it easier to work with React when migrating to a higher version. 💪- the
environments/react/v15ruleset now defines the target React version as15.5instead of15. This will most likely cause some warnings to appear due to React preparing you for thev16release.