From b3bb43ff82208a3dc159940af0477dc7e8a468f0 Mon Sep 17 00:00:00 2001 From: Steven Murray Date: Wed, 10 Jun 2020 12:59:27 -0400 Subject: [PATCH] Fixes remaining lint errors. (#1083) --- react/.eslintrc.json | 4 +- .../atoms/buttons/ButtonCopy/index.js | 1 + .../components/atoms/links/FootNote/index.js | 1 + .../atoms/links/FootNoteLink/index.js | 1 + .../components/forms/CompoundSlider/index.js | 2 +- .../components/forms/FeedbackForm/index.js | 36 ++-- .../forms/MultiSelectDropDown/index.js | 3 +- .../molecules/AccordionItem/index.js | 1 + .../molecules/LinkDropdown/index.js | 7 +- .../molecules/ListingTable/index.js | 6 +- .../src/components/molecules/MainNav/index.js | 7 +- react/src/components/molecules/Tabs/index.js | 1 + .../organisms/EmergencyAlerts/index.js | 178 +++++++++--------- .../src/components/organisms/Footer/index.js | 2 +- .../src/components/organisms/Header/index.js | 2 + .../components/organisms/TabContainer/tab.js | 2 +- .../organisms/TeaserListing/index.js | 1 + .../components/organisms/UtilityNav/index.js | 6 +- 18 files changed, 138 insertions(+), 123 deletions(-) diff --git a/react/.eslintrc.json b/react/.eslintrc.json index 2ea7a3cb6e..24534b4eed 100644 --- a/react/.eslintrc.json +++ b/react/.eslintrc.json @@ -33,7 +33,9 @@ "no-use-before-define": ["off"], "jsx-a11y/anchor-is-valid": ["warn"], "react/jsx-props-no-spreading": ["off"], - "react/destructuring-assignment": ["off"] + "react/destructuring-assignment": ["off"], + "react/static-property-placement": ["off"], + "react/state-in-constructor": ["off"] }, "settings": { "import/resolver": { diff --git a/react/src/components/atoms/buttons/ButtonCopy/index.js b/react/src/components/atoms/buttons/ButtonCopy/index.js index d19e74eead..10ea1f5e2d 100644 --- a/react/src/components/atoms/buttons/ButtonCopy/index.js +++ b/react/src/components/atoms/buttons/ButtonCopy/index.js @@ -23,6 +23,7 @@ const ButtonCopy = ({ content }) => { if ((navigator && navigator.clipboard) || (window.location.search.indexOf('backstop') > -1)) { return( ); + itemBody.push(); const navItemClasses = classNames({ 'ma__main-nav__subitems': true, 'is-open-react': isExpanded, @@ -147,6 +147,7 @@ class MainNav extends React.Component {