From 96b18a705faaad172cc7b28d7d0e66b763613b69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A8r=20Kessels?= Date: Sun, 8 Mar 2020 16:02:36 +0100 Subject: [PATCH] [Glitch] Code style improvements in JavaScript Port b5d7ec71eff7a4cbe4c82370c524439062ee0637 to glitch-soc * JS-linter: fix trailing comma's * Configure eslinter to ignore this onchange error. Signed-off-by: Thibaut Girka --- .../glitch/components/intersection_observer_article.js | 2 +- app/javascript/flavours/glitch/features/blocks/index.js | 2 +- .../flavours/glitch/features/compose/components/poll_form.js | 1 + .../flavours/glitch/features/domain_blocks/index.js | 2 +- app/javascript/flavours/glitch/features/favourites/index.js | 2 +- .../flavours/glitch/features/follow_requests/index.js | 2 +- app/javascript/flavours/glitch/features/followers/index.js | 2 +- app/javascript/flavours/glitch/features/following/index.js | 2 +- app/javascript/flavours/glitch/features/lists/index.js | 2 +- app/javascript/flavours/glitch/features/mutes/index.js | 2 +- app/javascript/flavours/glitch/features/reblogs/index.js | 2 +- .../flavours/glitch/features/status/components/card.js | 2 +- app/javascript/flavours/glitch/reducers/notifications.js | 4 ++-- app/javascript/flavours/glitch/reducers/timelines.js | 4 ++-- app/javascript/flavours/glitch/selectors/index.js | 2 +- app/javascript/flavours/glitch/store/configureStore.js | 2 +- 16 files changed, 18 insertions(+), 17 deletions(-) diff --git a/app/javascript/flavours/glitch/components/intersection_observer_article.js b/app/javascript/flavours/glitch/components/intersection_observer_article.js index 03b3700df4..88f29892e8 100644 --- a/app/javascript/flavours/glitch/components/intersection_observer_article.js +++ b/app/javascript/flavours/glitch/components/intersection_observer_article.js @@ -45,7 +45,7 @@ export default class IntersectionObserverArticle extends React.Component { intersectionObserverWrapper.observe( id, this.node, - this.handleIntersection + this.handleIntersection, ); this.componentMounted = true; diff --git a/app/javascript/flavours/glitch/features/blocks/index.js b/app/javascript/flavours/glitch/features/blocks/index.js index 9eb6fe02ed..4992689ff5 100644 --- a/app/javascript/flavours/glitch/features/blocks/index.js +++ b/app/javascript/flavours/glitch/features/blocks/index.js @@ -66,7 +66,7 @@ class Blocks extends ImmutablePureComponent { bindToDocument={!multiColumn} > {accountIds.map(id => - + , )} diff --git a/app/javascript/flavours/glitch/features/compose/components/poll_form.js b/app/javascript/flavours/glitch/features/compose/components/poll_form.js index 3d818ea20a..2dce544180 100644 --- a/app/javascript/flavours/glitch/features/compose/components/poll_form.js +++ b/app/javascript/flavours/glitch/features/compose/components/poll_form.js @@ -143,6 +143,7 @@ class PollForm extends ImmutablePureComponent { + {/* eslint-disable-next-line jsx-a11y/no-onchange */}