Skip to content

Commit

Permalink
feat: Add eslint-plugin-jsx-a11y to react rules
Browse files Browse the repository at this point in the history
See #16

BREAKING CHANGE: This change adds a lot of new rules which
help us to improve the accessibility of our applications.
  • Loading branch information
jhnns committed Mar 31, 2018
1 parent 9994d2b commit 7d8dbdc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions react.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@
/* eslint-disable sort-keys */

module.exports = {
plugins: ["react"],
extends: ["plugin:import/react", "plugin:react/recommended"],
plugins: [
"react",
"jsx-a11y"
],
extends: [
"plugin:import/react",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended"
],
rules: {
/* eslint-enable sort-keys */
// Allow certain react methods to have no this
Expand Down

0 comments on commit 7d8dbdc

Please sign in to comment.