- Switch to eslint 6 & friends
- Removed ava
- Remove some old Synthetic* globals for flow/react-native
- Remove all non error rules
- Switch to eslint 5
- several too brutal react(-native) rules disabled
"react/jsx-boolean-value"
on to match ReasonReact style"react/no-this-in-sfc"
on
- Bump dep/devDeps to ensure compat with rules
import/no-self-import
enabledimport/no-useless-path-segments
: enabledreact/no-did-mount-set-state
disabledreact/no-did-update-set-state
disabled
- (
flowtype/no-unused-expressions
) Avoid keeping unused type annotations - (
flowtype/type-id-match
) Remove type naming restriction - (
flowtype/no-mutable-array
) DisallowArray
in favor of$ReadOnlyArray
- (
flowtype/require-exact-type
) Disallow inexact object types ({| |}
notation is required). - (
react/sort-comp
) Allow type annotations and instance variables at the top of React class components
react-native
correctly extendsreact-flow
- Eslint 4+
- Updated all plugins with new (undefined) rules (some on, some off)
- Globals to prevent "no-undef" with Flow (ref)
- Relaxed:
flowtype/type-id-match
is less strict. It accepts lowercase for the first letter (eg: for function type)
- Removed: all rules directly related to code styles have been removed. We recommend you to use prettier.
- Changed: eslint
ecmaVersion
set to2017
- Added: some rules for flow (7a36807 & 98c6bae)
- Fixed:
babel-eslint
is not required for the default config
- Fixed: json files cause too much issue with import plugin, so ignored.
-
Changed: eslint@3 compat
-
Added: lot of missings rules related to package updates (mainly for react)
- eslint-plugin-react@6
- eslint-plugin-ava@3
-
Added:
eslint-plugin-import
is now included in the default config. All rules are on exceptno-nodejs-modules
which depends on the env. -
Added:
react/jsx-first-prop-new-line
withmultiline
value to enforce first prop on a new line if there is multiple props. The following patterns are now considered warnings: multiple props. The following patterns are now considered warnings:<Hello personal prop />
The following patterns are now not considered warnings:
<Hello personal={true} /> <Hello personal={true} foo="bar" />
-
Added:
react/jsx-no-target-blank
. This rules requires that you accompany alltarget='_blank'
attributes withrel='noreferrer noopener'
for security reasons. -
Added:
eslint-plugin-react-native
available aseslint-config-i-am-meticulous/react-native
.
- Added: react/require-render-return
- Fixed: as
jsx-indent
is considered buggy, the rule is for now disabled. If re-enabled, will be done in a major release.
- Added: react-flow preset. Flow support for props and state property initializers at the top of React classes (so "react/sort-comp" as been adjusted).
New rules added.
- Changed: All react rules defined, just a few are disabled.
- Added: AVA rule set (just recommended rule)
- Added: flow rule set (just recommended rule)
Not changes for rules.
- Removed: eslint@1.x support
- Added: eslint@2.x support
- Removed: "babel-eslint" is not used by default
- Changed: react preset extends the default, no need to include both now
- Added: es5 preset
💥