Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps-dev): replace standard with neostandard #53

Merged
merged 4 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict'

module.exports = require('neostandard')({
ignores: require('neostandard').resolveIgnoresFromGitignore(),
ts: true
})
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.12.0",
"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
2 changes: 1 addition & 1 deletion test/helpers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { Writable } = require('readable-stream')
const { Writable } = require('node:stream')
const fastify = require('fastify')
const pino = require('pino')
const target = require('..')
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
Loading