Skip to content

Commit 206a0a3

Browse files
committed
Remove unnecessary 'eslint' comments
1 parent 99e8cc1 commit 206a0a3

9 files changed

+8
-9
lines changed

src/Collapse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let capitalize = str => str[0].toUpperCase() + str.substr(1);
77

88
// reading a dimension prop will cause the browser to recalculate,
99
// which will let our animations work
10-
let triggerBrowserReflow = node => node.offsetHeight; //eslint-disable-line no-unused-expressions
10+
let triggerBrowserReflow = node => node.offsetHeight;
1111

1212
const MARGINS = {
1313
height: ['marginTop', 'marginBottom'],

src/Input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import deprecationWarning from './utils/deprecationWarning';
55

66
class Input extends InputBase {
77
render() {
8-
if (this.props.type === 'static') { // eslint-disable-line react/prop-types
8+
if (this.props.type === 'static') {
99
deprecationWarning('Input type=static', 'StaticText');
1010
return <FormControls.Static {...this.props} />;
1111
}

src/NavItem.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const NavItem = React.createClass({
2929
title,
3030
target,
3131
children,
32-
'aria-controls': ariaControls, // eslint-disable-line react/prop-types
32+
'aria-controls': ariaControls,
3333
...props } = this.props;
3434
let classes = {
3535
active,

src/Overlay.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
/*eslint-disable object-shorthand, react/prop-types */
1+
/* eslint react/prop-types: [2, {ignore: ["container", "containerPadding", "target", "placement", "children"] }] */
2+
/* These properties are validated in 'Portal' and 'Position' components */
3+
24
import React, { cloneElement } from 'react';
35
import Portal from './Portal';
46
import Position from './Position';

src/PaginationButton.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const PaginationButton = React.createClass({
4141

4242
let {
4343
className,
44-
...anchorProps // eslint-disable-line object-shorthand
44+
...anchorProps
4545
} = this.props;
4646

4747
return (

src/Popover.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable react/no-multi-comp */
21
import React from 'react';
32
import classNames from 'classnames';
43
import BootstrapMixin from './BootstrapMixin';

src/Portal.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*eslint-disable react/prop-types */
21
import React from 'react';
32
import CustomPropTypes from './utils/CustomPropTypes';
43
import domUtils from './utils/domUtils';

src/Tooltip.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable react/no-multi-comp */
21
import React from 'react';
32
import classNames from 'classnames';
43
import BootstrapMixin from './BootstrapMixin';

src/utils/overlayPositionUtils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const utils = {
2525
domUtils.getOffset(target) : domUtils.getPosition(target, container);
2626

2727
return {
28-
...offset, // eslint-disable-line object-shorthand
28+
...offset,
2929
height: target.offsetHeight,
3030
width: target.offsetWidth
3131
};

0 commit comments

Comments
 (0)