Disable ESLint rule jsx/anchor-has-content (#3601)

lolsob-rspec
Yamagishi Kazutoshi 2017-06-06 10:55:56 +09:00 committed by Eugen Rochko
parent 34e120cd84
commit 253c0ad358
2 changed files with 2 additions and 2 deletions

View 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}

View 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'