chore: update oxlint / oxfmt settings
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
{
|
||||
"arrowParens": "always",
|
||||
"indentStyle": "space",
|
||||
"indentWidth": 2,
|
||||
"quoteStyle": "double",
|
||||
"semi": true,
|
||||
"trailingComma": "es5",
|
||||
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
||||
"experimentalSortImports": {
|
||||
"groups": [
|
||||
["side-effect"],
|
||||
@@ -17,9 +12,9 @@
|
||||
]
|
||||
},
|
||||
"experimentalTailwindcss": {
|
||||
"stylesheet": "./app/assets/css/_main.css",
|
||||
"attributes": ["class", "className"],
|
||||
"functions": ["clsx", "cn"],
|
||||
"preserveWhitespace": true
|
||||
"attributes": ["class"],
|
||||
"functions": ["tv"],
|
||||
"preserveWhitespace": true,
|
||||
"stylesheet": "./app/assets/css/_main.css"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,17 +1,22 @@
|
||||
{
|
||||
"extends": ["recommended"],
|
||||
"plugins": ["vue"],
|
||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||
"categories": {},
|
||||
"env": {
|
||||
"builtin": true,
|
||||
"browser": true,
|
||||
"node": true
|
||||
},
|
||||
"settings": {
|
||||
"vue": {
|
||||
"version": 3
|
||||
}
|
||||
},
|
||||
"globals": {},
|
||||
"ignorePatterns": [],
|
||||
"plugins": ["import", "vue"],
|
||||
"rules": {
|
||||
"vue/max-attributes-per-line": "off",
|
||||
"vue/no-v-html": "off"
|
||||
"vue/define-emits-declaration": ["error", "type-based"],
|
||||
"vue/define-props-declaration": ["error", "type-based"],
|
||||
"vue/require-typed-ref": "error"
|
||||
},
|
||||
"settings": {
|
||||
"vitest": {
|
||||
"typecheck": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { SectionHeroSplitFragment } from "#graphql/operations";
|
||||
const tvSectionHeroSplit = tv({
|
||||
slots: {
|
||||
base: "py-6",
|
||||
container: "container flex flex-col gap-6 items-center",
|
||||
container: "container flex flex-col items-center gap-6",
|
||||
content: "flex-1",
|
||||
media: "w-full basis-1/2",
|
||||
},
|
||||
|
||||
@@ -4,5 +4,5 @@ export const useGeneralSettings = () =>
|
||||
{},
|
||||
{
|
||||
transform: ({ generalSettings }) => generalSettings,
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
@@ -4,5 +4,5 @@ export const useSiteOptions = () =>
|
||||
{},
|
||||
{
|
||||
transform: ({ siteOptions }) => siteOptions?.groupSiteOptions,
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
@@ -3,14 +3,14 @@ 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.`
|
||||
`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.`
|
||||
`NUXT_WP_URL is not defined. Make sure to set it in your build environment variables.`,
|
||||
);
|
||||
}
|
||||
const wpDomain = new URL(wpUrl).hostname;
|
||||
|
||||
@@ -36,12 +36,12 @@
|
||||
"nuxt-svgo": "^4.2.6",
|
||||
"tailwindcss": "^4.1.18",
|
||||
"vue": "^3.5.27",
|
||||
"vue-router": "^4.6.4",
|
||||
"vue-router": "^5.0.2",
|
||||
"zod": "^4.3.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"changelogen": "^0.6.2",
|
||||
"oxfmt": "^0.27.0",
|
||||
"oxfmt": "^0.28.0",
|
||||
"oxlint": "^1.43.0",
|
||||
"typescript": "^5.9.3",
|
||||
"vue-tsc": "^3.2.4",
|
||||
|
||||
477
wp-content/themes/moonshine/pnpm-lock.yaml
generated
477
wp-content/themes/moonshine/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -59,7 +59,7 @@ export async function refreshAuthToken(refreshToken: string): Promise<string | u
|
||||
query: AuthRefreshTokenDocument,
|
||||
variables: { refreshToken },
|
||||
},
|
||||
{ endpoint }
|
||||
{ endpoint },
|
||||
);
|
||||
return data?.refreshToken?.authToken || undefined;
|
||||
})();
|
||||
|
||||
@@ -3,10 +3,7 @@
|
||||
"name": "wp-headless",
|
||||
"main": ".output/server/index.mjs",
|
||||
"compatibility_date": "2026-02-01",
|
||||
"compatibility_flags": [
|
||||
"nodejs_compat",
|
||||
"no_nodejs_compat_v2"
|
||||
],
|
||||
"compatibility_flags": ["nodejs_compat", "no_nodejs_compat_v2"],
|
||||
"observability": {
|
||||
"enabled": true
|
||||
},
|
||||
@@ -15,4 +12,4 @@
|
||||
"binding": "ASSETS",
|
||||
"directory": ".output/public"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user