Skip to content

Commit c1fdda2

Browse files
authored
chore: update prettier (#23)
1 parent 3051a44 commit c1fdda2

File tree

7 files changed

+42
-16
lines changed

7 files changed

+42
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"devDependencies": {
2525
"nodemon": "^3.0.1",
26-
"prettier": "^2.1.2"
26+
"prettier": "^3.1.0"
2727
},
2828
"scripts": {
2929
"watch": "nodemon --watch src --ext js,css,handlebars --exec \"npm run start\"",

src/data.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ const getGitHubRelease = pMemoize(
7070
async (version) => {
7171
try {
7272
return (
73-
await (await getOctokit()).repos.getReleaseByTag({
73+
await (
74+
await getOctokit()
75+
).repos.getReleaseByTag({
7476
owner: 'electron',
7577
repo: version.includes('nightly') ? 'nightlies' : 'electron',
7678
tag: version,
@@ -91,7 +93,9 @@ const getPR = pMemoize(
9193
async (prNumber) => {
9294
try {
9395
return (
94-
await (await getOctokit()).pulls.get({
96+
await (
97+
await getOctokit()
98+
).pulls.get({
9599
owner: 'electron',
96100
repo: 'electron',
97101
pull_number: prNumber,
@@ -131,7 +135,9 @@ const getPRComments = pMemoize(
131135

132136
const compareTagToCommit = pMemoize(
133137
async (tag, commitSha) => {
134-
const compare = await (await getOctokit()).repos.compareCommits({
138+
const compare = await (
139+
await getOctokit()
140+
).repos.compareCommits({
135141
owner: 'electron',
136142
repo: 'electron',
137143
base: tag,

src/routes/home.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ Handlebars.registerPartial('releaseSquare', function (release) {
5454
}
5555
return `<a href="/release-build/${release.id}" class="active-release">
5656
<span><i class="fas fa-code-branch"></i>${release.branch}</span>
57-
<span>${channelIcon}${release.channel.substr(0, 1).toUpperCase()}${release.channel.substr(1)} Release</span>
57+
<span>${channelIcon}${release.channel.substr(0, 1).toUpperCase()}${release.channel.substr(
58+
1,
59+
)} Release</span>
5860
<span>Started ${minutesSince(release.started)}</span>
5961
</a>`;
6062
});

src/routes/pr.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ async function getPRReleaseStatus(prNumber) {
138138
// This is a backport PR, we should scan from here for the primary PR and then re-call getPRReleaseStatus with that primary PR
139139

140140
// c.f. https://github.com/electron/trop/blob/master/src/utils/branch-util.ts#L62
141-
const backportPattern = /(?:^|\n)(?:manual |manually )?backport (?:of )?(?:#(\d+)|https:\/\/github.com\/.*\/pull\/(\d+))/gim;
141+
const backportPattern =
142+
/(?:^|\n)(?:manual |manually )?backport (?:of )?(?:#(\d+)|https:\/\/github.com\/.*\/pull\/(\d+))/gim;
142143
const match = backportPattern.exec(prInfo.body);
143144
if (!match) return null;
144145
const parentPRNumber = match[1] ? parseInt(match[1], 10) : parseInt(match[2], 10);

src/static/css/pr.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@
2727
border: 1px solid #00c7e6;
2828
background: white;
2929
min-width: 300px;
30-
box-shadow: 0 2px 6px rgb(9 30 66 / 25%), 0 0 1px 0 rgb(9 30 66 / 31%);
30+
box-shadow:
31+
0 2px 6px rgb(9 30 66 / 25%),
32+
0 0 1px 0 rgb(9 30 66 / 31%);
3133
cursor: pointer;
3234
user-select: none;
3335
transition: box-shadow 0.1s ease-in-out;
3436
}
3537

3638
.primary-cell:hover {
37-
box-shadow: 0 8px 16px -4px rgb(9 30 66 / 25%), 0 0 1px rgb(9 30 66 / 31%);
39+
box-shadow:
40+
0 8px 16px -4px rgb(9 30 66 / 25%),
41+
0 0 1px rgb(9 30 66 / 31%);
3842
}
3943

4044
.primary-cell h4 {
@@ -65,14 +69,18 @@
6569
border-radius: 4px;
6670
min-width: 220px;
6771
background: white;
68-
box-shadow: 0 2px 6px rgb(9 30 66 / 25%), 0 0 1px 0 rgb(9 30 66 / 31%);
72+
box-shadow:
73+
0 2px 6px rgb(9 30 66 / 25%),
74+
0 0 1px 0 rgb(9 30 66 / 31%);
6975
cursor: pointer;
7076
user-select: none;
7177
transition: box-shadow 0.1s ease-in-out;
7278
}
7379

7480
.backport-cell:hover {
75-
box-shadow: 0 8px 16px -4px rgb(9 30 66 / 25%), 0 0 1px rgb(9 30 66 / 31%);
81+
box-shadow:
82+
0 8px 16px -4px rgb(9 30 66 / 25%),
83+
0 0 1px rgb(9 30 66 / 31%);
7684
}
7785

7886
.backport-pending .backport-cell,

src/static/css/styles.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,17 @@
2424
}
2525

2626
body {
27-
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Fira Sans,
28-
Droid Sans, Helvetica Neue, sans-serif;
27+
font-family:
28+
-apple-system,
29+
BlinkMacSystemFont,
30+
Segoe UI,
31+
Roboto,
32+
Oxygen,
33+
Ubuntu,
34+
Fira Sans,
35+
Droid Sans,
36+
Helvetica Neue,
37+
sans-serif;
2938
color: #1d1d1d;
3039
font-size: 16px;
3140
line-height: 1.5rem;

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,10 +1285,10 @@ prelude-ls@~1.1.2:
12851285
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
12861286
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
12871287

1288-
prettier@^2.1.2:
1289-
version "2.1.2"
1290-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.2.tgz#3050700dae2e4c8b67c4c3f666cdb8af405e1ce5"
1291-
integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==
1288+
prettier@^3.1.0:
1289+
version "3.1.0"
1290+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.0.tgz#c6d16474a5f764ea1a4a373c593b779697744d5e"
1291+
integrity sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==
12921292

12931293
prismjs@^1.29.0:
12941294
version "1.29.0"

0 commit comments

Comments
 (0)