Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 51a08df

Browse files
committed
Fix remaining lint errors
1 parent cfd48bd commit 51a08df

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/body.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ export default class Body extends Component {
7979
constructor(props, context) {
8080
super(props);
8181

82-
const { args, children, shape, ...options } = props;
82+
const { args, shape, ...options } = props;
8383

8484
this.body = Bodies[shape](...args, options);
8585
World.addBody(context.engine.world, this.body);
8686
}
8787

8888
componentWillReceiveProps(nextProps) {
89-
const { args, children, shape, ...options } = nextProps;
89+
const { ...options } = nextProps;
9090

9191
Object.keys(options).forEach((option) => {
9292
if (option in this.body && this.props[option] !== nextProps[option]) {

src/native/components/body.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ export default class Body extends Component {
7979
constructor(props, context) {
8080
super(props);
8181

82-
const { args, children, shape, ...options } = props;
82+
const { args, shape, ...options } = props;
8383

8484
this.body = Bodies[shape](...args, options);
8585
World.addBody(context.engine.world, this.body);
8686
}
8787

8888
componentWillReceiveProps(nextProps) {
89-
const { args, children, shape, ...options } = nextProps;
89+
const { ...options } = nextProps;
9090

9191
Object.keys(options).forEach((option) => {
9292
if (option in this.body && this.props[option] !== nextProps[option]) {

src/native/components/tile-map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ export default class TileMap extends Component {
88
static propTypes = {
99
columns: PropTypes.number,
1010
layers: PropTypes.array,
11-
sourceWidth: PropTypes.number.isRequired,
1211
renderTile: PropTypes.func,
1312
rows: PropTypes.number,
1413
scale: PropTypes.number,
14+
sourceWidth: PropTypes.number.isRequired,
1515
src: PropTypes.number,
1616
style: PropTypes.object,
1717
tileSize: PropTypes.number,

0 commit comments

Comments
 (0)