Skip to content

Commit ac81d6e

Browse files
committed
Upgrade Prettier and Node types
1 parent 30d8fa9 commit ac81d6e

File tree

5 files changed

+19
-25
lines changed

5 files changed

+19
-25
lines changed

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22

3-
const REPORT_TEST_RESULTS_AND_COVERAGE = !!process.env
4-
.REPORT_TEST_RESULTS_AND_COVERAGE;
3+
const REPORT_TEST_RESULTS_AND_COVERAGE =
4+
!!process.env.REPORT_TEST_RESULTS_AND_COVERAGE;
55

66
module.exports = {
77
collectCoverage: REPORT_TEST_RESULTS_AND_COVERAGE,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
"@types/jest": "^27.0.2",
3636
"@types/jszip": "^3.4.1",
3737
"@types/luxon": "^2.0.7",
38-
"@types/node": "^14.17.33",
38+
"@types/node": "^16.11.7",
3939
"jest": "^27.3.1",
4040
"jest-junit": "^13.0.0",
4141
"markdownlint-cli": "^0.29.0",
4242
"npm-run-all": "^4.1.5",
4343
"parcel": "^2.0.1",
44-
"prettier": "~2.2.1",
44+
"prettier": "^2.4.1",
4545
"prettier-plugin-packagejson": "^2.2.15",
4646
"ts-node": "^10.4.0",
4747
"typescript": "^4.4.4",

src/config.ts

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@ import { Config } from "./types";
33

44
export const envValidators = {
55
EVENT_TIME_FORMAT: envalid.str({
6-
desc:
7-
"Time format to use when logging events. Available tokens can be found in https://moment.github.io/luxon/docs/manual/formatting.html#table-of-tokens.",
8-
docs:
9-
"https://moment.github.io/luxon/docs/manual/formatting.html#table-of-tokens",
6+
desc: "Time format to use when logging events. Available tokens can be found in https://moment.github.io/luxon/docs/manual/formatting.html#table-of-tokens.",
7+
docs: "https://moment.github.io/luxon/docs/manual/formatting.html#table-of-tokens",
108
default: "yyyy-MM-dd HH:mm:ss ZZZ",
119
}),
1210
EVENT_TIME_ZONE: envalid.str({
1311
desc: "Time zone to use when logging events (IANA / fixed offset)",
14-
docs:
15-
"https://moment.github.io/luxon/docs/manual/zones.html#specifying-a-zone",
12+
docs: "https://moment.github.io/luxon/docs/manual/zones.html#specifying-a-zone",
1613
example: "Europe/London",
1714
default: "UTC",
1815
}),
@@ -29,14 +26,12 @@ export const envValidators = {
2926
default: "LONG",
3027
}),
3128
EVENT_LINE_FORMAT: envalid.str({
32-
desc:
33-
"Line format to use (must include line ending). Unescaped \\n and \\r are converted to newline symbols.",
29+
desc: "Line format to use (must include line ending). Unescaped \\n and \\r are converted to newline symbols.",
3430
default: "%TIME% %LABEL%\n",
3531
}),
3632

3733
GIT_REPO_URI: envalid.str({
38-
desc:
39-
"Git repository URI (must include authentication). HTTPS only, SSH is not supported.",
34+
desc: "Git repository URI (must include authentication). HTTPS only, SSH is not supported.",
4035
example: "https://username:token@github.com/example/my-data.git",
4136
}),
4237
GIT_REPO_BRANCH: envalid.str({
@@ -45,8 +40,7 @@ export const envValidators = {
4540
}),
4641

4742
GIT_FILE_PATH: envalid.str({
48-
desc:
49-
"Path to the log file inside the git repository. Make sure the path is not ignored via the .gitignore file.",
43+
desc: "Path to the log file inside the git repository. Make sure the path is not ignored via the .gitignore file.",
5044
example: "path/to/clicks.txt",
5145
}),
5246

src/testHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const generateHandlerArgs = (clickType: IotButtonClickType = "SINGLE") =>
3636
batteryVoltage: "xxmV",
3737
clickType,
3838
},
39-
({} as any) as Context,
39+
{} as Context,
4040
null,
4141
] as [IotButtonClickEvent, Context, null];
4242

yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,10 +1995,10 @@
19951995
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40"
19961996
integrity sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==
19971997

1998-
"@types/node@*", "@types/node@^14.17.33":
1999-
version "14.17.33"
2000-
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.33.tgz#011ee28e38dc7aee1be032ceadf6332a0ab15b12"
2001-
integrity sha512-noEeJ06zbn3lOh4gqe2v7NMGS33jrulfNqYFDjjEbhpDEHR5VTxgYNQSBqBlJIsBJW3uEYDgD6kvMnrrhGzq8g==
1998+
"@types/node@*", "@types/node@^16.11.7":
1999+
version "16.11.7"
2000+
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.7.tgz#36820945061326978c42a01e56b61cd223dfdc42"
2001+
integrity sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw==
20022002

20032003
"@types/parse-json@^4.0.0":
20042004
version "4.0.0"
@@ -6110,10 +6110,10 @@ prettier-plugin-sh@^0.6.0:
61106110
dependencies:
61116111
mvdan-sh "^0.5.0"
61126112

6113-
prettier@~2.2.1:
6114-
version "2.2.1"
6115-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
6116-
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
6113+
prettier@^2.4.1:
6114+
version "2.4.1"
6115+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.4.1.tgz#671e11c89c14a4cfc876ce564106c4a6726c9f5c"
6116+
integrity sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==
61176117

61186118
pretty-format@^27.0.0, pretty-format@^27.3.1:
61196119
version "27.3.1"

0 commit comments

Comments
 (0)