Skip to content

Commit

Permalink
Upgrade prettier, eslint and typescript-eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
akheron committed Aug 9, 2023
1 parent b0ee65b commit 711373a
Show file tree
Hide file tree
Showing 4 changed files with 322 additions and 127 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@
"@types/jest": "^27.0.1",
"@types/node": "*",
"@types/statuses": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"doctoc": "^2.0.0",
"eslint": "^8.12.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint": "^8.46.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"io-ts": "^2.2.13",
"io-ts-types": "^0.5.12",
"jest": "^27.0.1",
"prettier": "^2.2.1",
"prettier": "^3.0.1",
"ts-jest": "^27.0.1",
"typera-express": "^2.4.0"
}
Expand Down
2 changes: 1 addition & 1 deletion src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ const methodNames = [
'patch',
] as const

type Method = Exclude<typeof methodNames[number], 'all'>
type Method = Exclude<(typeof methodNames)[number], 'all'>

const isMethod = (value: string): value is Method =>
methodNames.some((method) => value === method)
Expand Down
2 changes: 1 addition & 1 deletion src/prettify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export async function runPrettier(
): Promise<string> {
let format, resolveConfig
try {
// eslint-disable-next-line @typescript-eslint/no-extra-semi
// eslint-disable-next-line no-extra-semi
;({ format, resolveConfig } = require('prettier'))
} catch (_err) {
console.warn(
Expand Down
Loading

0 comments on commit 711373a

Please sign in to comment.