Skip to content

Commit

Permalink
Update eslint-config-airbnb to the latest version 馃殌 (#257)
Browse files Browse the repository at this point in the history
* fix(package): update eslint-config-airbnb to version 14.0.0

https://greenkeeper.io/

* Comply with react/require-default-props rule
  • Loading branch information
greenkeeper[bot] authored and ovidiuch committed Jan 14, 2017
1 parent f63c5ce commit e979b83
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 7 deletions.
8 changes: 8 additions & 0 deletions examples/flatris/src/components/FlatrisGame.jsx
Expand Up @@ -241,6 +241,14 @@ FlatrisGame.propTypes = {
onDisableAcceleration: React.PropTypes.func.isRequired,
};

FlatrisGame.defaultProps = {
nextTetrimino: null,
grid: null,
activeTetrimino: null,
activeTetriminoGrid: null,
activeTetriminoPosition: null,
};

const mapStateToProps = state => state;
const mapDispatchToProps = dispatch => ({
onLoad: () => dispatch(load()),
Expand Down
4 changes: 4 additions & 0 deletions examples/flatris/src/components/GamePanel.jsx
Expand Up @@ -93,4 +93,8 @@ GamePanel.propTypes = {
onResume: React.PropTypes.func.isRequired,
};

GamePanel.defaultProps = {
nextTetrimino: null,
};

module.exports = GamePanel;
6 changes: 6 additions & 0 deletions examples/flatris/src/components/Well.jsx
Expand Up @@ -81,4 +81,10 @@ Well.propTypes = {
}),
};

Well.defaultProps = {
activeTetrimino: null,
activeTetriminoGrid: null,
activeTetriminoPosition: null,
};

export default Well;
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -34,11 +34,11 @@
"coveralls": "^2.11.12",
"css-loader": "^0.26.1",
"enzyme": "^2.4.1",
"eslint": "^3.7.1",
"eslint-config-airbnb": "^13.0.0",
"eslint": "^3.13.1",
"eslint-config-airbnb": "^14.0.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.4.0",
"eslint-plugin-jsx-a11y": "^3.0.2",
"eslint-plugin-react": "^6.9.0",
"glob": "^7.1.1",
"inject-loader": "^2.0.1",
"jest": "^18.1.0",
Expand Down
Expand Up @@ -39,13 +39,13 @@ module.exports = React.createClass({
displayName: 'ComponentPlayground',

propTypes: {
fixtures: React.PropTypes.object.isRequired,
loaderUri: React.PropTypes.string.isRequired,
component: React.PropTypes.string,
editor: React.PropTypes.bool,
fixture: React.PropTypes.string,
fixtures: React.PropTypes.object.isRequired,
fullScreen: React.PropTypes.bool,
router: React.PropTypes.object,
loaderUri: React.PropTypes.string.isRequired,
router: React.PropTypes.object.isRequired,
},

mixins: [ComponentTree.Mixin],
Expand Down Expand Up @@ -102,7 +102,9 @@ module.exports = React.createClass({

getDefaultProps() {
return {
component: null,
editor: false,
fixture: null,
fullScreen: false,
proxies: [],
};
Expand Down

0 comments on commit e979b83

Please sign in to comment.