Skip to content

Commit

Permalink
chore: correct partition by comment description
Browse files Browse the repository at this point in the history
  • Loading branch information
chirokas authored Sep 22, 2024
1 parent f6b7803 commit a9aee0c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/content/rules/sort-exports.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Controls whether sorting should be case-sensitive or not.

<sub>default: `false`</sub>

Allows you to use comments to separate the members of intersection types into logical groups. This can help in organizing and maintaining large enums by creating partitions within the enum based on comments.
Allows you to use comments to separate the exports into logical groups. This can help in organizing and maintaining large enums by creating partitions within the enum based on comments.

- `true` — All comments will be treated as delimiters, creating partitions.
- `false` — Comments will not be used as delimiters.
Expand Down
5 changes: 3 additions & 2 deletions docs/content/rules/sort-objects.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ Controls whether sorting should be case-sensitive or not.
Allows you to use comments to separate the keys of objects into logical groups. This can help in organizing and maintaining large enums by creating partitions within the enum based on comments.

- `true` — All comments will be treated as delimiters, creating partitions.
- `false` — Comments will not be used as delimiters.
- string — A glob pattern to specify which comments should act as delimiters.
- `false` — Comments will not be used as delimiters.
- `string` — A glob pattern to specify which comments should act as delimiters.
- `string[]` — An array of glob patterns to specify which comments should act as delimiters.

### partitionByNewLine

Expand Down
2 changes: 1 addition & 1 deletion rules/sort-classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default createEslintRule<SortClassesOptions, MESSAGE_ID>({
},
partitionByComment: {
description:
'Allows to use comments to separate the nodes into logical groups.',
'Allows to use comments to separate the class members into logical groups.',
anyOf: [
{
type: 'array',
Expand Down
2 changes: 1 addition & 1 deletion rules/sort-enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default createEslintRule<Options, MESSAGE_ID>({
},
partitionByComment: {
description:
'Allows you to use comments to separate the class members into logical groups.',
'Allows you to use comments to separate the members of enums into logical groups.',
anyOf: [
{
type: 'array',
Expand Down
2 changes: 1 addition & 1 deletion rules/sort-exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default createEslintRule<Options, MESSAGE_ID>({
},
partitionByComment: {
description:
'Allows you to use comments to separate the class members into logical groups.',
'Allows you to use comments to separate the exports into logical groups.',
anyOf: [
{
type: 'array',
Expand Down
2 changes: 1 addition & 1 deletion rules/sort-objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default createEslintRule<Options, MESSAGE_ID>({
},
partitionByComment: {
description:
'Allows you to use comments to separate the class members into logical groups.',
'Allows you to use comments to separate the keys of objects into logical groups.',
anyOf: [
{
type: 'array',
Expand Down

0 comments on commit a9aee0c

Please sign in to comment.