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

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"
}
}