diff --git a/src/.prettierrc b/.prettierrc similarity index 100% rename from src/.prettierrc rename to .prettierrc diff --git a/.travis.yml b/.travis.yml index add36de2..90647c96 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,8 @@ script: # Output useful info for debugging. - node --version - yarn --version + # Make sure prettier has ran on all files. + - yarn format-check # Make sure we can actually build the examples. - yarn run build-examples # Run tests diff --git a/examples/app.js b/examples/app.js index 86e9b895..4c86904d 100644 --- a/examples/app.js +++ b/examples/app.js @@ -30,9 +30,9 @@ class HoverMessage extends React.Component { - {getState(this.state, 'button', ':hover') - ? {' '}Hovering! - : null} + {getState(this.state, 'button', ':hover') ? ( + Hovering! + ) : null} ); } @@ -42,7 +42,8 @@ HoverMessage = Radium(HoverMessage); // // Radium with ES7 decorator // -@Radium class TwoSquares extends React.Component { +@Radium +class TwoSquares extends React.Component { render() { return (