Skip to content

Commit b199961

Browse files
authored
chore(deps): update prettier and eslint (#5700)
* chore(deps): update eslint/prettier deps * refactor(cli): only import load from js-yaml * chore(deps): remove minimatch resolution * fixup! update yarn lock
1 parent 1134ee1 commit b199961

File tree

3 files changed

+683
-669
lines changed

3 files changed

+683
-669
lines changed

package.json

+8-9
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@
5252
"@types/split2": "^3.2.0",
5353
"@types/trusted-types": "^2.0.2",
5454
"@types/ws": "^8.5.3",
55-
"@typescript-eslint/eslint-plugin": "^5.23.0",
56-
"@typescript-eslint/parser": "^5.23.0",
55+
"@typescript-eslint/eslint-plugin": "^5.41.0",
56+
"@typescript-eslint/parser": "^5.41.0",
5757
"audit-ci": "^6.0.0",
5858
"doctoc": "2.2.1",
59-
"eslint": "^7.7.0",
59+
"eslint": "^8.26.0",
6060
"eslint-config-prettier": "^8.5.0",
61-
"eslint-import-resolver-typescript": "^2.5.0",
62-
"eslint-plugin-import": "^2.18.2",
63-
"eslint-plugin-prettier": "^4.0.0",
61+
"eslint-import-resolver-typescript": "^3.5.2",
62+
"eslint-plugin-import": "^2.26.0",
63+
"eslint-plugin-prettier": "^4.2.1",
6464
"prettier": "2.7.1",
65-
"prettier-plugin-sh": "^0.12.0",
65+
"prettier-plugin-sh": "^0.12.8",
6666
"ts-node": "^10.0.0",
6767
"typescript": "^4.6.2"
6868
},
@@ -83,8 +83,7 @@
8383
"nanoid": "^3.1.31",
8484
"minimist": "npm:[email protected]",
8585
"glob-parent": "^6.0.1",
86-
"@types/node": "^16.0.0",
87-
"minimatch": "^3.0.5"
86+
"@types/node": "^16.0.0"
8887
},
8988
"dependencies": {
9089
"@coder/logger": "^3.0.0",

src/node/cli.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { field, Level, logger } from "@coder/logger"
22
import { promises as fs } from "fs"
3-
import yaml from "js-yaml"
3+
import { load } from "js-yaml"
44
import * as os from "os"
55
import * as path from "path"
66
import { canConnect, generateCertificate, generatePassword, humanPath, paths, isNodeJSErrnoException } from "./util"
@@ -657,7 +657,7 @@ export function parseConfigFile(configFile: string, configPath: string): ConfigA
657657
return { config: configPath }
658658
}
659659

660-
const config = yaml.load(configFile, {
660+
const config = load(configFile, {
661661
filename: configPath,
662662
})
663663
if (!config || typeof config === "string") {

0 commit comments

Comments
 (0)