Skip to content

Commit

Permalink
build(deps-dev): replace standard with neostandard
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Dec 8, 2024
1 parent c220e40 commit 6b1966e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@
"devDependencies": {
"benchmark": "^2.1.4",
"fastify": "^5.0.0",
"snazzy": "^9.0.0",
"standard": "^17.1.0",
"neostandard": "^0.11.9",
"tsd": "^0.31.0"
},
"resolutions": {
"@types/node": "^20.12.7"
},
"scripts": {
"lint": "standard | snazzy",
"lint:fix": "standard --fix",
"lint": "eslint",
"lint:fix": "eslint --fix",
"test": "npm run test:unit && npm run test:typescript",
"test:typescript": "tsd",
"test:unit": "node --test --experimental-test-coverage",
Expand Down
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ declare namespace oneLineLogger {
export const messageFormatFactory: (colorize: boolean, levels: Record<string, number>, colors?: CustomColor) => (log: LogDescriptor, messageKey: string) => string

export const oneLineLogger: OneLineLogger
export { oneLineLogger as default}
export { oneLineLogger as default }
}

declare function oneLineLogger(...params: Parameters<OneLineLogger>): ReturnType<OneLineLogger>
declare function oneLineLogger (...params: Parameters<OneLineLogger>): ReturnType<OneLineLogger>
export = oneLineLogger
6 changes: 3 additions & 3 deletions types/index.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import pretty from 'pino-pretty';
import { expectType, expectAssignable } from "tsd";
import pretty from 'pino-pretty'
import { expectType, expectAssignable } from 'tsd'
import oneLineLogger, {
CustomColor,
LogDescriptor,
Request,
messageFormatFactory,
oneLineLogger as oneLineLoggerNamed
} from "..";
} from '..'

expectType<string>(({} as Request).method)
expectType<string>(({} as Request).url)
Expand Down

0 comments on commit 6b1966e

Please sign in to comment.