Commit b33f25ef authored by Eugen Rochko's avatar Eugen Rochko

Fix eslint warnings

parent 484ac399
......@@ -84,7 +84,7 @@ const apps = {
const renderApp = ({ name, icon, paid, url }) => (
<div className='app-grid__item' key={name}>
<a href={url} target='_blank'>
<a href={url} target='_blank' rel='noopener noreferrer'>
<img src={icon} alt={name} className='app-grid__item__icon' />
<div className='app-grid__item__text'>
......@@ -12,7 +12,7 @@ export default class Dropdown extends PureComponent {
return (
<div className='dropdown__menu'>
{ => asLinks ? (
<a href={option.value} className='dropdown__option' target='_blank'>
<a href={option.value} className='dropdown__option' target='_blank' rel='noopener noreferrer'>
) : (
......@@ -20,7 +20,7 @@ const Features = () => (
<i className='xs-show ion-md-lock' />
<h2><FormattedMessage id='features.safety2' defaultMessage='Safer social media experience' /></h2>
<p><FormattedMessage id='features.safety_text2' defaultMessage="Mastodon comes with <strong>effective anti-abuse tools</strong> to help protect yourself. Thanks to the network's spread out and independent nature there are <strong>more moderators</strong> who you can approach for personal help, and <strong>servers with strict codes of conduct</strong>." /></p>
<a href='' className='link-button' target='_blank'><FormattedMessage id='features.read_more' defaultMessage='Read more' /> <i className='ion-ios-arrow-forward' /></a>
<a href='' className='link-button' target='_blank' rel='noopener noreferrer'><FormattedMessage id='features.read_more' defaultMessage='Read more' /> <i className='ion-ios-arrow-forward' /></a>
import React, { PureComponent, Fragment } from 'react';
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { injectIntl, FormattedHTMLMessage as FormattedMessage } from 'react-intl';
import { FormattedHTMLMessage as FormattedMessage } from 'react-intl';
import { HashLink as Link } from 'react-router-hash-link';
import AnchorLink from './AnchorLink';
import Modal from 'react-responsive-modal';
......@@ -170,7 +170,7 @@ export default class Home extends PureComponent {
<h3><FormattedMessage id='home.install_your_own' defaultMessage='Install your own' /></h3>
<p><FormattedMessage id='home.install_your_own_text' defaultMessage='If you are interested in running your own instance &mdash; for your friends, family or organization &mdash; you can get started by reading the installation documentation. You only host your own users and the content that they subscribe to, which means it&apos;s quite scalable and resource-efficient.' /></p>
<a href='' className='cta button'><FormattedMessage id='home.read_the_docs' defaultMessage='Read the docs' /></a>
<a href='' target='_blank' rel='nofollow' className='cta button alt'><FormattedMessage id='' defaultMessage='Fully-managed Mastodon hosting' /></a>
<a href='' target='_blank' rel='noopener noreferrer' className='cta button alt'><FormattedMessage id='' defaultMessage='Fully-managed Mastodon hosting' /></a>
......@@ -90,16 +90,16 @@ const Sponsorship = () => (
<li><a href=''><img src={avatarGlocal} alt='' /> <span><strong>glocal</strong><span></span></span></a></li>
<li><a href=''><img src={avatarCloudfleet} alt='' /> <span><strong>CloudFleet</strong><span></span></span></a></li>
<li><a href=''><img src={avatarJamesMWright} alt='' /> <span><strong>James Wright</strong><span></span></span></a></li>
<li><a href='#'><img src={noAvatar} alt='' /> <span><strong>Martin Seeger</strong><span>-</span></span></a></li>
<li><a href=''><img src={noAvatar} alt='' /> <span><strong>Martin Seeger</strong><span>-</span></span></a></li>
<li><a href=''><img src={noAvatar} alt='' /> <span><strong>Takanori Yamada</strong><span></span></span></a></li>
<li><a href=''><img src={avatarEvan} alt='' /> <span><strong>Evan Prodromou</strong><span></span></span></a></li>
<li><a href='#'><img src={noAvatar} alt='' /> <span><strong>Blaine Cook</strong><span>-</span></span></a></li>
<li><a href=''><img src={noAvatar} alt='' /> <span><strong>Blaine Cook</strong><span>-</span></span></a></li>
<li><a href=''><img src={avatarVJ} alt='' /> <span><strong>VJ</strong><span></span></span></a></li>
<li><a href=''><img src={avatarIanna} alt='' /> <span><strong>Inanna</strong><span></span></span></a></li>
<li><a href=''><img src={avatarMarkAtwood} alt='' /> <span><strong>Mark Atwood</strong><span></span></span></a></li>
<li><a href=''><img src={avatarNoellabo} alt='' /> <span><strong>noellabo</strong><span></span></span></a></li>
<li><a href=''><img src={avatarBenWerdmuller} alt='' /> <span><strong>Ben Werdmuller</strong><span></span></span></a></li>
<li><a href='#'><img src={noAvatar} alt='' /> <span><strong>Ms Miller</strong><span>-</span></span></a></li>
<li><a href=''><img src={noAvatar} alt='' /> <span><strong>Ms Miller</strong><span>-</span></span></a></li>
<li><a href=''><img src={avatarArasPranckevicius} alt='' /> <span><strong>Aras Pranckevicius</strong><span></span></span></a></li>
<li><a href=''><img src={avatarPickfu} alt='' /> <span><strong>PickFu</strong><span></span></span></a></li>
<li><a href=''><img src={avatarIgorFerreira} alt='' /> <span><strong>Igor Ferreira</strong><span></span></span></a></li>
......@@ -153,7 +153,7 @@ class Wizard extends React.PureComponent {
<a target='_blank' href='' className='cta button' style={{ marginBottom: 0 }}>
<a target='_blank' rel='noopener noreferrer' href='' className='cta button' style={{ marginBottom: 0 }}>
<FormattedMessage id='wizard.find_twitter_friends' defaultMessage='Find Twitter friends' />
......@@ -38,7 +38,7 @@ const WizardRow = ({ instance, intl }) => {
const populationSpan = <FormattedMessage id='wizard_row.user_count' defaultMessage='{population} {count, plural, one {person} other {people}}' values={{ population, count: instance.users }} />;
return (
<a href={`https://${}/about`} target='_blank' rel='noopener' className={classNames('wizard-row', { offline: !instance.up })}>
<a href={`https://${}/about`} target='_blank' rel='noopener noreferrer' className={classNames('wizard-row', { offline: !instance.up })}>
<div className='wizard-row__thumbnail'>
<img src={instance.thumbnail_proxy} alt='' />
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment