Skip to content

Commit

Permalink
[NO-TICKET] ESLint fixes (#833)
Browse files Browse the repository at this point in the history
* Lint fixes

* Update root_url path

* Add eslint-disable-next-line
  • Loading branch information
nichia authored Oct 1, 2020
1 parent dcff1a3 commit 571257e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const CodeSnippet = function (props) {
Code snippet
</summary>
<pre className="ds-u-margin-bottom--4 ds-u-overflow--auto">
{/* eslint-disable-next-line react/no-danger */}
<code dangerouslySetInnerHTML={{ __html: props.children }} />
</pre>
</details>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class Frame extends React.PureComponent {
className="frame__link"
href={this.props.src}
rel="nofollow"
// eslint-disable-next-line react/jsx-no-target-blank
target="_blank"
title="Open the rendered HTML in a new tab or window"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class HtmlExample extends React.PureComponent {
</h4>
<p
className="ds-u-margin-bottom--1 ds-u-margin-top--0 ds-u-color--muted"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: description }}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class PageHeader extends React.PureComponent {
<header className="ds-u-padding--3 ds-u-sm-padding--6 ds-u-display--block ds-u-fill--gray-lightest">
<h1
className="ds-display"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: this.props.header }}
id={this.props.reference}
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* global driver */
import { ROOT_URL } from '../../helpers/e2e/constants';
import { ROOT_URL } from '../helpers/e2e/constants';

import assertNoAxeViolations from '../../helpers/e2e/assertNoAxeViolations';
import { getElementById } from '../../helpers/e2e';
import assertNoAxeViolations from '../helpers/e2e/assertNoAxeViolations';
import { getElementById } from '../helpers/e2e';

const rootURL = `${ROOT_URL}/example/components.tooltip.react/`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,14 @@ used by utilities or layout grid

$theme-utility-breakpoints: (
'card': false,
// 160px
'card-lg': false,
// 240px
'mobile': false,
// 320px
'mobile-lg': true,
// 480px
'tablet': true,
// 640px
'tablet-lg': false,
// 800px
'desktop': true,
// 1024px
'desktop-lg': false,
// 1200px
'widescreen': false,
// 1400px
'card-lg': false,
'mobile': false,
'mobile-lg': true,
'tablet': true,
'tablet-lg': false,
'desktop': true,
'desktop-lg': false,
'widescreen': false,
);

/*
Expand Down

0 comments on commit 571257e

Please sign in to comment.