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
This commit is contained in:
Joe Previte 2022-10-25 09:39:06 -07:00 committed by GitHub
parent 1134ee1c79
commit b19996176e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 685 additions and 671 deletions

View File

@ -52,17 +52,17 @@
"@types/split2": "^3.2.0", "@types/split2": "^3.2.0",
"@types/trusted-types": "^2.0.2", "@types/trusted-types": "^2.0.2",
"@types/ws": "^8.5.3", "@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.23.0", "@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.23.0", "@typescript-eslint/parser": "^5.41.0",
"audit-ci": "^6.0.0", "audit-ci": "^6.0.0",
"doctoc": "2.2.1", "doctoc": "2.2.1",
"eslint": "^7.7.0", "eslint": "^8.26.0",
"eslint-config-prettier": "^8.5.0", "eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^2.5.0", "eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.18.2", "eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.0.0", "eslint-plugin-prettier": "^4.2.1",
"prettier": "2.7.1", "prettier": "2.7.1",
"prettier-plugin-sh": "^0.12.0", "prettier-plugin-sh": "^0.12.8",
"ts-node": "^10.0.0", "ts-node": "^10.0.0",
"typescript": "^4.6.2" "typescript": "^4.6.2"
}, },
@ -83,8 +83,7 @@
"nanoid": "^3.1.31", "nanoid": "^3.1.31",
"minimist": "npm:minimist-lite@2.2.1", "minimist": "npm:minimist-lite@2.2.1",
"glob-parent": "^6.0.1", "glob-parent": "^6.0.1",
"@types/node": "^16.0.0", "@types/node": "^16.0.0"
"minimatch": "^3.0.5"
}, },
"dependencies": { "dependencies": {
"@coder/logger": "^3.0.0", "@coder/logger": "^3.0.0",

View File

@ -1,6 +1,6 @@
import { field, Level, logger } from "@coder/logger" import { field, Level, logger } from "@coder/logger"
import { promises as fs } from "fs" import { promises as fs } from "fs"
import yaml from "js-yaml" import { load } from "js-yaml"
import * as os from "os" import * as os from "os"
import * as path from "path" import * as path from "path"
import { canConnect, generateCertificate, generatePassword, humanPath, paths, isNodeJSErrnoException } from "./util" import { canConnect, generateCertificate, generatePassword, humanPath, paths, isNodeJSErrnoException } from "./util"
@ -657,7 +657,7 @@ export function parseConfigFile(configFile: string, configPath: string): ConfigA
return { config: configPath } return { config: configPath }
} }
const config = yaml.load(configFile, { const config = load(configFile, {
filename: configPath, filename: configPath,
}) })
if (!config || typeof config === "string") { if (!config || typeof config === "string") {

1335
yarn.lock

File diff suppressed because it is too large Load Diff