Skip to content

Commit f91edd7

Browse files
committed
fix: linting errors
1 parent 0179478 commit f91edd7

File tree

5 files changed

+107
-34
lines changed

5 files changed

+107
-34
lines changed

.github/workflows/lint.yml

-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@ jobs:
88
steps:
99
- name: Check out repository code
1010
uses: actions/checkout@v4
11-
with:
12-
persist-credentials: false
13-
1411
- name: Setup node
1512
uses: actions/setup-node@v4
1613
with:
1714
node-version: 20
1815
cache: yarn
19-
2016
- name: Run linter
2117
run: yarn lint

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"react-native": ">=0.40.0"
3535
},
3636
"devDependencies": {
37-
"prettier": "^3.2.5",
38-
"semantic-release": "^23.0.7"
37+
"prettier": "^3.3.2",
38+
"semantic-release": "^23.1.1"
3939
}
4040
}

src/android.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const titles = {
2828
export async function getEmailClients() {
2929
if (!("Email" in NativeModules)) {
3030
throw new EmailException(
31-
"NativeModules.Email does not exist. Check if you installed the Android dependencies correctly."
31+
"NativeModules.Email does not exist. Check if you installed the Android dependencies correctly.",
3232
);
3333
}
3434

@@ -73,7 +73,7 @@ export async function openInbox(options = {}) {
7373
// We can't pre-choose, since we use native intents
7474
if (!("Email" in NativeModules)) {
7575
throw new EmailException(
76-
"NativeModules.Email does not exist. Check if you installed the Android dependencies correctly."
76+
"NativeModules.Email does not exist. Check if you installed the Android dependencies correctly.",
7777
);
7878
}
7979

@@ -130,7 +130,7 @@ export async function openComposer(options = {}) {
130130
options.subject || "",
131131
body,
132132
options.cc,
133-
options.bcc
133+
options.bcc,
134134
);
135135
}
136136

@@ -140,6 +140,6 @@ export async function openComposer(options = {}) {
140140
options.subject || "",
141141
body,
142142
options.cc,
143-
options.bcc
143+
options.bcc,
144144
);
145145
}

src/ios.js

+7-12
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export function askAppChoice(
186186
cancelLabel = "Cancel",
187187
removeText = false,
188188
defaultEmailLabel = "Default email reader",
189-
actionType = "open"
189+
actionType = "open",
190190
) {
191191
return new Promise(async (resolve, reject) => {
192192
let availableApps = [];
@@ -207,7 +207,7 @@ export function askAppChoice(
207207
let options = availableApps.map((app) =>
208208
actionType === "compose" && app === "apple-mail"
209209
? defaultEmailLabel
210-
: titles[app]
210+
: titles[app],
211211
);
212212
options.push(cancelLabel);
213213

@@ -222,7 +222,7 @@ export function askAppChoice(
222222
return resolve(null);
223223
}
224224
return resolve(availableApps[buttonIndex]);
225-
}
225+
},
226226
);
227227
});
228228
}
@@ -248,27 +248,22 @@ async function getApp(options, actionType) {
248248
throw new EmailException(
249249
'Option `app` should be undefined, null, or one of the following: "' +
250250
Object.keys(prefixes).join('", "') +
251-
'".'
251+
'".',
252252
);
253253
}
254254

255255
let { app = null } = options;
256256

257257
if (!app) {
258-
const {
259-
title,
260-
message,
261-
cancelLabel,
262-
removeText,
263-
defaultEmailLabel,
264-
} = options;
258+
const { title, message, cancelLabel, removeText, defaultEmailLabel } =
259+
options;
265260
app = await askAppChoice(
266261
title,
267262
message,
268263
cancelLabel,
269264
removeText,
270265
defaultEmailLabel,
271-
actionType
266+
actionType,
272267
);
273268
}
274269

yarn.lock

+94-12
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,11 @@
367367
"@pnpm/network.ca-file" "^1.0.1"
368368
config-chain "^1.1.11"
369369

370+
"@sec-ant/readable-stream@^0.4.1":
371+
version "0.4.1"
372+
resolved "https://registry.yarnpkg.com/@sec-ant/readable-stream/-/readable-stream-0.4.1.tgz#60de891bb126abfdc5410fdc6166aca065f10a0c"
373+
integrity sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==
374+
370375
"@semantic-release/commit-analyzer@^12.0.0":
371376
version "12.0.0"
372377
resolved "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-12.0.0.tgz#7219b05ab79a4303c99fc9cd0413d68881599270"
@@ -496,6 +501,11 @@
496501
resolved "https://registry.yarnpkg.com/@sindresorhus/merge-streams/-/merge-streams-2.3.0.tgz#719df7fb41766bc143369eaa0dd56d8dc87c9958"
497502
integrity sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==
498503

504+
"@sindresorhus/merge-streams@^4.0.0":
505+
version "4.0.0"
506+
resolved "https://registry.yarnpkg.com/@sindresorhus/merge-streams/-/merge-streams-4.0.0.tgz#abb11d99aeb6d27f1b563c38147a72d50058e339"
507+
integrity sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==
508+
499509
500510
version "2.0.0"
501511
resolved "https://registry.yarnpkg.com/@tufjs/canonical-json/-/canonical-json-2.0.0.tgz#a52f61a3d7374833fca945b2549bc30a2dd40d0a"
@@ -1071,6 +1081,24 @@ execa@^8.0.0:
10711081
signal-exit "^4.1.0"
10721082
strip-final-newline "^3.0.0"
10731083

1084+
execa@^9.0.0:
1085+
version "9.3.0"
1086+
resolved "https://registry.yarnpkg.com/execa/-/execa-9.3.0.tgz#b10b70f52c1a978985e8492cc1fa74795c59963c"
1087+
integrity sha512-l6JFbqnHEadBoVAVpN5dl2yCyfX28WoBAGaoQcNmLLSedOxTxcn2Qa83s8I/PA5i56vWru2OHOtrwF7Om2vqlg==
1088+
dependencies:
1089+
"@sindresorhus/merge-streams" "^4.0.0"
1090+
cross-spawn "^7.0.3"
1091+
figures "^6.1.0"
1092+
get-stream "^9.0.0"
1093+
human-signals "^7.0.0"
1094+
is-plain-obj "^4.1.0"
1095+
is-stream "^4.0.1"
1096+
npm-run-path "^5.2.0"
1097+
pretty-ms "^9.0.0"
1098+
signal-exit "^4.1.0"
1099+
strip-final-newline "^4.0.0"
1100+
yoctocolors "^2.0.0"
1101+
10741102
exponential-backoff@^3.1.1:
10751103
version "3.1.1"
10761104
resolved "https://registry.yarnpkg.com/exponential-backoff/-/exponential-backoff-3.1.1.tgz#64ac7526fe341ab18a39016cd22c787d01e00bf6"
@@ -1106,7 +1134,7 @@ figures@^2.0.0:
11061134
dependencies:
11071135
escape-string-regexp "^1.0.5"
11081136

1109-
figures@^6.0.0:
1137+
figures@^6.0.0, figures@^6.1.0:
11101138
version "6.1.0"
11111139
resolved "https://registry.yarnpkg.com/figures/-/figures-6.1.0.tgz#935479f51865fa7479f6fa94fc6fc7ac14e62c4a"
11121140
integrity sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==
@@ -1223,6 +1251,14 @@ get-stream@^8.0.1:
12231251
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-8.0.1.tgz#def9dfd71742cd7754a7761ed43749a27d02eca2"
12241252
integrity sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==
12251253

1254+
get-stream@^9.0.0:
1255+
version "9.0.1"
1256+
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-9.0.1.tgz#95157d21df8eb90d1647102b63039b1df60ebd27"
1257+
integrity sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==
1258+
dependencies:
1259+
"@sec-ant/readable-stream" "^0.4.1"
1260+
is-stream "^4.0.1"
1261+
12261262
git-log-parser@^1.2.0:
12271263
version "1.2.0"
12281264
resolved "https://registry.yarnpkg.com/git-log-parser/-/git-log-parser-1.2.0.tgz#2e6a4c1b13fc00028207ba795a7ac31667b9fd4a"
@@ -1352,6 +1388,11 @@ human-signals@^5.0.0:
13521388
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28"
13531389
integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==
13541390

1391+
human-signals@^7.0.0:
1392+
version "7.0.0"
1393+
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-7.0.0.tgz#93e58e0c19cfec1dded4af10cd4969f5ab75f6c8"
1394+
integrity sha512-74kytxOUSvNbjrT9KisAbaTZ/eJwD/LrbM/kh5j0IhPuJzwuA19dWvniFGwBzN9rVjg+O/e+F310PjObDXS+9Q==
1395+
13551396
iconv-lite@^0.6.2:
13561397
version "0.6.3"
13571398
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501"
@@ -1512,11 +1553,21 @@ is-obj@^2.0.0:
15121553
resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982"
15131554
integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==
15141555

1556+
is-plain-obj@^4.1.0:
1557+
version "4.1.0"
1558+
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-4.1.0.tgz#d65025edec3657ce032fd7db63c97883eaed71f0"
1559+
integrity sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==
1560+
15151561
is-stream@^3.0.0:
15161562
version "3.0.0"
15171563
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-3.0.0.tgz#e6bfd7aa6bef69f4f472ce9bb681e3e57b4319ac"
15181564
integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==
15191565

1566+
is-stream@^4.0.1:
1567+
version "4.0.1"
1568+
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-4.0.1.tgz#375cf891e16d2e4baec250b85926cffc14720d9b"
1569+
integrity sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==
1570+
15201571
is-text-path@^2.0.0:
15211572
version "2.0.0"
15221573
resolved "https://registry.yarnpkg.com/is-text-path/-/is-text-path-2.0.0.tgz#b2484e2b720a633feb2e85b67dc193ff72c75636"
@@ -2129,7 +2180,7 @@ npm-registry-fetch@^16.0.0, npm-registry-fetch@^16.2.0:
21292180
npm-package-arg "^11.0.0"
21302181
proc-log "^3.0.0"
21312182

2132-
npm-run-path@^5.1.0:
2183+
npm-run-path@^5.1.0, npm-run-path@^5.2.0:
21332184
version "5.3.0"
21342185
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-5.3.0.tgz#e23353d0ebb9317f174e93417e4a4d82d0249e9f"
21352186
integrity sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==
@@ -2360,6 +2411,11 @@ parse-json@^8.0.0:
23602411
index-to-position "^0.1.2"
23612412
type-fest "^4.7.1"
23622413

2414+
parse-ms@^4.0.0:
2415+
version "4.0.0"
2416+
resolved "https://registry.yarnpkg.com/parse-ms/-/parse-ms-4.0.0.tgz#c0c058edd47c2a590151a718990533fd62803df4"
2417+
integrity sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==
2418+
23632419
parse5-htmlparser2-tree-adapter@^6.0.0:
23642420
version "6.0.1"
23652421
resolved "https://registry.yarnpkg.com/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz#2cdf9ad823321140370d4dbf5d3e92c7c8ddc6e6"
@@ -2441,10 +2497,17 @@ postcss-selector-parser@^6.0.10:
24412497
cssesc "^3.0.0"
24422498
util-deprecate "^1.0.2"
24432499

2444-
prettier@^3.2.5:
2445-
version "3.2.5"
2446-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368"
2447-
integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==
2500+
prettier@^3.3.2:
2501+
version "3.3.2"
2502+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.2.tgz#03ff86dc7c835f2d2559ee76876a3914cec4a90a"
2503+
integrity sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==
2504+
2505+
pretty-ms@^9.0.0:
2506+
version "9.0.0"
2507+
resolved "https://registry.yarnpkg.com/pretty-ms/-/pretty-ms-9.0.0.tgz#53c57f81171c53be7ce3fd20bdd4265422bc5929"
2508+
integrity sha512-E9e9HJ9R9NasGOgPaPE8VMeiPKAyWR5jcFpNnwIejslIhWqdqOrb2wShBsncMPUb+BcCd2OPYfh7p2W6oemTng==
2509+
dependencies:
2510+
parse-ms "^4.0.0"
24482511

24492512
proc-log@^3.0.0:
24502513
version "3.0.0"
@@ -2534,6 +2597,15 @@ read-package-json@^7.0.0:
25342597
normalize-package-data "^6.0.0"
25352598
npm-normalize-package-bin "^3.0.0"
25362599

