Skip to content

Commit

Permalink
Turn on 'object-shorthand' rule
Browse files Browse the repository at this point in the history
  • Loading branch information
darthtrevino committed Jan 25, 2017
1 parent 6c63d93 commit 1c89429
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 13 deletions.
1 change: 0 additions & 1 deletion examples/.eslintrc
Expand Up @@ -6,7 +6,6 @@
"import/prefer-default-export": "off",
"max-len": "off",
"no-param-reassign": "off",
"object-shorthand": "off",
"prefer-template": "off",
"quote-props": "off",
"react/forbid-prop-types": "off",
Expand Down
5 changes: 1 addition & 4 deletions examples/02 Drag Around/Custom Drag Layer/Container.js
Expand Up @@ -53,10 +53,7 @@ export default class Container extends Component {
this.setState(update(this.state, {
boxes: {
[id]: {
$merge: {
left: left,
top: top
}
$merge: { left, top }
}
}
}));
Expand Down
Expand Up @@ -34,7 +34,7 @@ function getItemStyles(props) {

const transform = `translate(${x}px, ${y}px)`;
return {
transform: transform,
transform,
WebkitTransform: transform
};
}
Expand Down
2 changes: 1 addition & 1 deletion examples/02 Drag Around/Custom Drag Layer/DraggableBox.js
Expand Up @@ -18,7 +18,7 @@ function getStyles(props) {

return {
position: 'absolute',
transform: transform,
transform,
WebkitTransform: transform,
// IE fallback: hide the real node using CSS when dragging
// because IE will ignore our custom "empty image" drag preview.
Expand Down
5 changes: 1 addition & 4 deletions examples/02 Drag Around/Naive/Container.js
Expand Up @@ -47,10 +47,7 @@ export default class Container extends Component {
this.setState(update(this.state, {
boxes: {
[id]: {
$merge: {
left: left,
top: top
}
$merge: { left, top }
}
}
}));
Expand Down
4 changes: 2 additions & 2 deletions examples/03 Nesting/Drop Targets/Dustbin.js
Expand Up @@ -8,7 +8,7 @@ function getStyle(backgroundColor) {
minHeight: '8rem',
minWidth: '8rem',
color: 'white',
backgroundColor: backgroundColor,
backgroundColor,
padding: '2rem',
paddingTop: '1rem',
margin: '1rem',
Expand All @@ -27,7 +27,7 @@ const boxTarget = {

component.setState({
hasDropped: true,
hasDroppedOnChild: hasDroppedOnChild
hasDroppedOnChild
});
}
};
Expand Down

0 comments on commit 1c89429

Please sign in to comment.