- Remove deprecated rule
jsx-a11y/accessible-emoji
. (See discussion) - Add React 17 as compatible version.
- Update minimum ESLint version to
v7.14
.
- Enable
jsx-a11y/autocomplete-valid
- set
parser
andparserOptions
from main package soeslint-config-react
can be used standalone. - Recognize all hooks that follow the pattern
^use.+(Callback|Effect)$
as hooks with dependencies. - Enable
skipUndeclared
option forreact/prop-types
. This makes documenting props only required ifpropTypes
is declared on the component. - Disable
require-default-props
.- There are some limitations with this rule (forwardRefs) which make it problematic at times.
- defaultProps is being phased out in favor of destructured default values in function components making this rule have lesser value than before.
- Replace
babel-eslint
with@babel/eslint-parser
. - Restructure ruleset directories so there's distinction between what is core to the config and what is considered "optional" or "addons"
- resolved an issue where
indent
andreact/jsx-indent
conflict.
- Disable
react/no-did-mount-set-state
due to it's lack of exceptions for async data handling. - Disable
jsx-a11y/no-onchange
due to some false positives we were seeing.
- Remove
react-dom
as a peer dependency.
- Initial release intended for general consumption
Original version (which should no longer be used)