diff --git a/src/utils/create-svelte-parsers.ts b/src/utils/create-svelte-parsers.ts index 1c72863..6f90d4c 100644 --- a/src/utils/create-svelte-parsers.ts +++ b/src/utils/create-svelte-parsers.ts @@ -1,8 +1,8 @@ export function createSvelteParsers() { try { - var { parsers } = require('prettier-plugin-svelte'); + const { parsers } = require('prettier-plugin-svelte'); + return { parsers } } catch { - return {}; + return { parsers: {} }; } - return { parsers }; } \ No newline at end of file