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} > -