Releases: FullstackAcademy/eslint-config-fullstack
Releases · FullstackAcademy/eslint-config-fullstack
Support ESLint 5 and Plugin-React 7.10
Relax multiple rules
Following an informal survey, several of the most annoying rules have been disabled.
react/prefer-stateless-function
- using
setState
indidMount
anddidUpdate
id-length
no-nested-ternary
Make babel-eslint a peer dep
This release includes a number of development-environment improvements, irrelevant to end-users, and one breaking change (making babel-eslint
a peer dep).
ESLint 4.19.0 Plugin-React 7.7.0
Major breaking change with multiple rule updates, see 83b73fb for changes.
Support ESLint-Plugin-React 7.0.1
- Adds
react/no-will-update-set-state
rule. - Updates
react/jsx-no-undef
with new option to allow globals. - Adds some documentation on usage with
babel-eslint
package.
Fix React
ESLint 3.18.0 React 6.10.3
Status | Rule name | Setting | Notes |
---|---|---|---|
New | no-compare-neg-zero |
1 |
use Object.is(obj, -0) instead. |
New | nonblock-statement-body-position |
1 |
do not put single statements for block control flow (if, while, etc.) on a newline. |
New | react/forbid-elements |
0 |
|
New | react/forbid-foreign-prop-types |
0 |
|
New | react/void-dom-elements-no-children |
1 |
|
Changed | no-unused-expressions |
[2, {allowTaggedTemplates: true, allowShortCircuit: true, allowTernary: true}] |
Relaxes cases where expressions can have side effects |
Changed | no-unused-vars |
`[1, {argsIgnorePattern: '^(next | _)$'}]` |
Changed | react/prefer-es6-class |
1 |
turned on |
Changed | react/prop-types |
0 |
turned off |
Changed | react/require-default-props |
0 |
turned off |
Support ESLint 3.15.0
Three new rules:
Rule | Setting |
---|---|
prefer-promise-reject-errors |
1 |
no-multi-assign |
0 |
template-tag-spacing |
0 |
ESLint 3.13.1 React 6.9.0
New rule:
prefer-destructuring
: set to0
Rules turned back on:
prop-types
: set to1
(warning)
Extended React Support
This release makes React/JSX a default part of the main module. To avoid breaking users with the fullstack/react
config, that (deprecated) setting simply serves up the main ruleset, which includes React.