diff --git a/index.d.ts b/index.d.ts index aa17303..f66efbd 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,5 @@ -import {Buffer} from 'node:buffer'; -import {MergeExclusive, TypedArray} from 'type-fest'; +import {type Buffer} from 'node:buffer'; +import {type MergeExclusive, type TypedArray} from 'type-fest'; export type FileOptions = MergeExclusive< { diff --git a/index.test-d.ts b/index.test-d.ts index 0eb361b..3fc6cec 100644 --- a/index.test-d.ts +++ b/index.test-d.ts @@ -10,10 +10,10 @@ import { temporaryWriteTask, temporaryWriteSync, rootTemporaryDirectory, - FileOptions, + type FileOptions, } from './index.js'; -const options: FileOptions = {}; // eslint-disable-line @typescript-eslint/no-unused-vars +const options: FileOptions = {}; expectType(temporaryDirectory()); expectType(temporaryDirectory({prefix: 'name_'})); expectType(temporaryFile()); diff --git a/package.json b/package.json index cb984a0..91d4282 100644 --- a/package.json +++ b/package.json @@ -38,16 +38,21 @@ ], "dependencies": { "is-stream": "^3.0.0", - "temp-dir": "^2.0.0", + "temp-dir": "^3.0.0", "type-fest": "^2.12.2", "unique-string": "^3.0.0" }, "devDependencies": { - "@types/node": "^17.0.24", - "ava": "^4.2.0", + "@types/node": "^20.4.1", + "ava": "^5.3.1", "path-exists": "^5.0.0", "touch": "^3.1.0", - "tsd": "^0.20.0", - "xo": "^0.48.0" + "tsd": "^0.28.1", + "xo": "^0.54.2" + }, + "xo": { + "rules": { + "@typescript-eslint/no-redundant-type-constituents": "off" + } } }