fix: align oxfmt json commas with lint
parent
8350e72393
commit
e3e869faee
|
|
@ -63,16 +63,13 @@
|
||||||
"editor.defaultFormatter": "oxc.oxc-vscode"
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
},
|
},
|
||||||
"[json]": {
|
"[json]": {
|
||||||
"editor.defaultFormatter": "vscode.json-language-features"
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
},
|
},
|
||||||
"[markdown]": {
|
"[markdown]": {
|
||||||
"editor.defaultFormatter": "oxc.oxc-vscode"
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
},
|
},
|
||||||
"[jsonc]": {
|
"[jsonc]": {
|
||||||
"editor.defaultFormatter": "vscode.json-language-features"
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
},
|
|
||||||
"[json5]": {
|
|
||||||
"editor.defaultFormatter": "vscode.json-language-features"
|
|
||||||
},
|
},
|
||||||
"[vue]": {
|
"[vue]": {
|
||||||
"editor.defaultFormatter": "oxc.oxc-vscode"
|
"editor.defaultFormatter": "oxc.oxc-vscode"
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,14 @@ const oxfmtConfig = defineOxfmtConfig({
|
||||||
singleQuote: true,
|
singleQuote: true,
|
||||||
sortPackageJson: false,
|
sortPackageJson: false,
|
||||||
trailingComma: 'all',
|
trailingComma: 'all',
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: ['**/*.json', '**/*.json5', '**/*.jsonc', '*.code-workspace'],
|
||||||
|
options: {
|
||||||
|
trailingComma: 'none',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
function defineConfig(config: OxfmtConfig = {}) {
|
function defineConfig(config: OxfmtConfig = {}) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue