diff --git a/package.json b/package.json index 52dddaa..101e970 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/types/index.d.ts b/types/index.d.ts index 1db4b64..8866da8 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -21,8 +21,8 @@ declare namespace oneLineLogger { export const messageFormatFactory: (colorize: boolean, levels: Record, colors?: CustomColor) => (log: LogDescriptor, messageKey: string) => string export const oneLineLogger: OneLineLogger - export { oneLineLogger as default} + export { oneLineLogger as default } } -declare function oneLineLogger(...params: Parameters): ReturnType +declare function oneLineLogger (...params: Parameters): ReturnType export = oneLineLogger diff --git a/types/index.test-d.ts b/types/index.test-d.ts index 364857d..8ec4f14 100644 --- a/types/index.test-d.ts +++ b/types/index.test-d.ts @@ -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(({} as Request).method) expectType(({} as Request).url)