Skip to content

Commit 1d9db11

Browse files
HaroenvCompuIves
authored andcommitted
chore(homepage): run prettier (codesandbox#1175)
this also fixes some surprisingly valid SVGs
1 parent 777261c commit 1d9db11

File tree

7 files changed

+10
-22
lines changed

7 files changed

+10
-22
lines changed

packages/homepage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"remove-styles": "rimraf public/styles.css",
4444
"start": "gatsby develop",
4545
"lint": "echo TODO && exit 0",
46-
"format": "prettier --trailing-comma es5 --no-semi --single-quote --write 'src/**/*.js'",
46+
"format": "prettier --trailing-comma es5 --single-quote --write 'src/**/*.js'",
4747
"test": "echo \"Todo: no test specified\" && exit 0"
4848
},
4949
"devDependencies": {

packages/homepage/src/screens/home/ExtraFeatures/CLI.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ import React from 'react';
33

44
export default () => (
55
<IconBase viewBox="0 0 256 256">
6-
<path d="M239.996,0h-224C-0.004,0,0,0,0,16v224c0,16,0,16,16,16h224c16.008,0,16.008,0,16-16V16
7-
C256,0,255.996,0,239.996,0z M214.577,228.592l-173.464-0.384c-14.081,0-13.55-0.51-13.55-12.575l0.141-175.596
8-
c0-11.937-0.51-12.706,13.571-12.706l173.3,0.014c14.081,0,13.425,0.769,13.425,12.706v175.965
9-
C228,227.954,228.658,228.592,214.577,228.592z" />
6+
<path d="M239.996,0h-224C-0.004,0,0,0,0,16v224c0,16,0,16,16,16h224c16.008,0,16.008,0,16-16V16 C256,0,255.996,0,239.996,0z M214.577,228.592l-173.464-0.384c-14.081,0-13.55-0.51-13.55-12.575l0.141-175.596 c0-11.937-0.51-12.706,13.571-12.706l173.3,0.014c14.081,0,13.425,0.769,13.425,12.706v175.965 C228,227.954,228.658,228.592,214.577,228.592z" />
107
<path d="M40.287,70.296V49.494l51.708,28.302V95.35l-51.708,28.38v-20.879l32.921-14.847l3.505-1.547l-3.447-1.547L40.287,70.296z" />
118
<path d="M159.831,131.727H93.785v-15.716h66.045V131.727z" />
129
</IconBase>

packages/homepage/src/screens/home/ExtraFeatures/ESLint.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ import React from 'react';
44
export default () => (
55
<IconBase viewBox="0 0 256 256">
66
<g>
7-
<path d="M128.179,218.256l-78.075-45.283l-0.179-90.256l77.896-44.973l78.075,45.283l0.179,90.256L128.179,218.256z M192,238.827
8-
L256,128L192,17.173H64L0,128l64,110.827H192z">
9-
<polygon points="125.698,188.77 73.13,158.281 73.01,97.511 125.457,67.23 178.025,97.719 178.145,158.489 " />
7+
<path d="M128.179,218.256l-78.075-45.283l-0.179-90.256l77.896-44.973l78.075,45.283l0.179,90.256L128.179,218.256z M192,238.827 L256,128L192,17.173H64L0,128l64,110.827H192z">
8+
<polygon points="125.698,188.77 73.13,158.281 73.01,97.511 125.457,67.23 178.025,97.719 178.145,158.489" />
109
</path>
1110
</g>
1211
</IconBase>

packages/homepage/src/screens/home/ExtraFeatures/Emmet.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import React from 'react';
33

44
export default () => (
55
<IconBase viewBox="0 0 256 256">
6-
<path d="M256,128c0,70.692-57.308,128-128,128S0,198.692,0,128S57.308,0,128,0S256,57.308,256,128z M180.112,157.639l-15.959-15.959
7-
l-14.005,54.392l-31.267-29.964L128,129.14l-35.827,9.608l-31.756-32.081l55.532-13.191L99.99,77.354L22.636,97.059l138.097,138.097
8-
L180.112,157.639z M187.603,128l18.673-77.408l-76.648,19.325l16.068,16.068l34.416-8.631l-9.228,34.687L187.603,128z" />;
6+
<path d="M256,128c0,70.692-57.308,128-128,128S0,198.692,0,128S57.308,0,128,0S256,57.308,256,128z M180.112,157.639l-15.959-15.959 l-14.005,54.392l-31.267-29.964L128,129.14l-35.827,9.608l-31.756-32.081l55.532-13.191L99.99,77.354L22.636,97.059l138.097,138.097 L180.112,157.639z M187.603,128l18.673-77.408l-76.648,19.325l16.068,16.068l34.416-8.631l-9.228,34.687L187.603,128z" />
7+
;
98
</IconBase>
109
);

packages/homepage/src/screens/home/ExtraFeatures/OpenSource.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import React from 'react';
44
export default () => (
55
<IconBase viewBox="0 0 256 256">
66
<g>
7-
<path d="M256,132.047c0-79.266-67.523-128-128-128S0,50.824,0,132.047c0,86.703,80.098,118.733,80.098,118.733
8-
s6.736,2.025,9.541-5.282c2.805-7.307,27.596-73.59,27.596-73.59s1.174-2.581-2.332-3.797c-8.335-2.89-25.264-14.731-25.264-36.065
9-
s18.593-38.361,37.774-38.361s38.948,13.505,38.948,38.361c0,26.618-23.707,35.462-26.785,36.583s-2.116,3.732-2.116,3.732
10-
s24.922,67.004,27.923,74.18c3.001,7.176,7.355,5.492,9.879,4.496C206.483,238.714,256,204.267,256,132.047z" />
7+
<path d="M256,132.047c0-79.266-67.523-128-128-128S0,50.824,0,132.047c0,86.703,80.098,118.733,80.098,118.733 s6.736,2.025,9.541-5.282c2.805-7.307,27.596-73.59,27.596-73.59s1.174-2.581-2.332-3.797c-8.335-2.89-25.264-14.731-25.264-36.065 s18.593-38.361,37.774-38.361s38.948,13.505,38.948,38.361c0,26.618-23.707,35.462-26.785,36.583s-2.116,3.732-2.116,3.732 s24.922,67.004,27.923,74.18c3.001,7.176,7.355,5.492,9.879,4.496C206.483,238.714,256,204.267,256,132.047z" />
118
</g>
129
</IconBase>
1310
);

packages/homepage/src/screens/home/ExtraFeatures/TypeScript.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ import React from 'react';
44
export default () => (
55
<IconBase viewBox="0 0 256 256">
66
<g>
7-
<path d="M0,0v256h256V0H0z M146,139h-32v96H90v-97H56v-20h90V139z M197.116,233.668c-33.31,0-42.916-23.953-42.916-23.953
8-
l19.212-11.353c0,0,8.151,14.305,22.622,14.305c14.472,0,16.801-7.319,16.801-11.478c0-4.159,0.832-9.149-22.955-18.464
9-
c-23.787-9.315-28.611-22.29-28.611-36.762c0-14.472,11.644-30.773,34.266-30.773c22.623,0,30.94,12.642,34.266,18.63
10-
c-3.327,2.661-17.965,12.309-17.965,12.309s-5.822-10.147-16.302-10.147c-10.48,0-10.812,8.816-10.812,10.313
11-
c0,2.862-0.366,9.852,20.301,16.884c0,0,31.888,8.234,31.888,38.799C236.913,212.958,230.426,233.668,197.116,233.668z" />
7+
<path d="M0,0v256h256V0H0z M146,139h-32v96H90v-97H56v-20h90V139z M197.116,233.668c-33.31,0-42.916-23.953-42.916-23.953 l19.212-11.353c0,0,8.151,14.305,22.622,14.305c14.472,0,16.801-7.319,16.801-11.478c0-4.159,0.832-9.149-22.955-18.464 c-23.787-9.315-28.611-22.29-28.611-36.762c0-14.472,11.644-30.773,34.266-30.773c22.623,0,30.94,12.642,34.266,18.63 c-3.327,2.661-17.965,12.309-17.965,12.309s-5.822-10.147-16.302-10.147c-10.48,0-10.812,8.816-10.812,10.313 c0,2.862-0.366,9.852,20.301,16.884c0,0,31.888,8.234,31.888,38.799C236.913,212.958,230.426,233.668,197.116,233.668z" />
128
</g>
139
</IconBase>
1410
);

packages/homepage/src/utils/typography.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ const options = {
1919
[TABLET_MEDIA_QUERY]: {
2020
// Make baseFontSize on mobile 17px.
2121
html: {
22-
fontSize: `${17 / 16 * 100}%`,
22+
fontSize: `${(17 / 16) * 100}%`,
2323
},
2424
},
2525
[MOBILE_MEDIA_QUERY]: {
2626
// Make baseFontSize on mobile 16px.
2727
html: {
28-
fontSize: `${16 / 16 * 100}%`,
28+
fontSize: `${(16 / 16) * 100}%`,
2929
},
3030
},
3131
};

0 commit comments

Comments
 (0)