Update fixtures with Prettier formatting

This commit is contained in:
James M. Greene
2022-08-05 15:40:25 -05:00
parent d949e1515f
commit da85ca493f
13 changed files with 47 additions and 61 deletions

View File

@@ -1,2 +1,2 @@
// Default Pages configuration for Gatsby // Default Pages configuration for Gatsby
module.exports = { pathPrefix: "/docs/" } module.exports = { pathPrefix: '/docs/' }

View File

@@ -1,8 +1,8 @@
module.exports = { module.exports = {
pathPrefix: "/docs/", pathPrefix: '/docs/',
siteMetadata: { siteMetadata: {
title: `My Gatsby Site`, title: `My Gatsby Site`,
siteUrl: `https://www.yourdomain.tld`, siteUrl: `https://www.yourdomain.tld`
}, },
plugins: [], plugins: []
} }

View File

@@ -1,7 +1,7 @@
module.exports = { module.exports = {
siteMetadata: { siteMetadata: {
title: `My Gatsby Site`, title: `My Gatsby Site`,
siteUrl: `https://www.yourdomain.tld`, siteUrl: `https://www.yourdomain.tld`
}, },
plugins: [], plugins: []
} }

View File

@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
experimental: {images: {unoptimized: true}}, experimental: { images: { unoptimized: true } },
basePath: '/docs', basePath: '/docs',
reactStrictMode: true, reactStrictMode: true,
swcMinify: true swcMinify: true

View File

@@ -1,7 +1,7 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
reactStrictMode: true, reactStrictMode: true,
swcMinify: true, swcMinify: true
} }
module.exports = nextConfig module.exports = nextConfig

View File

@@ -1,17 +1,17 @@
const getAllDynamicRoute = async function() { const getAllDynamicRoute = async function () {
const routes = await (async () => { const routes = await (async () => {
return ['/posts/hello-world', '/posts/hello-again']; return ['/posts/hello-world', '/posts/hello-again']
})(); })()
return routes; return routes
}; }
export default { export default {
target: 'static', target: 'static',
router: {base: '/docs/'}, router: { base: '/docs/' },
mode: 'universal', mode: 'universal',
generate: { generate: {
async routes () { async routes() {
return getAllDynamicRoute(); return getAllDynamicRoute()
} }
} }
}; }

View File

@@ -1,15 +1,15 @@
const getAllDynamicRoute = async function() { const getAllDynamicRoute = async function () {
const routes = await (async () => { const routes = await (async () => {
return ['/posts/hello-world', '/posts/hello-again']; return ['/posts/hello-world', '/posts/hello-again']
})(); })()
return routes; return routes
}; }
export default { export default {
mode: 'universal', mode: 'universal',
generate: { generate: {
async routes () { async routes() {
return getAllDynamicRoute(); return getAllDynamicRoute()
} }
} }
}; }

View File

@@ -1,2 +1,2 @@
// Default Pages configuration for Nuxt // Default Pages configuration for Nuxt
export default {target: 'static', router: {base: '/docs/'}} export default { target: 'static', router: { base: '/docs/' } }

View File

@@ -1,7 +1,7 @@
export default { export default {
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode // Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
target: 'static', target: 'static',
router: { base: "/docs/" }, router: { base: '/docs/' },
ssr: false, ssr: false,
// Global page headers: https://go.nuxtjs.dev/config-head // Global page headers: https://go.nuxtjs.dev/config-head
@@ -16,31 +16,24 @@ export default {
{ hid: 'description', name: 'description', content: '' }, { hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' } { name: 'format-detection', content: 'telephone=no' }
], ],
link: [ link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
}, },
// Global CSS: https://go.nuxtjs.dev/config-css // Global CSS: https://go.nuxtjs.dev/config-css
css: [ css: [],
],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [ plugins: [],
],
// Auto import components: https://go.nuxtjs.dev/config-components // Auto import components: https://go.nuxtjs.dev/config-components
components: true, components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [ buildModules: [],
],
// Modules: https://go.nuxtjs.dev/config-modules // Modules: https://go.nuxtjs.dev/config-modules
modules: [ modules: [],
],
// Build Configuration: https://go.nuxtjs.dev/config-build // Build Configuration: https://go.nuxtjs.dev/config-build
build: { build: {}
}
} }

View File

@@ -14,31 +14,24 @@ export default {
{ hid: 'description', name: 'description', content: '' }, { hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' } { name: 'format-detection', content: 'telephone=no' }
], ],
link: [ link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
}, },
// Global CSS: https://go.nuxtjs.dev/config-css // Global CSS: https://go.nuxtjs.dev/config-css
css: [ css: [],
],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [ plugins: [],
],
// Auto import components: https://go.nuxtjs.dev/config-components // Auto import components: https://go.nuxtjs.dev/config-components
components: true, components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [ buildModules: [],
],
// Modules: https://go.nuxtjs.dev/config-modules // Modules: https://go.nuxtjs.dev/config-modules
modules: [ modules: [],
],
// Build Configuration: https://go.nuxtjs.dev/config-build // Build Configuration: https://go.nuxtjs.dev/config-build
build: { build: {}
}
} }