From b720a0071d9f048bfcfda4dcbdec90c6c7fcc9b0 Mon Sep 17 00:00:00 2001 From: "hugo.prunaux" Date: Thu, 26 Dec 2024 00:55:12 +0100 Subject: [PATCH] feat(sort-object-types): adds feature --- rules/sort-object-types/types.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rules/sort-object-types/types.ts b/rules/sort-object-types/types.ts index fb9a40f8..759af7ff 100644 --- a/rules/sort-object-types/types.ts +++ b/rules/sort-object-types/types.ts @@ -13,6 +13,11 @@ export type Options = Partial<{ declarationMatchesPattern?: string allNamesMatchPattern?: string } + groups: ( + | { newlinesBetween: 'ignore' | 'always' | 'never' } + | Group[] + | Group + )[] type: 'alphabetical' | 'line-length' | 'unsorted' | 'natural' | 'custom' customGroups: Record | CustomGroup[] /** @@ -23,7 +28,6 @@ export type Options = Partial<{ newlinesBetween: 'ignore' | 'always' | 'never' specialCharacters: 'remove' | 'trim' | 'keep' locales: NonNullable - groups: (Group[] | Group)[] partitionByNewLine: boolean /** * @deprecated for {@link `useConfigurationIf.declarationMatchesPattern`}