Skip to content

Commit

Permalink
fix: correct typos and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard committed Jan 2, 2023
1 parent 4c5c5dd commit 6dc04be
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/configs/default-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({}),
* ],
* })
* \`\`\`
*/
Expand All @@ -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(),
* ],
* })
* \`\`\`
*/
Expand Down

0 comments on commit 6dc04be

Please sign in to comment.