diff --git a/docs/content/rules/sort-array-includes.mdx b/docs/content/rules/sort-array-includes.mdx index 687387cd..fb0c786b 100644 --- a/docs/content/rules/sort-array-includes.mdx +++ b/docs/content/rules/sort-array-includes.mdx @@ -308,7 +308,7 @@ Predefined groups are characterized by a selector. default: `{}` -You can define your own groups and use regexp pattern to match specific object type members. +You can define your own groups and use regexp patterns to match specific object type members. A custom group definition may follow one of the two following interfaces: diff --git a/docs/content/rules/sort-imports.mdx b/docs/content/rules/sort-imports.mdx index 3ee46506..19a0551a 100644 --- a/docs/content/rules/sort-imports.mdx +++ b/docs/content/rules/sort-imports.mdx @@ -369,7 +369,7 @@ This feature is only applicable when `partitionByNewLine` is false. default: `{ value: {}, type: {} }` -You can define your own groups and use regexp pattern to match specific imports. +You can define your own groups and use regexp patterns to match specific imports. Each key of the `value` or `type` fields represents a group name which you can then use in the `groups` option. The value for each key can either be of type: - `string` — An import matching the value will be marked as part of the group referenced by the key. diff --git a/docs/content/rules/sort-jsx-props.mdx b/docs/content/rules/sort-jsx-props.mdx index 9a09dc38..eb13df08 100644 --- a/docs/content/rules/sort-jsx-props.mdx +++ b/docs/content/rules/sort-jsx-props.mdx @@ -232,7 +232,7 @@ All members of the groups in the array will be sorted together as if they were p default: `{}` -You can define your own groups and use regexp pattern to match specific JSX attributes. +You can define your own groups and use regexp patterns to match specific JSX attributes. Each key of `customGroups` represents a group name which you can then use in the `groups` option. The value for each key can either be of type: - `string` — A JSX prop's name matching the value will be marked as part of the group referenced by the key. diff --git a/docs/content/rules/sort-object-types.mdx b/docs/content/rules/sort-object-types.mdx index 0352eac3..2390df58 100644 --- a/docs/content/rules/sort-object-types.mdx +++ b/docs/content/rules/sort-object-types.mdx @@ -433,7 +433,7 @@ Current API: default: `[]` -You can define your own groups and use regexp pattern to match specific object type members. +You can define your own groups and use regexp patterns to match specific object type members. A custom group definition may follow one of the two following interfaces: diff --git a/docs/content/rules/sort-objects.mdx b/docs/content/rules/sort-objects.mdx index 7038a6ae..0188348d 100644 --- a/docs/content/rules/sort-objects.mdx +++ b/docs/content/rules/sort-objects.mdx @@ -481,7 +481,7 @@ Current API: default: `[]` -You can define your own groups and use regexp pattern to match specific object keys. +You can define your own groups and use regexp patterns to match specific object keys. A custom group definition may follow one of the two following interfaces: diff --git a/docs/content/rules/sort-sets.mdx b/docs/content/rules/sort-sets.mdx index 8251bd37..3f729082 100644 --- a/docs/content/rules/sort-sets.mdx +++ b/docs/content/rules/sort-sets.mdx @@ -266,7 +266,7 @@ Predefined groups are characterized by a selector. default: `{}` -You can define your own groups and use regexp pattern to match specific object type members. +You can define your own groups and use regexp patterns to match specific object type members. A custom group definition may follow one of the two following interfaces: