Skip to content

Commit

Permalink
Remove unnecessary 'eslint' comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKVal committed Jul 23, 2015
1 parent 99e8cc1 commit 206a0a3
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let capitalize = str => str[0].toUpperCase() + str.substr(1);

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

const MARGINS = {
height: ['marginTop', 'marginBottom'],
Expand Down
2 changes: 1 addition & 1 deletion src/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import deprecationWarning from './utils/deprecationWarning';

class Input extends InputBase {
render() {
if (this.props.type === 'static') { // eslint-disable-line react/prop-types
if (this.props.type === 'static') {
deprecationWarning('Input type=static', 'StaticText');
return <FormControls.Static {...this.props} />;
}
Expand Down
2 changes: 1 addition & 1 deletion src/NavItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const NavItem = React.createClass({
title,
target,
children,
'aria-controls': ariaControls, // eslint-disable-line react/prop-types
'aria-controls': ariaControls,
...props } = this.props;
let classes = {
active,
Expand Down
4 changes: 3 additions & 1 deletion src/Overlay.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*eslint-disable object-shorthand, react/prop-types */
/* eslint react/prop-types: [2, {ignore: ["container", "containerPadding", "target", "placement", "children"] }] */
/* These properties are validated in 'Portal' and 'Position' components */

import React, { cloneElement } from 'react';
import Portal from './Portal';
import Position from './Position';
Expand Down
2 changes: 1 addition & 1 deletion src/PaginationButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const PaginationButton = React.createClass({

let {
className,
...anchorProps // eslint-disable-line object-shorthand
...anchorProps
} = this.props;

return (
Expand Down
1 change: 0 additions & 1 deletion src/Popover.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/no-multi-comp */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
Expand Down
1 change: 0 additions & 1 deletion src/Portal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*eslint-disable react/prop-types */
import React from 'react';
import CustomPropTypes from './utils/CustomPropTypes';
import domUtils from './utils/domUtils';
Expand Down
1 change: 0 additions & 1 deletion src/Tooltip.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/no-multi-comp */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
Expand Down
2 changes: 1 addition & 1 deletion src/utils/overlayPositionUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const utils = {
domUtils.getOffset(target) : domUtils.getPosition(target, container);

return {
...offset, // eslint-disable-line object-shorthand
...offset,
height: target.offsetHeight,
width: target.offsetWidth
};
Expand Down

0 comments on commit 206a0a3

Please sign in to comment.