From 0a103c774977cda29e5c02e697b4632f98bcc621 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Thu, 18 Jan 2018 00:57:15 +0900 Subject: Upgrade ESLint to version 4.x (#6276) --- .../mastodon/components/attachment_list.js | 4 +- app/javascript/mastodon/components/collapsable.js | 4 +- app/javascript/mastodon/components/icon_button.js | 4 +- app/javascript/mastodon/components/status.js | 18 +- .../mastodon/features/account/components/header.js | 4 +- .../mastodon/features/account_gallery/index.js | 4 +- .../compose/components/privacy_dropdown.js | 4 +- .../features/compose/components/search_results.js | 4 +- app/javascript/mastodon/features/compose/index.js | 4 +- .../mastodon/features/compose/util/url_regex.js | 192 ++++++++++----------- .../features/emoji/__tests__/emoji-test.js | 4 +- .../mastodon/features/list_editor/index.js | 4 +- .../features/ui/components/column_header.js | 2 +- .../mastodon/features/ui/components/modal_root.js | 12 +- .../mastodon/features/ui/components/upload_area.js | 4 +- 15 files changed, 134 insertions(+), 134 deletions(-) (limited to 'app/javascript') diff --git a/app/javascript/mastodon/components/attachment_list.js b/app/javascript/mastodon/components/attachment_list.js index b3d00b335..9f2d46ddd 100644 --- a/app/javascript/mastodon/components/attachment_list.js +++ b/app/javascript/mastodon/components/attachment_list.js @@ -20,11 +20,11 @@ export default class AttachmentList extends ImmutablePureComponent { ); diff --git a/app/javascript/mastodon/components/collapsable.js b/app/javascript/mastodon/components/collapsable.js index 42ea37ec2..d5d431186 100644 --- a/app/javascript/mastodon/components/collapsable.js +++ b/app/javascript/mastodon/components/collapsable.js @@ -5,11 +5,11 @@ import PropTypes from 'prop-types'; const Collapsable = ({ fullHeight, isVisible, children }) => ( - {({ opacity, height }) => + {({ opacity, height }) => (
{children}
- } + )}
); diff --git a/app/javascript/mastodon/components/icon_button.js b/app/javascript/mastodon/components/icon_button.js index 06f53841d..b96e48fd0 100644 --- a/app/javascript/mastodon/components/icon_button.js +++ b/app/javascript/mastodon/components/icon_button.js @@ -93,7 +93,7 @@ export default class IconButton extends React.PureComponent { return ( - {({ rotate }) => + {({ rotate }) => (