2600+
read-package-up@^11.0.0:
2601+
version "11.0.0"
2602+
resolved "https://registry.yarnpkg.com/read-package-up/-/read-package-up-11.0.0.tgz#71fb879fdaac0e16891e6e666df22de24a48d5ba"
2603+
integrity sha512-MbgfoNPANMdb4oRBNg5eqLbB2t2r+o5Ua1pNt8BqGp4I0FJZhuVSOj3PaBPni4azWuSzEdNn2evevzVmEk1ohQ==
2604+
dependencies:
2605+
find-up-simple "^1.0.0"
2606+
read-pkg "^9.0.0"
2607+
type-fest "^4.6.0"
2608+
25372609
read-pkg-up@^11.0.0:
25382610
version "11.0.0"
25392611
resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-11.0.0.tgz#8916ffc6af2a7538b43bcc2c6445d4450ffe5a74"
@@ -2623,10 +2695,10 @@ safe-buffer@~5.1.0, safe-buffer@~5.1.1:
26232695
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
26242696
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
26252697

2626-
semantic-release@^23.0.7:
2627-
version "23.0.7"
2628-
resolved "https://registry.yarnpkg.com/semantic-release/-/semantic-release-23.0.7.tgz#fc34d0472ebdb5fde1b5b93a31df97b44e17dac4"
2629-
integrity sha512-PFxXQE57zrYiCbWKkdsVUF08s0SifEw3WhDhrN47ZEUWQiLl21FI9Dg/H8g7i/lPx0IkF6u7PjJbgxPceXKBeg==
2698+
semantic-release@^23.1.1:
2699+
version "23.1.1"
2700+
resolved "https://registry.yarnpkg.com/semantic-release/-/semantic-release-23.1.1.tgz#5c1a058748f4001f1c730716134a70b9e8e5b311"
2701+
integrity sha512-qqJDBhbtHsjUEMsojWKGuL5lQFCJuPtiXKEIlFKyTzDDGTAE/oyvznaP8GeOr5PvcqBJ6LQz4JCENWPLeehSpA==
26302702
dependencies:
26312703
"@semantic-release/commit-analyzer" "^12.0.0"
26322704
"@semantic-release/error" "^4.0.0"
@@ -2637,7 +2709,7 @@ semantic-release@^23.0.7:
26372709
cosmiconfig "^9.0.0"
26382710
debug "^4.0.0"
26392711
env-ci "^11.0.0"
2640-
execa "^8.0.0"
2712+
execa "^9.0.0"
26412713
figures "^6.0.0"
26422714
find-versions "^6.0.0"
26432715
get-stream "^6.0.0"
@@ -2651,7 +2723,7 @@ semantic-release@^23.0.7:
26512723
micromatch "^4.0.2"
26522724
p-each-series "^3.0.0"
26532725
p-reduce "^3.0.0"
2654-
read-pkg-up "^11.0.0"
2726+
read-package-up "^11.0.0"
26552727
resolve-from "^5.0.0"
26562728
semver "^7.3.2"
26572729
semver-diff "^4.0.0"
@@ -2871,6 +2943,11 @@ strip-final-newline@^3.0.0:
28712943
resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-3.0.0.tgz#52894c313fbff318835280aed60ff71ebf12b8fd"
28722944
integrity sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==
28732945

2946+
strip-final-newline@^4.0.0:
2947+
version "4.0.0"
2948+
resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-4.0.0.tgz#35a369ec2ac43df356e3edd5dcebb6429aa1fa5c"
2949+
integrity sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==
2950+
28742951
strip-json-comments@~2.0.1:
28752952
version "2.0.1"
28762953
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
@@ -3213,3 +3290,8 @@ yargs@^17.5.1:
32133290
string-width "^4.2.3"
32143291
y18n "^5.0.5"
32153292
yargs-parser "^21.1.1"
3293+
3294+
yoctocolors@^2.0.0:
3295+
version "2.1.0"
3296+
resolved "https://registry.yarnpkg.com/yoctocolors/-/yoctocolors-2.1.0.tgz#27c6b15d38f7659d640580a7c4981bd56b59bcb9"
3297+
integrity sha512-FsQpXXeOEe05tcJN4Z2eicuC6+6KiJdBbPOAChanSkwwjZ277XGsh8wh/HaPuGeifTiw/7dgAzabitu2bnDvRg==

0 commit comments

Comments
 (0)