Created by: AlmeroSteyn
As discussed in #1708 (closed)
After this PR the included rules from eslint-plugin-jsx-a11y
will be:
'jsx-a11y/accessible-emoji': 'warn',
'jsx-a11y/alt-text': 'warn',
'jsx-a11y/anchor-has-content': 'warn',
'jsx-a11y/aria-activedescendant-has-tabindex': 'warn',
'jsx-a11y/aria-props': 'warn',
'jsx-a11y/aria-proptypes': 'warn',
'jsx-a11y/aria-role': 'warn',
'jsx-a11y/aria-unsupported-elements': 'warn',
'jsx-a11y/heading-has-content': 'warn',
'jsx-a11y/href-no-hash': 'warn',
'jsx-a11y/iframe-has-title': 'warn',
'jsx-a11y/img-redundant-alt': 'warn',
'jsx-a11y/no-access-key': 'warn',
'jsx-a11y/no-distracting-elements': 'warn',
'jsx-a11y/no-redundant-roles': 'warn',
'jsx-a11y/role-has-required-aria-props': 'warn',
'jsx-a11y/role-supports-aria-props': 'warn',
'jsx-a11y/scope': 'warn',
I have upgraded the package itself to v5.01.
I have set the dev and peer dependency to be ^5.0.0
, where appropriate. This version contains new rules, some of which have been used in the config above, therefore it will error out with earlier versions of the plugin.
In the docs of eslint-config-react-app
I changed the version of the plugin when installing globally:
Finally, I added a section to the documentation of eslint-config-react-app
indicating the rules that have been activated and how you can override them to run the full set.
I have done a clean install of packages, and also started the React application with clean slate as well as error situations and all function as I would expect.
I hope I have not missed anything.