Skip to content

Commit ba6c12b

Browse files
hugop95azat-io
authored andcommitted
feat!: drop group kind support
1 parent 5ad4234 commit ba6c12b

25 files changed

+353
-2662
lines changed

docs/content/rules/sort-array-includes.mdx

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -203,18 +203,6 @@ Specifies the sorting locales. Refer To [String.prototype.localeCompare() - loca
203203
- `string` — A BCP 47 language tag (e.g. `'en'`, `'en-US'`, `'zh-CN'`).
204204
- `string[]` — An array of BCP 47 language tags.
205205

206-
### [DEPRECATED] groupKind
207-
208-
<sub>default: `'literals-first'`</sub>
209-
210-
Use the [groups](#groups) option with the `literal` and `spread` selectors instead. Make sure to set this option to `mixed`.
211-
212-
Groups array elements by their kind, determining whether spread values should come before or after literal values.
213-
214-
- `mixed` — Do not group array elements by their kind; spread values are sorted together with literal values.
215-
- `literals-first` — Group all literal values before spread values.
216-
- `spreads-first` — Group all spread values before literal values.
217-
218206
### partitionByComment
219207

220208
<sub>default: `false`</sub>
@@ -324,7 +312,7 @@ Example configuration:
324312
<sub>
325313
type: `Array<string | string[]>`
326314
</sub>
327-
<sub>default: `[]`</sub>
315+
<sub>default: `['literal']`</sub>
328316

329317
Specifies a list of groups for sorting. Groups help organize elements into categories.
330318

@@ -445,11 +433,10 @@ Custom groups have a higher priority than any predefined group.
445433
fallbackSort: { type: 'unsorted' },
446434
ignoreCase: true,
447435
specialCharacters: 'keep',
448-
groupKind: 'literals-first',
449436
partitionByNewLine: false,
450437
newlinesBetween: 'ignore',
451438
useConfigurationIf: {},
452-
groups: [],
439+
groups: ["literal"],
453440
customGroups: [],
454441
},
455442
],
@@ -476,11 +463,10 @@ Custom groups have a higher priority than any predefined group.
476463
fallbackSort: { type: 'unsorted' },
477464
ignoreCase: true,
478465
specialCharacters: 'keep',
479-
groupKind: 'literals-first',
480466
partitionByNewLine: false,
481467
newlinesBetween: 'ignore',
482468
useConfigurationIf: {},
483-
groups: [],
469+
groups: ["literal"],
484470
customGroups: [],
485471
},
486472
],

