diff --git a/.eslintrc.yml b/.eslintrc.yml
index ac7c8a0c7f..aa23bebbfc 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -55,7 +55,6 @@ rules:
jsx-a11y/accessible-emoji: warn
jsx-a11y/anchor-has-content: warn
- jsx-a11y/alt-text: warn
jsx-a11y/aria-activedescendant-has-tabindex: warn
jsx-a11y/aria-props: warn
jsx-a11y/aria-proptypes: warn
@@ -65,15 +64,16 @@ rules:
jsx-a11y/href-no-hash: warn
jsx-a11y/html-has-lang: warn
jsx-a11y/iframe-has-title: warn
+ jsx-a11y/img-has-alt: warn
jsx-a11y/img-redundant-alt: warn
- jsx-a11y/interactive-supports-focus: warn
jsx-a11y/label-has-for: warn
jsx-a11y/mouse-events-have-key-events: warn
jsx-a11y/no-access-key: warn
jsx-a11y/no-distracting-elements: warn
- jsx-a11y/no-noninteractive-element-interactions: warn
jsx-a11y/no-onchange: warn
jsx-a11y/no-redundant-roles: warn
+ jsx-a11y/onclick-has-focus: warn
+ jsx-a11y/onclick-has-role: warn
jsx-a11y/role-has-required-aria-props: warn
jsx-a11y/role-supports-aria-props: warn
jsx-a11y/scope: warn
diff --git a/app/javascript/mastodon/features/ui/components/onboarding_modal.js b/app/javascript/mastodon/features/ui/components/onboarding_modal.js
index 419a94c2c5..889ecaaff5 100644
--- a/app/javascript/mastodon/features/ui/components/onboarding_modal.js
+++ b/app/javascript/mastodon/features/ui/components/onboarding_modal.js
@@ -242,7 +242,7 @@ class OnboardingModal extends React.PureComponent {
- {pages.map((_, i) =>
)}
+ {pages.map((_, i) =>
)}
diff --git a/package.json b/package.json
index f190364772..d7da8487f2 100644
--- a/package.json
+++ b/package.json
@@ -109,7 +109,7 @@
"chai-enzyme": "^0.6.1",
"enzyme": "^2.8.2",
"eslint": "^3.19.0",
- "eslint-plugin-jsx-a11y": "^5.0.0",
+ "eslint-plugin-jsx-a11y": "^4.0.0",
"eslint-plugin-react": "^6.10.3",
"jsdom": "^9.11.0",
"minimist": "^1.2.0",
diff --git a/yarn.lock b/yarn.lock
index 104e6f0c12..a60e451dcd 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -232,9 +232,9 @@ argparse@^1.0.7:
dependencies:
sprintf-js "~1.0.2"
-aria-query@^0.5.0:
- version "0.5.0"
- resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-0.5.0.tgz#85e3152cd8cc5bab18dbed61cd9c4fce54fa79c3"
+aria-query@^0.3.0:
+ version "0.3.0"
+ resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-0.3.0.tgz#cb8a9984e2862711c83c80ade5b8f5ca0de2b467"
dependencies:
ast-types-flow "0.0.7"
@@ -389,12 +389,6 @@ axios@^0.15.3:
dependencies:
follow-redirects "1.0.0"
-axobject-query@^0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-0.1.0.tgz#62f59dbc59c9f9242759ca349960e7a2fe3c36c0"
- dependencies:
- ast-types-flow "0.0.7"
-
babel-cli@^6.23.0:
version "6.23.0"
resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.23.0.tgz#52ff946a2b0f64645c35e7bd5eea267aa0948c0f"
@@ -2418,16 +2412,16 @@ escope@^3.6.0:
esrecurse "^4.1.0"
estraverse "^4.1.1"
-eslint-plugin-jsx-a11y@^5.0.0:
- version "5.0.0"
- resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-5.0.0.tgz#88c1d26b2d145ef077ab3d130be15243ac06a877"
+eslint-plugin-jsx-a11y@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-4.0.0.tgz#779bb0fe7b08da564a422624911de10061e048ee"
dependencies:
- aria-query "^0.5.0"
+ aria-query "^0.3.0"
ast-types-flow "0.0.7"
- axobject-query "^0.1.0"
damerau-levenshtein "^1.0.0"
emoji-regex "^6.1.0"
- jsx-ast-utils "^1.4.0"
+ jsx-ast-utils "^1.0.0"
+ object-assign "^4.0.1"
eslint-plugin-react@^6.10.3:
version "6.10.3"
@@ -3637,7 +3631,7 @@ jsprim@^1.2.2:
json-schema "0.2.3"
verror "1.3.6"
-jsx-ast-utils@^1.3.4, jsx-ast-utils@^1.4.0:
+jsx-ast-utils@^1.0.0, jsx-ast-utils@^1.3.4:
version "1.4.0"
resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-1.4.0.tgz#5afe38868f56bc8cc7aeaef0100ba8c75bd12591"
dependencies: