diff --git a/specs/define-config.spec.ts b/specs/define-config.spec.ts index 8a1caca..31facce 100644 --- a/specs/define-config.spec.ts +++ b/specs/define-config.spec.ts @@ -36,7 +36,7 @@ describe('Prettier Config', async () => { spec('should return config', async () => { expectTypeOf( defineConfig({ - ...options, + options, overrides: [ { excludeFiles: ['path/to/file'], diff --git a/src/index.ts b/src/index.ts index 82e315f..d25a3de 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,7 +5,7 @@ import type { Config } from 'prettier'; * * @param {object} config Prettier. * - * @returns Prettier config. + * @return Prettier config. */ const defineConfig = (config: Config): Config => config;