Skip to content

Commit 72903ed

Browse files
committed
Prevent JSON blocks in Markdown from getting sorted
1 parent b6180e0 commit 72903ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const DEFAULT_OPTIONS = {
1919
} as const satisfies Options;
2020

2121
export const DEFAULT_CONFIG = {
22-
plugins: [pluginOxidation, pluginPackageJSON, pluginShell, pluginSortJSON],
22+
plugins: [pluginOxidation, pluginShell],
2323
bracketSpacing: true,
2424
printWidth: 80,
2525
quoteProps: 'consistent',
@@ -70,6 +70,7 @@ export const DEFAULT_CONFIG = {
7070
files: ['*.json', '*.jsonc', '*.json5'],
7171
options: {
7272
...DEFAULT_OPTIONS,
73+
plugins: [pluginSortJSON],
7374
jsonRecursiveSort: true,
7475
jsonSortOrder: prioritizeKeys('$schema'),
7576
},
@@ -124,6 +125,7 @@ export const DEFAULT_CONFIG = {
124125
{
125126
files: ['package.json'],
126127
options: {
128+
plugins: [pluginPackageJSON, pluginSortJSON],
127129
packageSortOrder: [
128130
'name',
129131
'private',

0 commit comments

Comments
 (0)