docs/content/rules/sort-exports.mdx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -210,18 +210,6 @@ See the [`groups`](#newlines-between-groups) option.
210210

211211
This option is only applicable when [`partitionByNewLine`](#partitionbynewline) is `false`.
212212

213-
### [DEPRECATED] groupKind
214-
215-
<sub>default: `'mixed'`</sub>
216-
217-
Use the [groups](#groups) option with the `value` and `type` modifiers instead.
218-
219-
Groups exports by their kind, determining whether value exports should come before or after type exports.
220-
221-
- `mixed` — Do not group named exports by their kind; export statements are sorted together regardless of their type.
222-
- `values-first` — Group all value exports before type exports.
223-
- `types-first` — Group all type exports before value exports.
224-
225213
### groups
226214

227215
<sub>
@@ -388,7 +376,6 @@ Custom groups have a higher priority than any predefined group.
388376
partitionByComment: false,
389377
partitionByNewLine: false,
390378
newlinesBetween: 'ignore',
391-
groupKind: 'mixed',
392379
groups: [],
393380
customGroups: [],
394381
},
@@ -419,7 +406,6 @@ Custom groups have a higher priority than any predefined group.
419406
partitionByComment: false,
420407
partitionByNewLine: false,
421408
newlinesBetween: 'ignore',
422-
groupKind: 'mixed',
423409
groups: [],
424410
customGroups: [],
425411
},

docs/content/rules/sort-interfaces.mdx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -311,18 +311,6 @@ See the [`groups`](#newlines-between-groups) option.
311311

312312
This option is only applicable when [`partitionByNewLine`](#partitionbynewline) is `false`.
313313

314-
### [DEPRECATED] groupKind
315-
316-
<sub>default: `'mixed'`</sub>
317-
318-
Use the [groups](#groups) option with the `optional` and `required` modifiers instead.
319-
320-
Specifies how optional and required members should be ordered in TypeScript interfaces.
321-
322-
- `'optional-first'` — Put all optional members before required members.
323-
- `'required-first'` — Put all required members before optional members.
324-
- `'mixed'` — Do not enforce any specific order based on optionality.
325-
326314
### useConfigurationIf
327315

328316
<sub>
@@ -689,7 +677,6 @@ interface User {
689677
partitionByNewLine: false,
690678
newlinesBetween: 'ignore',
691679
useConfigurationIf: {},
692-
groupKind: 'mixed',
693680
groups: [],
694681
customGroups: [],
695682
},
@@ -723,7 +710,6 @@ interface User {
723710
partitionByNewLine: false,
724711
newlinesBetween: 'ignore',
725712
useConfigurationIf: {},
726-
groupKind: 'mixed',
727713
groups: [],
728714
customGroups: [],
729715
},

docs/content/rules/sort-named-exports.mdx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -190,18 +190,6 @@ Specifies whether to use the export alias as the name for sorting instead of the
190190
- `true` — Use the export alias for sorting.
191191
- `false` — Use the local name for sorting.
192192

193-
### [DEPRECATED] groupKind
194-
195-
<sub>default: `'mixed'`</sub>
196-
197-
Use the [groups](#groups) option with the `value` and `type` modifiers instead.
198-
199-
Groups named exports by their kind, determining whether value exports should come before or after type exports.
200-
201-
- `mixed` — Do not group named exports by their kind; export statements are sorted together regardless of their type.
202-
- `values-first` — Group all value exports before type exports.
203-
- `types-first` — Group all type exports before value exports.
204-
205193
### partitionByComment
206194

207195
<sub>default: `false`</sub>
@@ -399,7 +387,6 @@ Custom groups have a higher priority than any predefined group.
399387
ignoreAlias: false,
400388
ignoreCase: true,
401389
specialCharacters: 'keep',
402-
groupKind: 'mixed',
403390
partitionByNewLine: false,
404391
partitionByComment: false,
405392
newlinesBetween: 'ignore',
@@ -431,7 +418,6 @@ Custom groups have a higher priority than any predefined group.
431418
ignoreAlias: false,
432419
ignoreCase: true,
433420
specialCharacters: 'keep',
434-
groupKind: 'mixed',
435421
partitionByNewLine: false,
436422
partitionByComment: false,
437423
newlinesBetween: 'ignore',

docs/content/rules/sort-named-imports.mdx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -191,18 +191,6 @@ Specifies whether to use the import alias as the name for sorting instead of the
191191
- `true` — Use the import alias for sorting.
192192
- `false` — Use the exported name for sorting.
193193

194-
### [DEPRECATED] groupKind
195-
196-
<sub>default: `'mixed'`</sub>
197-
198-
Use the [groups](#groups) option with the `value` and `type` modifiers instead.
199-
200-
Groups named imports by their kind, determining whether value imports should come before or after type imports.
201-
202-
- `mixed` — Do not group named imports by their kind; named imports statements are sorted together regardless of their type.
203-
- `values-first` — Group all value imports before type imports.
204-
- `types-first` — Group all type imports before value imports.
205-
206194
### partitionByComment
207195

208196
<sub>default: `false`</sub>
@@ -398,7 +386,6 @@ Custom groups have a higher priority than any predefined group.
398386
ignoreAlias: false,
399387
ignoreCase: true,
400388
specialCharacters: 'keep',
401-
groupKind: 'mixed',
402389
partitionByNewLine: false,
403390
partitionByComment: false,
404391
newlinesBetween: 'ignore',
@@ -430,7 +417,6 @@ Custom groups have a higher priority than any predefined group.
430417
ignoreAlias: false,
431418
ignoreCase: true,
432419
specialCharacters: 'keep',
433-
groupKind: 'mixed',
434420
partitionByNewLine: false,
435421
partitionByComment: false,
436422
newlinesBetween: 'ignore',

docs/content/rules/sort-object-types.mdx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -276,18 +276,6 @@ See the [`groups`](#newlines-between-groups) option.
276276

277277
This option is only applicable when [`partitionByNewLine`](#partitionbynewline) is `false`.
278278

279-
### [DEPRECATED] groupKind
280-
281-
<sub>default: `'mixed'`</sub>
282-
283-
Use the [groups](#groups) option with the `optional` and `required` modifiers instead.
284-
285-
Groups type object keys by their kind, determining whether required values should come before or after optional values.
286-
287-
- `mixed` — Do not group object keys by their kind; required values are sorted together optional values.
288-
- `required-first` — Group all required values before optional.
289-
- `optional-first` — Group all optional values before required.
290-
291279
### useConfigurationIf
292280

293281
<sub>

docs/content/rules/sort-sets.mdx

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -209,18 +209,6 @@ Specifies the sorting locales. Refer To [String.prototype.localeCompare() - loca
209209
- `string` — A BCP 47 language tag (e.g. `'en'`, `'en-US'`, `'zh-CN'`).
210210
- `string[]` — An array of BCP 47 language tags.
211211

212-
### [DEPRECATED] groupKind
213-
214-
<sub>default: `'literals-first'`</sub>
215-
216-
Use the [groups](#groups) option with the `literal` and `spread` selectors instead. Make sure to set this option to `mixed`.
217-
218-
Groups set elements by their kind, determining whether spread values should come before or after literal values.
219-
220-
- `mixed` — Do not group set elements by their kind; spread values are sorted together with literal values.
221-
- `literals-first` — Group all literal values before spread values.
222-
- `spreads-first` — Group all spread values before literal values.
223-
224212
### partitionByComment
225213

226214
<sub>default: `false`</sub>
@@ -283,7 +271,7 @@ This option is only applicable when [`partitionByNewLine`](#partitionbynewline)
283271
<sub>
284272
type: `Array<string | string[]>`
285273
</sub>
286-
<sub>default: `[]`</sub>
274+
<sub>default: `['literal']`</sub>
287275

288276
Specifies a list of groups for sorting. Groups help organize elements into categories.
289277

@@ -404,11 +392,10 @@ Custom groups have a higher priority than any predefined group.
404392
fallbackSort: { type: 'unsorted' },
405393
ignoreCase: true,
406394
specialCharacters: 'keep',
407-
groupKind: 'literals-first',
408395
partitionByNewLine: false,
409396
newlinesBetween: 'ignore',
410397
useConfigurationIf: {},
411-
groups: [],
398+
groups: ['literal'],
412399
customGroups: [],
413400
},
414401
],
@@ -435,11 +422,10 @@ Custom groups have a higher priority than any predefined group.
435422
fallbackSort: { type: 'unsorted' },
436423
ignoreCase: true,
437424
specialCharacters: 'keep',
438-
groupKind: 'literals-first',
439425
partitionByNewLine: false,
440426
newlinesBetween: 'ignore',
441427
useConfigurationIf: {},
442-
groups: [],
428+
groups: ['literal'],
443429
customGroups: [],
444430
},
445431
],

0 commit comments

Comments
 (0)