Skip to content

Commit 8247ef3

Browse files
committed
fix: correct defineConfig logic
1 parent 1992ef7 commit 8247ef3

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

src/defineConfig.ts

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,9 @@
1-
import { TurboWatcher } from './backends/TurboWatcher';
2-
import {
3-
type TurbowatchConfiguration,
4-
type TurbowatchConfigurationInput,
5-
} from './types';
1+
import { type TurbowatchConfigurationInput } from './types';
62

73
export const defineConfig = (
84
configurationInput: TurbowatchConfigurationInput,
9-
): TurbowatchConfiguration => {
5+
): TurbowatchConfigurationInput => {
106
return {
11-
// This would not be used in practice, but it's here to make the type system happy.
12-
// bin/turbowatch.ts always overrides this.
13-
abortController: new AbortController(),
14-
15-
// as far as I can tell, this is a bug in unicorn/no-unused-properties
16-
// https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2051
17-
// eslint-disable-next-line unicorn/no-unused-properties
18-
debounce: {
19-
wait: 1_000,
20-
},
21-
22-
// eslint-disable-next-line unicorn/no-unused-properties
23-
Watcher: TurboWatcher,
247
...configurationInput,
258
};
269
};

0 commit comments

Comments
 (0)