From 5057a901fe975f2912e73e8a4bd32d2cf86513f5 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Fri, 4 May 2018 17:43:31 -0700 Subject: [PATCH] fix a few linting errors --- .eslintrc | 13 ++++++++++++- client/components/Nav.jsx | 2 +- client/modules/App/components/DevTools.jsx | 16 ++++++++++------ client/modules/IDE/components/AssetList.jsx | 2 +- client/modules/IDE/components/Console.jsx | 3 +-- 5 files changed, 25 insertions(+), 11 deletions(-) diff --git a/.eslintrc b/.eslintrc index 6b66fa55..7be0a9eb 100644 --- a/.eslintrc +++ b/.eslintrc @@ -40,7 +40,18 @@ }], "class-methods-use-this": 0, "react/jsx-no-bind": [2, {"allowBind": true, "allowArrowFunctions": true}], - "no-return-assign": [2, "except-parens"] + "no-return-assign": [2, "except-parens"], + "jsx-a11y/anchor-is-valid": [ + "error", + { + "components": [ + "Link" + ], + "specialLink": [ + "to" + ] + } + ] }, "plugins": [ "react", "jsx-a11y", "import" diff --git a/client/components/Nav.jsx b/client/components/Nav.jsx index beef9d41..09b3c123 100644 --- a/client/components/Nav.jsx +++ b/client/components/Nav.jsx @@ -108,7 +108,7 @@ class Nav extends React.PureComponent { }) }; return ( -