From e979b833ab8bf13547fd3a65365a00d1d92cca1d Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Sat, 14 Jan 2017 19:26:05 +0200 Subject: [PATCH] =?UTF-8?q?Update=20eslint-config-airbnb=20to=20the=20late?= =?UTF-8?q?st=20version=20=F0=9F=9A=80=20(#257)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(package): update eslint-config-airbnb to version 14.0.0 https://greenkeeper.io/ * Comply with react/require-default-props rule --- examples/flatris/src/components/FlatrisGame.jsx | 8 ++++++++ examples/flatris/src/components/GamePanel.jsx | 4 ++++ examples/flatris/src/components/Well.jsx | 6 ++++++ package.json | 8 ++++---- .../src/components/component-playground.jsx | 8 +++++--- 5 files changed, 27 insertions(+), 7 deletions(-) diff --git a/examples/flatris/src/components/FlatrisGame.jsx b/examples/flatris/src/components/FlatrisGame.jsx index a3b1067e8c..48bf036c27 100644 --- a/examples/flatris/src/components/FlatrisGame.jsx +++ b/examples/flatris/src/components/FlatrisGame.jsx @@ -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()), diff --git a/examples/flatris/src/components/GamePanel.jsx b/examples/flatris/src/components/GamePanel.jsx index 3f6f197f9c..c6e3bdf8b2 100644 --- a/examples/flatris/src/components/GamePanel.jsx +++ b/examples/flatris/src/components/GamePanel.jsx @@ -93,4 +93,8 @@ GamePanel.propTypes = { onResume: React.PropTypes.func.isRequired, }; +GamePanel.defaultProps = { + nextTetrimino: null, +}; + module.exports = GamePanel; diff --git a/examples/flatris/src/components/Well.jsx b/examples/flatris/src/components/Well.jsx index ee507d6ee8..adb279a78e 100644 --- a/examples/flatris/src/components/Well.jsx +++ b/examples/flatris/src/components/Well.jsx @@ -81,4 +81,10 @@ Well.propTypes = { }), }; +Well.defaultProps = { + activeTetrimino: null, + activeTetriminoGrid: null, + activeTetriminoPosition: null, +}; + export default Well; diff --git a/package.json b/package.json index 90ca1835fe..5f00ab9d33 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/react-component-playground/src/components/component-playground.jsx b/packages/react-component-playground/src/components/component-playground.jsx index dcd951503f..f52b2034b7 100644 --- a/packages/react-component-playground/src/components/component-playground.jsx +++ b/packages/react-component-playground/src/components/component-playground.jsx @@ -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], @@ -102,7 +102,9 @@ module.exports = React.createClass({ getDefaultProps() { return { + component: null, editor: false, + fixture: null, fullScreen: false, proxies: [], };