From 617cffc869d58d2360920b76632d21d785d99a35 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Tue, 8 May 2018 18:35:18 -0700 Subject: [PATCH] fix many linting errors --- .eslintrc | 19 ++++++++--- .../modules/IDE/components/CopyableInput.jsx | 4 +-- .../IDE/components/EditorAccessibility.jsx | 11 ++++--- client/modules/User/actions.js | 4 +-- client/styles/components/_copyable-input.scss | 32 ++++++++----------- 5 files changed, 38 insertions(+), 32 deletions(-) diff --git a/.eslintrc b/.eslintrc index 7be0a9eb..f3aa91ab 100644 --- a/.eslintrc +++ b/.eslintrc @@ -6,11 +6,6 @@ "node": true, "mocha": true }, - "ecmaFeatures": { - "jsx": true, - "es6": true, - "classes": true - }, "rules": { "linebreak-style": 0, "react/no-multi-comp": 0, @@ -51,6 +46,20 @@ "to" ] } + ], + "jsx-a11y/label-has-for": [ + 2, + { + "components": [ + "Label" + ], + "required": { + "every": [ + "id" + ] + }, + "allowChildren": false + } ] }, "plugins": [ diff --git a/client/modules/IDE/components/CopyableInput.jsx b/client/modules/IDE/components/CopyableInput.jsx index a510781c..adac29bc 100644 --- a/client/modules/IDE/components/CopyableInput.jsx +++ b/client/modules/IDE/components/CopyableInput.jsx @@ -41,12 +41,12 @@ class CopyableInput extends React.Component { ref={(element) => { this.tooltip = element; }} onMouseLeave={this.onMouseLeaveHandler} > -