Skip to content

Commit

Permalink
Merge pull request react-bootstrap#1360 from AlexKVal/deps
Browse files Browse the repository at this point in the history
Update dev.dependencies
  • Loading branch information
taion committed Sep 30, 2015
2 parents 9898f4c + dc12a2f commit 20ab3d9
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 39 deletions.
6 changes: 2 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@
"constructor-super": 2,
"comma-dangle": 0,
"eqeqeq": [2, "allow-null"],
"id-length": 0,
"one-var": [2, { "initialized": "never" }],
"prefer-const": 0,
"key-spacing": 0,
"no-eq-null": 0,
"no-param-reassign": 0,
"no-this-before-super": 2,
"no-undef": 2,
"babel/object-shorthand": 2,
"react/jsx-boolean-value": [2, "never"],
"react/jsx-boolean-value": 2,
"react/jsx-no-duplicate-props": 2,
"react/prop-types": [2, { "ignore": [ "children", "className", "style" ] }],
"react/sort-comp": 0
Expand Down
2 changes: 1 addition & 1 deletion docs/src/Samples.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint no-path-concat: 0, no-var: 0 */
/* eslint no-path-concat: 0, no-var: 0, key-spacing: 0 */

export default {
Collapse: require('fs').readFileSync(__dirname + '/../examples/Collapse.js', 'utf8'),
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
"child-process-promise": "^1.1.0",
"codemirror": "^5.5.0",
"colors": "^1.1.2",
"css-loader": "^0.18.0",
"css-loader": "^0.19.0",
"es5-shim": "^4.1.10",
"eslint": "1.4.3",
"eslint-config-airbnb": "0.0.8",
"eslint": "^1.5.1",
"eslint-config-airbnb": "^0.1.0",
"eslint-plugin-babel": "^2.0.0",
"eslint-plugin-lodash": "^0.1.3",
"eslint-plugin-mocha": "^0.5.1",
"eslint-plugin-react": "3.3.2",
"eslint-plugin-mocha": "^1.0.0",
"eslint-plugin-react": "^3.4.2",
"express": "^4.13.1",
"extract-text-webpack-plugin": "^0.8.2",
"file-loader": "^0.8.4",
Expand All @@ -69,11 +69,11 @@
"glob": "^5.0.14",
"http-proxy": "^1.11.1",
"ip": "^1.0.1",
"isparta-loader": "^0.2.0",
"isparta-loader": "^1.0.0",
"json-loader": "^0.5.2",
"karma": "~0.13.3",
"karma-chrome-launcher": "~0.2.0",
"karma-cli": "0.1.0",
"karma-cli": "0.1.1",
"karma-coverage": "^0.5.0",
"karma-coveralls": "^1.1.2",
"karma-firefox-launcher": "~0.1.6",
Expand Down
2 changes: 1 addition & 1 deletion src/ButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const ButtonGroup = React.createClass({
mixins: [BootstrapMixin],

propTypes: {
vertical: React.PropTypes.bool,
vertical: React.PropTypes.bool,
justified: React.PropTypes.bool,
/**
* Display block buttons, only useful when used with the "vertical" prop.
Expand Down
2 changes: 1 addition & 1 deletion src/Collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let triggerBrowserReflow = node => node.offsetHeight;

const MARGINS = {
height: ['marginTop', 'marginBottom'],
width: ['marginLeft', 'marginRight']
width: ['marginLeft', 'marginRight']
};

function getDimensionValue(dimension, elem) {
Expand Down
2 changes: 1 addition & 1 deletion src/CollapsibleMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const CollapsibleMixin = {
// in dimension after initial display (such as an image loading)
node.style[dimension] = '';
this.setState({
collapsing:false
collapsing: false
});
};

Expand Down
2 changes: 1 addition & 1 deletion src/DropdownMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class DropdownMenu extends React.Component {
let {children, onSelect, pullRight, className, labelledBy, open, onClose, ...props} = this.props;

const items = ValidComponentChildren.map(children, child => {
let childProps = child.props || {};
let childProps = child.props || {};

return React.cloneElement(child, {
onKeyDown: createChainedFunction(childProps.onKeyDown, this.handleKeyDown),
Expand Down
2 changes: 1 addition & 1 deletion src/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Image = React.createClass({
};

return (
<img {...this.props} className={classNames(this.props.className, classes)} />
<img {...this.props} className={classNames(this.props.className, classes)} />
);
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ const Modal = React.createClass({
return {
dialogStyles: {
paddingRight: containerIsOverflowing && !modalIsOverflowing ? getScrollbarSize() : void 0,
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? getScrollbarSize() : void 0
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? getScrollbarSize() : void 0
}
};
}
Expand Down
8 changes: 4 additions & 4 deletions src/Tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ const Tab = React.createClass({
/**
* @private
*/
active: React.PropTypes.bool,
animation: React.PropTypes.bool,
active: React.PropTypes.bool,
animation: React.PropTypes.bool,
/**
* It is used by 'Tabs' - parent component
* @private
*/
onAnimateOutEnd: React.PropTypes.func,
disabled: React.PropTypes.bool,
title: React.PropTypes.node
disabled: React.PropTypes.bool,
title: React.PropTypes.node
},

getDefaultProps() {
Expand Down
3 changes: 1 addition & 2 deletions test/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@
"mocha"
],
"rules": {
"jsx-quotes": 0,
"no-console": 0,
"no-script-url": 0,
"no-unused-expressions": 0,
"padded-blocks": 0,
"react/jsx-boolean-value": 0,
"react/jsx-quotes": 0,
"react/no-multi-comp": 0,
"react/prop-types": 0,
"space-before-function-paren": 0,
"mocha/no-exclusive-tests": 2
}
}
20 changes: 10 additions & 10 deletions test/CollapsibleMixinSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('CollapsibleMixin', () => {
});

it('Should have collapsing class', () => {
instance.setProps({expanded:true});
instance.setProps({expanded: true});
let node = instance.getCollapsibleDOMNode();
assert.equal(node.className, 'collapsing');
});
Expand All @@ -86,14 +86,14 @@ describe('CollapsibleMixin', () => {
assert.equal(node.style.height, '0px');
};

instance.setProps({expanded:true});
instance.setProps({expanded: true});
});

it('Should set transition to height', () => {
let node = instance.getCollapsibleDOMNode();
assert.equal(node.styled, undefined);

instance.setProps({expanded:true});
instance.setProps({expanded: true});
assert.equal(node.style.height, '15px');
});

Expand All @@ -105,7 +105,7 @@ describe('CollapsibleMixin', () => {
done();
}, 100);
};
instance.setProps({expanded:true});
instance.setProps({expanded: true});
assert.ok(instance.state.collapsing);
});

