Skip to content

Commit df3b3e2

Browse files
committed
chore: disable eslint warning for href="#" attribute
1 parent 37be56a commit df3b3e2

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

src/views/Base/Breadcrumbs/Breadcrumbs.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@ class Breadcrumbs extends Component {
2121
<BreadcrumbItem active>Home</BreadcrumbItem>
2222
</Breadcrumb>
2323
<Breadcrumb>
24+
{/*eslint-disable-next-line*/}
2425
<BreadcrumbItem><a href="#">Home</a></BreadcrumbItem>
2526
<BreadcrumbItem active>Library</BreadcrumbItem>
2627
</Breadcrumb>
2728
<Breadcrumb>
29+
{/*eslint-disable-next-line*/}
2830
<BreadcrumbItem><a href="#">Home</a></BreadcrumbItem>
31+
{/* eslint-disable-next-line*/}
2932
<BreadcrumbItem><a href="#">Library</a></BreadcrumbItem>
3033
<BreadcrumbItem active>Data</BreadcrumbItem>
3134
</Breadcrumb>

src/views/Base/Cards/Cards.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,11 @@ class Cards extends Component {
388388
<CardHeader>
389389
Card actions
390390
<div className="card-header-actions">
391+
{/*eslint-disable-next-line*/}
391392
<a href="#" className="card-header-action btn btn-setting"><i className="icon-settings"></i></a>
393+
{/*eslint-disable-next-line*/}
392394
<a className="card-header-action btn btn-minimize" data-target="#collapseExample" onClick={this.toggle}><i className="icon-arrow-up"></i></a>
395+
{/*eslint-disable-next-line*/}
393396
<a className="card-header-action btn btn-close" onClick={this.toggleFade}><i className="icon-close"></i></a>
394397
</div>
395398
</CardHeader>

src/views/Base/Tooltips/Tooltips.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class Tooltips extends Component {
8282
</div>
8383
</CardHeader>
8484
<CardBody>
85+
{/*eslint-disable-next-line*/}
8586
<p>Somewhere in here is a <a href="#" id="TooltipExample">tooltip</a>.</p>
8687
<Tooltip placement="right" isOpen={this.state.tooltipOpen[0]} target="TooltipExample" toggle={() => {this.toggle(0);}}>
8788
Hello world!
@@ -94,6 +95,7 @@ class Tooltips extends Component {
9495
<small> disable autohide</small>
9596
</CardHeader>
9697
<CardBody>
98+
{/*eslint-disable-next-line*/}
9799
<p>Sometimes you need to allow users to select text within a <a href="#" id="DisabledAutoHideExample">tooltip</a>.</p>
98100
<Tooltip placement="top" isOpen={this.state.tooltipOpen[1]} autohide={false} target="DisabledAutoHideExample" toggle={() => {this.toggle(1);}}>
99101
Try to select this text!
@@ -117,6 +119,7 @@ class Tooltips extends Component {
117119
<small> uncontrolled</small>
118120
</CardHeader>
119121
<CardBody>
122+
{/*eslint-disable-next-line*/}
120123
<p>Somewhere in here is a <a href="#" id="UncontrolledTooltipExample">tooltip</a>.</p>
121124
<UncontrolledTooltip placement="right" target="UncontrolledTooltipExample">
122125
Hello world!
@@ -128,4 +131,4 @@ class Tooltips extends Component {
128131
}
129132
}
130133

131-
export default Tooltips;
134+
export default Tooltips;

src/views/Notifications/Alerts/Alerts.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,27 +66,35 @@ class Alerts extends Component {
6666
</CardHeader>
6767
<CardBody>
6868
<Alert color="primary">
69+
{/*eslint-disable-next-line*/}
6970
This is a primary alert with <a href="#" className="alert-link">an example link</a>. Give it a click if you like.
7071
</Alert>
7172
<Alert color="secondary">
73+
{/*eslint-disable-next-line*/}
7274
This is a secondary alert with <a href="#" className="alert-link">an example link</a>. Give it a click if you like.
7375
</Alert>
7476
<Alert color="success">
77+
{/*eslint-disable-next-line*/}
7578
This is a success alert with <a href="#" className="alert-link">an example link</a>. Give it a click if you like.
7679
</Alert>
7780
<Alert color="danger">
81+
{/*eslint-disable-next-line*/}
7882
This is a danger alert with <a href="#" className="alert-link">an example link</a>. Give it a click if you like.
7983
</Alert>
8084
<Alert color="warning">
85+
{/*eslint-disable-next-line*/}
8186
This is a warning alert with <a href="#" className="alert-link">an example link</a>. Give it a click if you like.
8287
</Alert>
8388
<Alert color="info">
89+
{/*eslint-disable-next-line*/}
8490
This is a info alert with <a href="#" className="alert-link">an example link</a>. Give it a click if you like.
8591
</Alert>
8692
<Alert color="light">
93+
{/*eslint-disable-next-line*/}
8794
This is a light alert with <a href="#" className="alert-link">an example link</a>. Give it a click if you like.
8895
</Alert>
8996
<Alert color="dark">
97+
{/*eslint-disable-next-line*/}
9098
This is a dark alert with <a href="#" className="alert-link">an example link</a>. Give it a click if you like.
9199
</Alert>
92100
</CardBody>

0 commit comments

Comments
 (0)