Skip to content

Commit

Permalink
feat(sort-decorators): adds feature
Browse files Browse the repository at this point in the history
  • Loading branch information
hugop95 committed Dec 24, 2024
1 parent b06d9db commit 5101dbd
Show file tree
Hide file tree
Showing 2 changed files with 460 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/content/rules/sort-decorators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ Specifies the sorting locales. See [String.prototype.localeCompare() - locales](

### partitionByComment

<sub>
- type:
- `boolean | string | string[]` (`BaseType`)
- `{ block: BaseType; line: BaseType }`
</sub>
<sub>default: `false`</sub>

Allows you to use comments to separate class decorators into logical groups.
Expand All @@ -216,6 +221,7 @@ Allows you to use comments to separate class decorators into logical groups.
- `false` — Comments will not be used as delimiters.
- `string` — A regexp pattern to specify which comments should act as delimiters.
- `string[]` — An array of regexp patterns to specify which comments should act as delimiters.
- `{ block: BaseType; line: BaseType }` — Specify which block and line comments should act as delimiters.

### groups

Expand Down
Loading

0 comments on commit 5101dbd

Please sign in to comment.