@@ -63,16 +63,13 @@
"editor.defaultFormatter": "oxc.oxc-vscode"
},
"[json]": {
- "editor.defaultFormatter": "vscode.json-language-features"
+ "editor.defaultFormatter": "oxc.oxc-vscode"
"[markdown]": {
"[jsonc]": {
- },
- "[json5]": {
"[vue]": {
@@ -9,6 +9,14 @@ const oxfmtConfig = defineOxfmtConfig({
singleQuote: true,
sortPackageJson: false,
trailingComma: 'all',
+ overrides: [
+ {
+ files: ['**/*.json', '**/*.json5', '**/*.jsonc', '*.code-workspace'],
+ options: {
+ trailingComma: 'none',
+ },
+ ],
});
function defineConfig(config: OxfmtConfig = {}) {