Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 31, 2024
1 parent 9b68268 commit 78d5341
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const InputError = BaseError.subclass('InputError')
Using the [full format](#baseerrorfullformat) with Winston.

```js
import { createLogger, transports, format } from 'winston'
import { createLogger, format, transports } from 'winston'

const logger = createLogger({
format: format.combine(BaseError.fullFormat(), format.json()),
Expand All @@ -93,7 +93,7 @@ logger.error(error)
Using the [short format](#baseerrorshortformat) with Winston.

```js
import { createLogger, transports, format } from 'winston'
import { createLogger, format, transports } from 'winston'

const logger = createLogger({
format: format.combine(BaseError.shortFormat(), format.cli()),
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
shortFormat as shortFormatLib,
fullFormat as fullFormatLib,
shortFormat as shortFormatLib,
validateOptions,
} from 'winston-error-format'

Expand Down
4 changes: 2 additions & 2 deletions src/main.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import ModernError from 'modern-errors'
import { expectType, expectAssignable, expectNotAssignable } from 'tsd'
import { expectAssignable, expectNotAssignable, expectType } from 'tsd'
import { createLogger } from 'winston'

import modernErrorsWinston, {
type Options,
type Format,
type Options,
} from 'modern-errors-winston'

const BaseError = ModernError.subclass('BaseError', {
Expand Down
2 changes: 1 addition & 1 deletion src/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ModernError from 'modern-errors'
import { each } from 'test-each'
import through from 'through2'
import { MESSAGE } from 'triple-beam'
import { createLogger, transports, format } from 'winston'
import { createLogger, format, transports } from 'winston'

import modernErrorsWinston from 'modern-errors-winston'

Expand Down

0 comments on commit 78d5341

Please sign in to comment.