]> cat aescling's git repositories - mastodon.git/commitdiff
Disable ESLint rule jsx/anchor-has-content (#3601)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Tue, 6 Jun 2017 01:55:56 +0000 (10:55 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 6 Jun 2017 01:55:56 +0000 (03:55 +0200)
app/javascript/mastodon/components/media_gallery.js
app/javascript/mastodon/features/account/components/header.js

index baa7f9afa932d8100b1b3df4e8e767f8b84958c6..3fde7eca71fe78c15f38705a0b8a1e97036d6e83 100644 (file)
@@ -86,7 +86,7 @@ class Item extends React.PureComponent {
 
     if (attachment.get('type') === 'image') {
       thumbnail = (
-        <a
+        <a // eslint-disable-line jsx-a11y/anchor-has-content
           className='media-gallery__item-thumbnail'
           href={attachment.get('remote_url') || attachment.get('url')}
           onClick={this.handleClick}
index e71d7211245aac4fd0ad4b0e12a384255503515a..1a3eb086f7006c8e6a2cec199e76b38f31e3502d 100644 (file)
@@ -52,7 +52,7 @@ class Avatar extends ImmutablePureComponent {
     return (
       <Motion defaultStyle={{ radius: 90 }} style={{ radius: spring(isHovered ? 30 : 90, { stiffness: 180, damping: 12 }) }}>
         {({ radius }) =>
-          <a
+          <a // eslint-disable-line jsx-a11y/anchor-has-content
             href={account.get('url')}
             className='account__header__avatar'
             target='_blank'