Skip to content

Commit

Permalink
Impose 'spaced-comment'
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKVal committed Sep 3, 2015
1 parent 6c107d1 commit 1bec4f0
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 14 deletions.
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"react/jsx-no-duplicate-props": 2,
"react/prop-types": [2, { "ignore": [ "children", "className", "style" ] }],
"react/sort-comp": 0,
"spaced-comment": 0,
"vars-on-top": 0
}
}
4 changes: 2 additions & 2 deletions docs/generate-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function applyPropDoclets(props, propName) {


export default function generate(destination, options = { mixins: true, inferComponent: true }) {
return globp(__dirname + '/../src/**/*.js') //eslint-disable-line no-path-concat
return globp(__dirname + '/../src/**/*.js') // eslint-disable-line no-path-concat
.then( files => {
let results = files.map(
filename => fsp.readFile(filename).then(content => metadata(content, options)) );
Expand All @@ -96,7 +96,7 @@ export default function generate(destination, options = { mixins: true, inferCom
});
});

//combine all the component metadata into one large object
// combine all the component metadata into one large object
result = { ...result, ...components };
});

Expand Down
2 changes: 1 addition & 1 deletion src/ButtonInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ButtonInput.defaultProps = {
ButtonInput.propTypes = {
type: React.PropTypes.oneOf(ButtonInput.types),
bsStyle() {
//defer to Button propTypes of bsStyle
// defer to Button propTypes of bsStyle
return null;
},
children: childrenValueValidation,
Expand Down
2 changes: 1 addition & 1 deletion src/Collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Collapse extends React.Component {
: this.props.dimension;
}

//for testing
// for testing
_getTransitionInstance() {
return this.refs.transition;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Modal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*eslint-disable react/prop-types */
/* eslint-disable react/prop-types */
import React, { cloneElement } from 'react';
import classNames from 'classnames';
import domUtils from './utils/domUtils';
Expand Down Expand Up @@ -242,7 +242,7 @@ const Modal = React.createClass({

this.refs.dialog = ref;

//maintains backwards compat with older component breakdown
// maintains backwards compat with older component breakdown
if (!this.props.backdrop) {
this.refs.modal = ref;
}
Expand Down Expand Up @@ -273,7 +273,7 @@ const Modal = React.createClass({
let { animation } = this.props;

if (prevProps.show && !this.props.show && !animation) {
//otherwise handleHidden will call this.
// otherwise handleHidden will call this.
this.onHide();
} else if (!prevProps.show && this.props.show) {
this.onShow();
Expand Down
2 changes: 1 addition & 1 deletion src/ModalDialog.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*eslint-disable react/prop-types */
/* eslint-disable react/prop-types */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
Expand Down
2 changes: 1 addition & 1 deletion src/ModalHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ModalHeader extends React.Component {
}
}

//used in liue of parent contexts right now to auto wire the close button
// used in liue of parent contexts right now to auto wire the close button
ModalHeader.__isModalHeader = true;

ModalHeader.propTypes = {
Expand Down
4 changes: 2 additions & 2 deletions src/OverlayTrigger.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*eslint-disable react/prop-types */
/* eslint-disable react/prop-types */
import React, { cloneElement } from 'react';
import contains from 'dom-helpers/query/contains';
import createChainedFunction from './utils/createChainedFunction';
Expand Down Expand Up @@ -78,7 +78,7 @@ const OverlayTrigger = React.createClass({
*/
onMouseLeave: React.PropTypes.func,

//override specific overlay props
// override specific overlay props
/**
* @private
*/
Expand Down
1 change: 0 additions & 1 deletion src/SplitButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class SplitButton extends React.Component {
}

SplitButton.propTypes = {
//dropup: React.PropTypes.bool,
...Dropdown.propTypes,
...BootstrapMixin.propTypes,

Expand Down
2 changes: 1 addition & 1 deletion src/utils/domUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function ownerWindow(componentOrElement) {
return getOwnerWindow(doc);
}

//TODO remove in 0.26
// TODO remove in 0.26
function getComputedStyles(elem) {
return ownerDocument(elem).defaultView.getComputedStyle(elem, null);
}
Expand Down

0 comments on commit 1bec4f0

Please sign in to comment.