From 6dc04be77c8f416ac9fa22cd7a87f5fb878246c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Lundga=CC=8Ard?= Date: Fri, 9 Dec 2022 09:55:29 +0100 Subject: [PATCH] fix: correct typos and formatting --- src/configs/default-source.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/configs/default-source.ts b/src/configs/default-source.ts index 4810ad60..62e1a001 100644 --- a/src/configs/default-source.ts +++ b/src/configs/default-source.ts @@ -7,17 +7,17 @@ export function defaultSourceJs(pkg: PackageJson) { import {definePlugin} from 'sanity' /** - * ## Usage in sanity.config.js (or .js) + * Usage in sanity.config.js (or .ts) * - * \`\`\` + * \`\`\`js * import {defineConfig} from 'sanity' * import {myPlugin} from '${pkg.name}' * - * export const defineConfig({ - * //... - * plugins: [ - * myPlugin({}) - * ] + * export default defineConfig({ + * // ... + * plugins: [ + * myPlugin({}), + * ], * }) * \`\`\` */ @@ -42,17 +42,17 @@ export function defaultSourceTs(pkg: PackageJson) { } /** - * ## Usage in sanity.config.ts (or .js) + * Usage in sanity.config.ts (or .js) * - * \`\`\` + * \`\`\`ts * import {defineConfig} from 'sanity' * import {myPlugin} from '${pkg.name}' * - * export const defineConfig({ - * //... - * plugins: [ - * myPlugin() - * ] + * export default defineConfig({ + * // ... + * plugins: [ + * myPlugin(), + * ], * }) * \`\`\` */