chore: update oxlint / oxfmt settings

This commit is contained in:
2026-02-04 13:31:08 -05:00
parent fdf32bbc78
commit 36e7d8ad8b
13 changed files with 316 additions and 268 deletions

View File

@@ -1,5 +1,3 @@
{
"recommendations": [
"oxc.oxc-vscode"
]
}
"recommendations": ["oxc.oxc-vscode"]
}

16
.vscode/launch.json vendored
View File

@@ -6,18 +6,12 @@
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/wp-content/themes/moonshine/node_modules/nuxt/bin/nuxt.mjs",
"runtimeArgs": [
"--inspect"
],
"args": [
"dev"
],
"runtimeArgs": ["--inspect"],
"args": ["dev"],
"cwd": "${workspaceFolder}/wp-content/themes/moonshine",
"autoAttachChildProcesses": true,
"console": "integratedTerminal",
"skipFiles": [
"<node_internals>/**"
],
"skipFiles": ["<node_internals>/**"]
},
{
"name": "Nuxt client",
@@ -29,5 +23,5 @@
"userDataDir": "${env:HOME}/.vscode/chromium-profile",
"webRoot": "${workspaceFolder}/wp-content/themes/moonshine"
}
],
}
]
}

24
.vscode/settings.json vendored
View File

@@ -5,6 +5,12 @@
"[javascript]": {
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"[json]": {
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"[postcss]": {
"editor.defaultFormatter": "oxc.oxc-vscode"
},
@@ -22,10 +28,10 @@
},
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"editor.quickSuggestions": {
"strings": "on"
},
"eslint.enable": false,
"files.associations": {
"*.css": "tailwindcss"
},
@@ -33,16 +39,8 @@
"oxc.fmt.configPath": "wp-content/themes/moonshine/.oxfmtrc.json",
"oxc.path.oxfmt": "wp-content/themes/moonshine/node_modules/.bin/oxfmt",
"oxc.path.oxlint": "wp-content/themes/moonshine/node_modules/.bin/oxlint",
"oxc.typeAware": true,
"tailwindCSS.classAttributes": [
"class",
"ui"
],
"tailwindCSS.experimental.classRegex": [
[
"ui:\\s*{([^)]*)\\s*}",
"(?:'|\"|`)([^']*)(?:'|\"|`)"
]
],
"oxc.tsConfigPath": "wp-content/themes/moonshine/tsconfig.json",
"tailwindCSS.classAttributes": ["class", "ui"],
"tailwindCSS.experimental.classRegex": [["ui:\\s*{([^)]*)\\s*}", "(?:'|\"|`)([^']*)(?:'|\"|`)"]],
"typescript.tsdk": "wp-content/themes/moonshine/node_modules/typescript/lib"
}
}