Skip to content

Commit 54dfeb2

Browse files
author
Ives van Hoorne
committed
Prettify everything
1 parent fe06fa6 commit 54dfeb2

File tree

236 files changed

+1256
-1236
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+1256
-1236
lines changed

package.json

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -170,18 +170,9 @@
170170
"precommit": "lint-staged"
171171
},
172172
"lint-staged": {
173-
"*.js": [
174-
"prettier --write --single-quote --trailing-comma none",
175-
"git add"
176-
],
177-
"*.css": [
178-
"prettier --write --single-quote --trailing-comma none",
179-
"git add"
180-
],
181-
"*.json": [
182-
"prettier --write --single-quote --trailing-comma none",
183-
"git add"
184-
]
173+
"*.js": ["prettier --write", "git add"],
174+
"*.css": ["prettier --write", "git add"],
175+
"*.json": ["prettier --write", "git add"]
185176
},
186177
"jest": {
187178
"rootDir": "src",

src/app/components/HeaderSearchBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const Input = styled.input`
3838
const StyledSearchIcon = styled(SearchIcon)`
3939
position: absolute;
4040
right: 0.5em;
41-
font-size: .875em;
41+
font-size: 0.875em;
4242
`;
4343

4444
export default class HeaderSearchBar extends React.PureComponent {

src/app/components/HoverMenu.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ export default class HoverMenu extends React.PureComponent {
5252

5353
render() {
5454
const { children } = this.props;
55-
return (
56-
<div ref={this.setOnclickListener}>
57-
{children}
58-
</div>
59-
);
55+
return <div ref={this.setOnclickListener}>{children}</div>;
6056
}
6157
}

src/app/components/Loading.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ const LogoContainer = styled.div`
1313
animation-duration: 800ms;
1414
`;
1515

16-
export default () =>
16+
export default () => (
1717
<Centered vertical horizontal>
1818
<LogoContainer>
1919
<Logo width={490} height={490} />
2020
</LogoContainer>
21-
</Centered>;
21+
</Centered>
22+
);

src/app/components/Logo.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ export default ({
44
width = 35,
55
height = 35,
66
className,
7-
}: { width: number, height: number, className: ?string }) => (
7+
}: {
8+
width: number,
9+
height: number,
10+
className: ?string,
11+
}) => (
812
<svg
913
x="0px"
1014
y="0px"

src/app/components/Preference/PreferenceDropdown.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ export default class PreferenceInput extends React.PureComponent {
2121
const { value, options } = this.props;
2222
return (
2323
<Select onChange={this.handleChange} value={value}>
24-
{options.map(op =>
25-
<option key={op}>
26-
{op}
27-
</option>,
28-
)}
24+
{options.map(op => <option key={op}>{op}</option>)}
2925
</Select>
3026
);
3127
}

src/app/components/Preference/PreferenceNumber.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import styled from 'styled-components';
33

44
import Input from 'app/components/Input';
55

6-
const StyledInput = styled(Input)`
7-
text-align: center;
8-
`;
6+
const StyledInput = styled(Input)`text-align: center;`;
97

108
type Props = {
119
value: boolean,

src/app/components/Preference/index.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,18 @@ export default class Preference extends React.Component {
7171
render() {
7272
const { title, className, value, tooltip } = this.props;
7373

74-
const Title = tooltip
75-
? <Tooltip position="right" title={tooltip}>
76-
{title}
77-
</Tooltip>
78-
: <span>
79-
{title}
80-
</span>;
74+
const Title = tooltip ? (
75+
<Tooltip position="right" title={tooltip}>
76+
{title}
77+
</Tooltip>
78+
) : (
79+
<span>{title}</span>
80+
);
8181

8282
return (
8383
<Container className={className}>
8484
{Title}
85-
<div>
86-
{this.getOptionComponent(value)}
87-
</div>
85+
<div>{this.getOptionComponent(value)}</div>
8886
</Container>
8987
);
9088
}

src/app/components/Stat/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const Number = styled.div`
2424

2525
const Property = styled.div`
2626
font-weight: 400;
27-
font-size: .875em;
27+
font-size: 0.875em;
2828
color: rgba(255, 255, 255, 0.5);
2929
text-transform: uppercase;
3030
margin-bottom: 0.4rem;

src/app/components/Switch.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Container = styled.div`
1515
background-color: ${getColor};
1616
width: ${({ small }) => (small ? 3 : 3.5)}rem;
1717
color: rgba(0, 0, 0, 0.5);
18-
border: 1px solid rgba(0, 0, 0, .1);
18+
border: 1px solid rgba(0, 0, 0, 0.1);
1919
padding: 0.5rem;
2020
height: ${props => (props.small ? 20 : 26)}px;
2121
box-sizing: border-box;
@@ -61,7 +61,7 @@ export default ({
6161
secondary = false,
6262
offMode = false,
6363
small = false,
64-
}: Props) =>
64+
}: Props) => (
6565
<Container
6666
small={small}
6767
secondary={secondary}
@@ -70,4 +70,5 @@ export default ({
7070
right={right}
7171
>
7272
<Dot small={small} right={right} />
73-
</Container>;
73+
</Container>
74+
);

0 commit comments

Comments
 (0)