Skip to content

Commit a9d7c2a

Browse files
pass linting & prettier
1 parent 2eed94c commit a9d7c2a

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ ReactJS based Presentation Library
4444

4545
## FAQ
4646

47-
@TODO
47+
@TODO

bin/cli.js

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
const args = require('./args');
44
const actions = require('./actions');
5-
var path = require('path');
65

76
const main = () =>
87
Promise.resolve()

examples/JS/TestJS.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ const TestJs = () => (
1212
<Slide>
1313
<p> Slide 3! </p>
1414
<SlideElementWrapper elementNum={0}>
15-
<div>Hey, just one "animated" slide element here</div>
15+
<div>{`Hey, just one "animated" slide element here`}</div>
1616
</SlideElementWrapper>
1717
</Slide>
1818
<Slide>
19-
<p>I'm a static slide element that should always show</p>
20-
<p>This means that we don't need a SlideElementWrapper</p>
19+
<p>{`I'm a static slide element that should always show`}</p>
20+
<p>{`This means that we don't need a SlideElementWrapper`}</p>
2121
<SlideElementWrapper elementNum={0}>
2222
<p slide-element="true"> ZERO Slide 4 x 3! </p>
2323
</SlideElementWrapper>
@@ -27,7 +27,7 @@ const TestJs = () => (
2727
<SlideElementWrapper elementNum={2}>
2828
<p slide-element="true"> TWO Slide 4 x 3! </p>
2929
</SlideElementWrapper>
30-
<p>I'm also a static non-animated "slide element"!</p>
30+
<p>{`I'm also a static non-animated "slide element"!`}</p>
3131
</Slide>
3232
<div>HEY PHIL. YOU DOUBTED US???</div>
3333
</Deck>

examples/MDX/test-component.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import React from 'react';
2+
import PropTypes from 'prop-types';
23

34
const Test = ({ height }) => {
45
return <div style={{ height, width: '100%', backgroundColor: 'yellow' }} />;
56
};
67

8+
Test.propTypes = {
9+
height: PropTypes.number.isRequired
10+
};
11+
712
export default Test;

src/components/Deck.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ Deck.propTypes = {
108108
animationsWhenGoingBack: PropTypes.bool.isRequired,
109109
children: PropTypes.node.isRequired,
110110
keyboardControls: PropTypes.oneOf(['arrows', 'space']),
111-
loop: PropTypes.bool.isRequired
111+
loop: PropTypes.bool.isRequired,
112+
style: PropTypes.object
112113
};
113114

114115
Deck.defaultProps = {

src/components/SlideElementWrapper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { SlideContext } from '../hooks/useSlide';
1010
*
1111
* It is currently using useSpring but ideally we will be able to switch
1212
* to whatever react-spring hook a user desires!
13-
*
13+
*
1414
* Note: Immediate is a React-Spring property that we pass to the animations
1515
* essentially it skips animations.
1616
*/

0 commit comments

Comments
 (0)