feat: Replace eslint => oxlint + oxfmt
All checks were successful
Deployment / wordpress (push) Successful in 6s
Deployment / nuxt (push) Successful in 58s

This commit is contained in:
2026-02-01 21:53:40 -05:00
parent 58dbcdd25a
commit 9bb09b89d9
60 changed files with 14948 additions and 5941 deletions

View File

@@ -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",
},
});