Expand All @@ -121,7 +121,7 @@ describe('CollapsibleMixin', () => {
};

assert.equal(node.style.height, '');
instance.setProps({expanded:true});
instance.setProps({expanded: true});
assert.equal(node.style.height, '15px');
});
});
Expand All @@ -134,7 +134,7 @@ describe('CollapsibleMixin', () => {
});

it('Should have collapsing class', () => {
instance.setProps({expanded:false});
instance.setProps({expanded: false});
let node = instance.getCollapsibleDOMNode();
assert.equal(node.className, 'collapsing');
});
Expand All @@ -147,14 +147,14 @@ describe('CollapsibleMixin', () => {
};

assert.equal(node.style.height, '');
instance.setProps({expanded:false});
instance.setProps({expanded: false});
});

it('Should set transition to height', () => {
let node = instance.getCollapsibleDOMNode();
assert.equal(node.style.height, '');

instance.setProps({expanded:false});
instance.setProps({expanded: false});
assert.equal(node.style.height, '0px');
});

Expand All @@ -166,7 +166,7 @@ describe('CollapsibleMixin', () => {
done();
}, 100);
};
instance.setProps({expanded:false});
instance.setProps({expanded: false});
assert.ok(instance.state.collapsing);
});

Expand All @@ -182,7 +182,7 @@ describe('CollapsibleMixin', () => {
};

assert.equal(node.style.height, '');
instance.setProps({expanded:false});
instance.setProps({expanded: false});
assert.equal(node.style.height, '0px');
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/DropdownSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ describe('Dropdown', () => {
};
}

render () {
render() {
return (
<div>
<button className='outer-button'
Expand Down
3 changes: 1 addition & 2 deletions test/FormGroupSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ describe('FormGroup', () => {
}, {
className: 'custom-group',
props: { groupClassName: 'custom-group' }
}
].forEach( testCase => {
}].forEach( testCase => {
it(`does not render ${testCase.className} class`, () => {
let instance = ReactTestUtils.renderIntoDocument(
<FormGroup>
Expand Down
2 changes: 1 addition & 1 deletion test/NavDropdownSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('NavDropdown', () => {
};
}

render () {
render() {
return (
<div>
<button className='outer-button'
Expand Down
2 changes: 1 addition & 1 deletion test/PanelSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ describe('Panel', () => {
});

it('Should call onSelect handler', (done) => {
function handleSelect (e, key) {
function handleSelect(e, key) {
assert.equal(key, '1');
done();
}
Expand Down

0 comments on commit 20ab3d9

Please sign in to comment.