Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
fix(Picky): Prettier issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidurber committed Oct 14, 2018
1 parent f75e0fe commit 0c4fbc3
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Filter extends Component {

Filter.propTypes = {
onFilterChange: PropTypes.func.isRequired,
tabIndex: PropTypes.number
tabIndex: PropTypes.number,
};

export default Filter;
6 changes: 3 additions & 3 deletions src/Option.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Option = props => {
selectValue,
style,
multiple,
tabIndex
tabIndex,
} = props;
const cssClass = isSelected ? 'option selected' : 'option';
const body = isDataObject(item, labelKey, valueKey) ? item[labelKey] : item;
Expand Down Expand Up @@ -54,11 +54,11 @@ Option.propTypes = {
item: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number,
PropTypes.object
PropTypes.object,
]).isRequired,
style: PropTypes.object,
selectValue: PropTypes.func.isRequired,
multiple: PropTypes.bool,
tabIndex: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
tabIndex: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
export default Option;
8 changes: 4 additions & 4 deletions src/Placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Placeholder extends React.PureComponent {
labelKey,
manySelectedPlaceholder,
allSelectedPlaceholder,
allSelected
allSelected,
} = this.props;

let message = '';
Expand Down Expand Up @@ -79,23 +79,23 @@ Placeholder.defaultProps = {
placeholder: 'None selected',
allSelectedPlaceholder: '%s selected',
manySelectedPlaceholder: '%s selected',
allSelected: false
allSelected: false,
};
Placeholder.propTypes = {
placeholder: PropTypes.string,
value: PropTypes.oneOfType([
PropTypes.array,
PropTypes.string,
PropTypes.number,
PropTypes.object
PropTypes.object,
]),
numberDisplayed: PropTypes.number,
multiple: PropTypes.bool,
valueKey: PropTypes.string,
labelKey: PropTypes.string,
manySelectedPlaceholder: PropTypes.string,
allSelectedPlaceholder: PropTypes.string,
allSelected: PropTypes.bool
allSelected: PropTypes.bool,
};

export default Placeholder;
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if (!Array.prototype.findIndex) {

// 7. Return -1.
return -1;
}
},
});
}

Expand Down
2 changes: 1 addition & 1 deletion tests/helpers/setup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//Polyfill
window.requestAnimationFrame = function (callback) {
window.requestAnimationFrame = function(callback) {
setTimeout(callback, 0);
return 0;
};
Expand Down
4 changes: 2 additions & 2 deletions tests/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
isDataObject,
hasItem,
keyExtractor,
hasItemIndex
hasItemIndex,
} from '../src/lib/utils';
describe('Utils', () => {
describe('isDataObject', () => {
Expand All @@ -23,7 +23,7 @@ describe('Utils', () => {
all = Array.from(Array(10).keys()).map(v => {
return {
id: v + 1,
name: `Label ${v + 1}`
name: `Label ${v + 1}`,
};
});
});
Expand Down

0 comments on commit 0c4fbc3

Please sign in to comment.