chore: update oxlint / oxfmt settings
This commit is contained in:
6
.vscode/extensions.json
vendored
6
.vscode/extensions.json
vendored
@@ -1,5 +1,3 @@
|
|||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": ["oxc.oxc-vscode"]
|
||||||
"oxc.oxc-vscode"
|
}
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|||||||
16
.vscode/launch.json
vendored
16
.vscode/launch.json
vendored
@@ -6,18 +6,12 @@
|
|||||||
"type": "node",
|
"type": "node",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceFolder}/wp-content/themes/moonshine/node_modules/nuxt/bin/nuxt.mjs",
|
"program": "${workspaceFolder}/wp-content/themes/moonshine/node_modules/nuxt/bin/nuxt.mjs",
|
||||||
"runtimeArgs": [
|
"runtimeArgs": ["--inspect"],
|
||||||
"--inspect"
|
"args": ["dev"],
|
||||||
],
|
|
||||||
"args": [
|
|
||||||
"dev"
|
|
||||||
],
|
|
||||||
"cwd": "${workspaceFolder}/wp-content/themes/moonshine",
|
"cwd": "${workspaceFolder}/wp-content/themes/moonshine",
|
||||||
"autoAttachChildProcesses": true,
|
"autoAttachChildProcesses": true,
|
||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
"skipFiles": [
|
"skipFiles": ["<node_internals>/**"]
|
||||||
"<node_internals>/**"
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Nuxt client",
|
"name": "Nuxt client",
|
||||||
@@ -29,5 +23,5 @@
|
|||||||
"userDataDir": "${env:HOME}/.vscode/chromium-profile",
|
"userDataDir": "${env:HOME}/.vscode/chromium-profile",
|
||||||
"webRoot": "${workspaceFolder}/wp-content/themes/moonshine"
|
"webRoot": "${workspaceFolder}/wp-content/themes/moonshine"
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
24
.vscode/settings.json
vendored
24
.vscode/settings.json
vendored
@@ -5,6 +5,12 @@
|
|||||||
"[javascript]": {
|
"[javascript]": {
|
||||||
"editor.defaultFormatter": "oxc.oxc-vscode"
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
},
|
},
|
||||||
|
"[json]": {
|
||||||
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
|
},
|
||||||
|
"[jsonc]": {
|
||||||
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
|
},
|
||||||
"[postcss]": {
|
"[postcss]": {
|
||||||
"editor.defaultFormatter": "oxc.oxc-vscode"
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
},
|
},
|
||||||
@@ -22,10 +28,10 @@
|
|||||||
},
|
},
|
||||||
"editor.defaultFormatter": "oxc.oxc-vscode",
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
|
"editor.formatOnSaveMode": "file",
|
||||||
"editor.quickSuggestions": {
|
"editor.quickSuggestions": {
|
||||||
"strings": "on"
|
"strings": "on"
|
||||||
},
|
},
|
||||||
"eslint.enable": false,
|
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"*.css": "tailwindcss"
|
"*.css": "tailwindcss"
|
||||||
},
|
},
|
||||||
@@ -33,16 +39,8 @@
|
|||||||
"oxc.fmt.configPath": "wp-content/themes/moonshine/.oxfmtrc.json",
|
"oxc.fmt.configPath": "wp-content/themes/moonshine/.oxfmtrc.json",
|
||||||
"oxc.path.oxfmt": "wp-content/themes/moonshine/node_modules/.bin/oxfmt",
|
"oxc.path.oxfmt": "wp-content/themes/moonshine/node_modules/.bin/oxfmt",
|
||||||
"oxc.path.oxlint": "wp-content/themes/moonshine/node_modules/.bin/oxlint",
|
"oxc.path.oxlint": "wp-content/themes/moonshine/node_modules/.bin/oxlint",
|
||||||
"oxc.typeAware": true,
|
"oxc.tsConfigPath": "wp-content/themes/moonshine/tsconfig.json",
|
||||||
"tailwindCSS.classAttributes": [
|
"tailwindCSS.classAttributes": ["class", "ui"],
|
||||||
"class",
|
"tailwindCSS.experimental.classRegex": [["ui:\\s*{([^)]*)\\s*}", "(?:'|\"|`)([^']*)(?:'|\"|`)"]],
|
||||||
"ui"
|
|
||||||
],
|
|
||||||
"tailwindCSS.experimental.classRegex": [
|
|
||||||
[
|
|
||||||
"ui:\\s*{([^)]*)\\s*}",
|
|
||||||
"(?:'|\"|`)([^']*)(?:'|\"|`)"
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"typescript.tsdk": "wp-content/themes/moonshine/node_modules/typescript/lib"
|
"typescript.tsdk": "wp-content/themes/moonshine/node_modules/typescript/lib"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
{
|
{
|
||||||
"arrowParens": "always",
|
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
||||||
"indentStyle": "space",
|
|
||||||
"indentWidth": 2,
|
|
||||||
"quoteStyle": "double",
|
|
||||||
"semi": true,
|
|
||||||
"trailingComma": "es5",
|
|
||||||
"experimentalSortImports": {
|
"experimentalSortImports": {
|
||||||
"groups": [
|
"groups": [
|
||||||
["side-effect"],
|
["side-effect"],
|
||||||
@@ -17,9 +12,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"experimentalTailwindcss": {
|
"experimentalTailwindcss": {
|
||||||
"stylesheet": "./app/assets/css/_main.css",
|
"attributes": ["class"],
|
||||||
"attributes": ["class", "className"],
|
"functions": ["tv"],
|
||||||
"functions": ["clsx", "cn"],
|
"preserveWhitespace": true,
|
||||||
"preserveWhitespace": true
|
"stylesheet": "./app/assets/css/_main.css"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,22 @@
|
|||||||
{
|
{
|
||||||
"extends": ["recommended"],
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||||
"plugins": ["vue"],
|
"categories": {},
|
||||||
"env": {
|
"env": {
|
||||||
|
"builtin": true,
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
"settings": {
|
"globals": {},
|
||||||
"vue": {
|
"ignorePatterns": [],
|
||||||
"version": 3
|
"plugins": ["import", "vue"],
|
||||||
}
|
|
||||||
},
|
|
||||||
"rules": {
|
"rules": {
|
||||||
"vue/max-attributes-per-line": "off",
|
"vue/define-emits-declaration": ["error", "type-based"],
|
||||||
"vue/no-v-html": "off"
|
"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({
|
const tvSectionHeroSplit = tv({
|
||||||
slots: {
|
slots: {
|
||||||
base: "py-6",
|
base: "py-6",
|
||||||
container: "container flex flex-col gap-6 items-center",
|
container: "container flex flex-col items-center gap-6",
|
||||||
content: "flex-1",
|
content: "flex-1",
|
||||||
media: "w-full basis-1/2",
|
media: "w-full basis-1/2",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ export const useGeneralSettings = () =>
|
|||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
transform: ({ generalSettings }) => generalSettings,
|
transform: ({ generalSettings }) => generalSettings,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ export const useSiteOptions = () =>
|
|||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
transform: ({ siteOptions }) => siteOptions?.groupSiteOptions,
|
transform: ({ siteOptions }) => siteOptions?.groupSiteOptions,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -3,14 +3,14 @@ import { version } from "./package.json";
|
|||||||
const siteUrl = process.env.NUXT_SITE_URL;
|
const siteUrl = process.env.NUXT_SITE_URL;
|
||||||
if (!siteUrl) {
|
if (!siteUrl) {
|
||||||
throw new Error(
|
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;
|
const wpUrl = process.env.NUXT_WP_URL;
|
||||||
if (!wpUrl) {
|
if (!wpUrl) {
|
||||||
throw new Error(
|
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;
|
const wpDomain = new URL(wpUrl).hostname;
|
||||||
|
|||||||
@@ -36,12 +36,12 @@
|
|||||||
"nuxt-svgo": "^4.2.6",
|
"nuxt-svgo": "^4.2.6",
|
||||||
"tailwindcss": "^4.1.18",
|
"tailwindcss": "^4.1.18",
|
||||||
"vue": "^3.5.27",
|
"vue": "^3.5.27",
|
||||||
"vue-router": "^4.6.4",
|
"vue-router": "^5.0.2",
|
||||||
"zod": "^4.3.6"
|
"zod": "^4.3.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"changelogen": "^0.6.2",
|
"changelogen": "^0.6.2",
|
||||||
"oxfmt": "^0.27.0",
|
"oxfmt": "^0.28.0",
|
||||||
"oxlint": "^1.43.0",
|
"oxlint": "^1.43.0",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"vue-tsc": "^3.2.4",
|
"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,
|
query: AuthRefreshTokenDocument,
|
||||||
variables: { refreshToken },
|
variables: { refreshToken },
|
||||||
},
|
},
|
||||||
{ endpoint }
|
{ endpoint },
|
||||||
);
|
);
|
||||||
return data?.refreshToken?.authToken || undefined;
|
return data?.refreshToken?.authToken || undefined;
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -3,10 +3,7 @@
|
|||||||
"name": "wp-headless",
|
"name": "wp-headless",
|
||||||
"main": ".output/server/index.mjs",
|
"main": ".output/server/index.mjs",
|
||||||
"compatibility_date": "2026-02-01",
|
"compatibility_date": "2026-02-01",
|
||||||
"compatibility_flags": [
|
"compatibility_flags": ["nodejs_compat", "no_nodejs_compat_v2"],
|
||||||
"nodejs_compat",
|
|
||||||
"no_nodejs_compat_v2"
|
|
||||||
],
|
|
||||||
"observability": {
|
"observability": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
@@ -15,4 +12,4 @@
|
|||||||
"binding": "ASSETS",
|
"binding": "ASSETS",
|
||||||
"directory": ".output/public"
|
"directory": ".output/public"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user