feat: Replace eslint => oxlint + oxfmt
This commit is contained in:
@@ -2,12 +2,16 @@ import { version } from "./package.json";
|
||||
|
||||
const siteUrl = process.env.NUXT_SITE_URL;
|
||||
if (!siteUrl) {
|
||||
throw new Error(`NUXT_SITE_URL is not defined. Make sure to set it in your build environment variables.`);
|
||||
throw new Error(
|
||||
`NUXT_SITE_URL is not defined. Make sure to set it in your build environment variables.`,
|
||||
);
|
||||
}
|
||||
|
||||
const wpUrl = process.env.NUXT_WP_URL;
|
||||
if (!wpUrl) {
|
||||
throw new Error(`NUXT_WP_URL is not defined. Make sure to set it in your build environment variables.`);
|
||||
throw new Error(
|
||||
`NUXT_WP_URL is not defined. Make sure to set it in your build environment variables.`,
|
||||
);
|
||||
}
|
||||
const wpDomain = new URL(wpUrl).hostname;
|
||||
|
||||
@@ -15,10 +19,8 @@ const enableCloudflareImages = Boolean(process.env.ENABLE_CLOUDFLARE_IMAGES);
|
||||
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
|
||||
modules: [
|
||||
"@lewebsimple/nuxt-graphql",
|
||||
"@nuxt/eslint",
|
||||
"@nuxt/image",
|
||||
"@nuxt/ui",
|
||||
"@nuxtjs/device",
|
||||
@@ -28,9 +30,7 @@ export default defineNuxtConfig({
|
||||
],
|
||||
|
||||
components: {
|
||||
dirs: [
|
||||
{ path: "~/components", pathPrefix: false },
|
||||
],
|
||||
dirs: [{ path: "~/components", pathPrefix: false }],
|
||||
},
|
||||
|
||||
devtools: { enabled: true },
|
||||
@@ -68,18 +68,6 @@ export default defineNuxtConfig({
|
||||
},
|
||||
},
|
||||
|
||||
eslint: {
|
||||
config: {
|
||||
stylistic: {
|
||||
arrowParens: true,
|
||||
commaDangle: "always-multiline",
|
||||
indent: 2,
|
||||
quotes: "double",
|
||||
semi: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
graphql: {
|
||||
client: {
|
||||
cache: {
|
||||
@@ -112,5 +100,4 @@ export default defineNuxtConfig({
|
||||
componentPrefix: "Svg",
|
||||
defaultImport: "component",
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user