precommit linting

This commit is contained in:
Rares Mardare 2022-08-26 12:54:49 +03:00
parent e9d99479b4
commit be212706d9
10 changed files with 17 additions and 18 deletions

View file

@ -197,7 +197,7 @@ const AlertTemplatesForm = (props: AlertTemplatesFormProps) => {
<VerticalGroup>
<Text type="secondary">
<p>
<a href="https://jinja.palletsprojects.com/en/3.0.x/" target="_blank">
<a href="https://jinja.palletsprojects.com/en/3.0.x/" target="_blank" rel="noreferrer">
Jinja2
</a>
{activeGroup === 'slack' && ', Slack markdown'}

View file

@ -7,7 +7,6 @@ import styles from 'components/Tag/Tag.module.css';
interface TagProps {
color: string;
className?: string;
children?: any
}
const cx = cn.bind(styles);

View file

@ -81,7 +81,7 @@ const ChannelFilterForm = observer((props: ChannelFilterFormProps) => {
description={
<>
Use{' '}
<a href="https://regex101.com/" target="_blank">
<a href="https://regex101.com/" target="_blank" rel="noreferrer">
python style
</a>{' '}
regex to filter incidents based on a expression

View file

@ -102,7 +102,7 @@ const DefaultPageLayout: FC<DefaultPageLayoutProps> = observer((props) => {
{`Current plugin version: ${plugin.version}, current engine version: ${store.backendVersion}`}
<br />
Please see{' '}
<a href={'https://grafana.com/docs/oncall/latest/open-source/#update-grafana-oncall-oss'} target="_blank">
<a href={'https://grafana.com/docs/oncall/latest/open-source/#update-grafana-oncall-oss'} target="_blank" rel="noreferrer">
the update instructions
</a>
.

View file

@ -107,7 +107,7 @@ const HeartbeatForm = observer(({ alertReceveChannelId, onUpdate }: HeartBeatMod
<p>
<Text>
Use the following unique Grafana link to send GET and POST requests:{' '}
<a href={heartbeat?.link} target="_blank">
<a href={heartbeat?.link} target="_blank" rel="noreferrer">
{heartbeat?.link}
</a>
</Text>

View file

@ -250,7 +250,7 @@ export const PluginConfigPage = (props: Props) => {
<VerticalGroup>
<Text type="secondary">
Run hobby, dev or production backend:{' '}
<a href="https://github.com/grafana/oncall#getting-started" target="_blank">
<a href="https://github.com/grafana/oncall#getting-started" target="_blank" rel="noreferrer">
<Text type="link">getting started.</Text>
</a>
</Text>
@ -259,15 +259,15 @@ export const PluginConfigPage = (props: Props) => {
<Text type="secondary">
Need help?
<br />- Talk to the OnCall team in the #grafana-oncall channel at{' '}
<a href="https://slack.grafana.com/" target="_blank">
<a href="https://slack.grafana.com/" target="_blank" rel="noreferrer">
<Text type="link">Slack</Text>
</a>
<br />- Ask questions at{' '}
<a href="https://github.com/grafana/oncall/discussions/categories/q-a" target="_blank">
<a href="https://github.com/grafana/oncall/discussions/categories/q-a" target="_blank" rel="noreferrer">
<Text type="link">GitHub Discussions</Text>
</a>{' '}
or file bugs at{' '}
<a href="https://github.com/grafana/oncall/issues" target="_blank">
<a href="https://github.com/grafana/oncall/issues" target="_blank" rel="noreferrer">
<Text type="link">GitHub Issues</Text>
</a>
</Text>
@ -285,7 +285,7 @@ Seek for such a line: “Your invite token: <<LONG TOKEN>> , use it in the Graf
>
<>
<Input id="onCallInvitationToken" onChange={handleInvitationTokenChange} />
<a href="https://github.com/grafana/oncall/blob/dev/DEVELOPER.md#frontend-setup" target="_blank">
<a href="https://github.com/grafana/oncall/blob/dev/DEVELOPER.md#frontend-setup" target="_blank" rel="noreferrer">
<Text size="small" type="link">
How to re-issue the invite token?
</Text>

View file

@ -122,7 +122,7 @@ const TelegramModal = (props: TelegramModalProps) => {
<div className={cx('telegram-instruction-container')}>
<Text>
5. Click{' '}
<a className={cx('telegram-bot')} href={botLink} target="_blank">
<a className={cx('telegram-bot')} href={botLink} target="_blank" rel="noreferrer">
{botLink}
</a>{' '}
to add the OnCall bot to your contacts. Add the bot to your channel as an Admin. Allow it to{' '}

View file

@ -37,7 +37,7 @@ const TelegramInfo = observer((props: TelegramInfoProps) => {
<>
{telegramConfigured || !store.hasFeature(AppFeature.LiveSettings) ? (
<VerticalGroup>
<a href={`${botLink}/?start=${verificationCode}`} target="_blank">
<a href={`${botLink}/?start=${verificationCode}`} target="_blank" rel="noreferrer">
<Button size="sm" fill="outline">
Connect automatically
</Button>
@ -46,7 +46,7 @@ const TelegramInfo = observer((props: TelegramInfoProps) => {
<HorizontalGroup>
<Text>
1) Go to{' '}
<a className={cx('verification-code')} href={botLink} target="_blank">
<a className={cx('verification-code')} href={botLink} target="_blank" rel="noreferrer">
{botLink}
</a>
</Text>

View file

@ -296,7 +296,7 @@ class IncidentPage extends React.Component<IncidentPageProps, IncidentPageState>
Copy Link
</Button>
</CopyToClipboard>
<a href={incident.permalink} target="_blank">
<a href={incident.permalink} target="_blank" rel="noreferrer">
<Button variant="primary" size="sm" icon="slack">
View in Slack
</Button>

View file

@ -91,7 +91,7 @@ class MigrationToolPage extends React.Component<MigrationToolProps, MigrationToo
<ol>
<li>
Ask all users from your Amixr.IO workspace to{' '}
<a href="https://grafana.com/auth/sign-up/create-user" target="_blank">
<a href="https://grafana.com/auth/sign-up/create-user" target="_blank" rel="noreferrer">
sign up
</a>{' '}
in the Grafana Cloud.
@ -101,7 +101,7 @@ class MigrationToolPage extends React.Component<MigrationToolProps, MigrationToo
</p>
<p>
For any technical assistance please reach out to our team in{' '}
<a href="https://slack.grafana.com/" target="_blank">
<a href="https://slack.grafana.com/" target="_blank" rel="noreferrer">
Grafana Slack channel #grafana-oncall
</a>
. Well be happy to give you a hand and help you with migration on a call.
@ -112,13 +112,13 @@ class MigrationToolPage extends React.Component<MigrationToolProps, MigrationToo
<ul>
<li>
Matvey Kukuy (ex-CEO of Amixr):{' '}
<a href="mailto:matvey.kukuy@grafana.com" target="_blank">
<a href="mailto:matvey.kukuy@grafana.com" target="_blank" rel="noreferrer">
matvey.kukuy@grafana.com
</a>
</li>
<li>
Ildar Iskhakov (ex-CTO of Amixr):{' '}
<a href="mailto:ildar.iskhakov@grafana.com" target="_blank">
<a href="mailto:ildar.iskhakov@grafana.com" target="_blank" rel="noreferrer">
ildar.iskhakov@grafana.com
</a>
</li>