Skip to content

Commit

Permalink
Update fixtures with Prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
James M. Greene authored and James M. Greene committed Aug 5, 2022
1 parent d949e15 commit da85ca4
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 61 deletions.
2 changes: 1 addition & 1 deletion src/fixtures/gatsby/blank.expected.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Default Pages configuration for Gatsby
module.exports = { pathPrefix: "/docs/" }
module.exports = { pathPrefix: '/docs/' }
2 changes: 1 addition & 1 deletion src/fixtures/gatsby/blank.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// This file is not read by the test suite
// This file is not read by the test suite
8 changes: 4 additions & 4 deletions src/fixtures/gatsby/default.expected.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
pathPrefix: "/docs/",
pathPrefix: '/docs/',
siteMetadata: {
title: `My Gatsby Site`,
siteUrl: `https://www.yourdomain.tld`,
siteUrl: `https://www.yourdomain.tld`
},
plugins: [],
}
plugins: []
}
6 changes: 3 additions & 3 deletions src/fixtures/gatsby/default.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
siteMetadata: {
title: `My Gatsby Site`,
siteUrl: `https://www.yourdomain.tld`,
siteUrl: `https://www.yourdomain.tld`
},
plugins: [],
}
plugins: []
}
2 changes: 1 addition & 1 deletion src/fixtures/next/blank.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// This file is not read by the test suite
// This file is not read by the test suite
2 changes: 1 addition & 1 deletion src/fixtures/next/default.expected.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {images: {unoptimized: true}},
experimental: { images: { unoptimized: true } },
basePath: '/docs',
reactStrictMode: true,
swcMinify: true
Expand Down
4 changes: 2 additions & 2 deletions src/fixtures/next/default.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
swcMinify: true
}

module.exports = nextConfig
module.exports = nextConfig
18 changes: 9 additions & 9 deletions src/fixtures/nuxt/async.expected.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
const getAllDynamicRoute = async function() {
const getAllDynamicRoute = async function () {
const routes = await (async () => {
return ['/posts/hello-world', '/posts/hello-again'];
})();
return routes;
};
return ['/posts/hello-world', '/posts/hello-again']
})()
return routes
}

export default {
target: 'static',
router: {base: '/docs/'},
router: { base: '/docs/' },
mode: 'universal',
generate: {
async routes () {
return getAllDynamicRoute();
async routes() {
return getAllDynamicRoute()
}
}
};
}
16 changes: 8 additions & 8 deletions src/fixtures/nuxt/async.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
const getAllDynamicRoute = async function() {
const getAllDynamicRoute = async function () {
const routes = await (async () => {
return ['/posts/hello-world', '/posts/hello-again'];
})();
return routes;
};
return ['/posts/hello-world', '/posts/hello-again']
})()
return routes
}

export default {
mode: 'universal',
generate: {
async routes () {
return getAllDynamicRoute();
async routes() {
return getAllDynamicRoute()
}
}
};
}
2 changes: 1 addition & 1 deletion src/fixtures/nuxt/blank.expected.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Default Pages configuration for Nuxt
export default {target: 'static', router: {base: '/docs/'}}
export default { target: 'static', router: { base: '/docs/' } }
2 changes: 1 addition & 1 deletion src/fixtures/nuxt/blank.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// This file is not read by the test suite
// This file is not read by the test suite
23 changes: 8 additions & 15 deletions src/fixtures/nuxt/default.expected.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
target: 'static',
router: { base: "/docs/" },
router: { base: '/docs/' },
ssr: false,

// Global page headers: https://go.nuxtjs.dev/config-head
Expand All @@ -16,31 +16,24 @@ export default {
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
},

// Global CSS: https://go.nuxtjs.dev/config-css
css: [
],
css: [],

// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
],
plugins: [],

// Auto import components: https://go.nuxtjs.dev/config-components
components: true,

// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
],
buildModules: [],

// Modules: https://go.nuxtjs.dev/config-modules
modules: [
],
modules: [],

// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
}
}
build: {}
}
21 changes: 7 additions & 14 deletions src/fixtures/nuxt/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,24 @@ export default {
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
},

// Global CSS: https://go.nuxtjs.dev/config-css
css: [
],
css: [],

// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
],
plugins: [],

// Auto import components: https://go.nuxtjs.dev/config-components
components: true,

// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
],
buildModules: [],

// Modules: https://go.nuxtjs.dev/config-modules
modules: [
],
modules: [],

// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
}
}
build: {}
}

0 comments on commit da85ca4

Please sign in to comment.