Skip to content

Commit 8aea136

Browse files
committed
feat: remove sort group separator by default
1 parent fb3d07e commit 8aea136

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ The configuration example above shows how this works where the static asset impo
171171

172172
#### Custom Separator
173173

174-
If you are using sort groups, you have the option to provide a custom separator between sort groups. The default separator is a newline (`\n`), but you can customize it to any string you would like. For example, the following configuration would not separate groups by newlines.
174+
If you are using sort groups, you have the option to provide a custom separator between sort groups. For example, the following configuration would separate groups by newlines.
175175

176176
```json
177177
{
@@ -181,7 +181,7 @@ If you are using sort groups, you have the option to provide a custom separator
181181
"groups": [
182182
// ...
183183
],
184-
"separator": ""
184+
"separator": "\n"
185185
}
186186
]
187187
}

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
{ type: "dependency", order: 2 },
2020
{ type: "other", order: 3 },
2121
],
22-
separator: "\n",
22+
separator: "",
2323
},
2424
],
2525
"sort/object-properties": "warn",

0 commit comments

Comments
 (0)