Skip to content

Commit d9c24c7

Browse files
committed
docs: update glob usage information
1 parent 8c77d11 commit d9c24c7

File tree

10 files changed

+16
-22
lines changed

10 files changed

+16
-22
lines changed

docs/content/rules/sort-astro-attributes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Example:
171171

172172
<sub>default: `{}`</sub>
173173

174-
You can define your own groups for Astro attributes. The [minimatch](https://github.com/isaacs/minimatch) library is used for pattern matching.
174+
You can define your own groups for Astro attributes using custom glob patterns for matching.
175175

176176
Example:
177177

docs/content/rules/sort-classes.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Allows you to use comments to separate the class members into logical groups. Th
189189

190190
- `true` — All comments will be treated as delimiters, creating partitions.
191191
- `false` — Comments will not be used as delimiters.
192-
- string — A pattern using [minimatch](https://github.com/isaacs/minimatch) to specify which comments should act as delimiters.
192+
- string — A glob pattern to specify which comments should act as delimiters.
193193

194194
### groups
195195

@@ -332,7 +332,7 @@ class Example {
332332

333333
<sub>default: `{}`</sub>
334334

335-
You can define your own groups for class members. The [minimatch](https://github.com/isaacs/minimatch) library is used for pattern matching.
335+
You can define your own groups for class members using custom glob patterns for matching.
336336

337337
Example:
338338

docs/content/rules/sort-enums.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Allows you to use comments to separate the members of enums into logical groups.
120120

121121
- `true` — All comments will be treated as delimiters, creating partitions.
122122
- `false` — Comments will not be used as delimiters.
123-
- string — A pattern using [minimatch](https://github.com/isaacs/minimatch) to specify which comments should act as delimiters.
123+
- string — A glob pattern to specify which comments should act as delimiters.
124124

125125
## Usage
126126

docs/content/rules/sort-imports.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Controls whether sorting should be case-sensitive or not.
151151

152152
Allows you to specify a pattern for identifying internal imports. This is useful for distinguishing your own modules from external dependencies.
153153

154-
The [minimatch](https://github.com/isaacs/minimatch) library is used for pattern matching.
154+
You can use glob patterns to define these internal imports.
155155

156156
### newlinesBetween
157157

@@ -254,7 +254,7 @@ import type { BaseOptions } from './index.d.ts'
254254

255255
<sub>default: `{ value: {}, type: {} }`</sub>
256256

257-
You can define your own groups for importing values or types. The [minimatch](https://github.com/isaacs/minimatch) library is used for pattern matching.
257+
You can define your own groups for importing values of types using custom glob patterns for matching.
258258

259259
Example:
260260

docs/content/rules/sort-interfaces.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,7 @@ Controls whether sorting should be case-sensitive or not.
167167

168168
Allows you to specify names or patterns for interfaces that should be ignored by this rule. This can be useful if you have specific interfaces that you do not want to sort.
169169

170-
You can specify their names or a pattern to ignore, for example: `'Component*'` to ignore all interfaces whose names begin with the word “Component”.
171-
172-
The [minimatch](https://github.com/isaacs/minimatch) library is used for pattern matching.
170+
You can specify their names or a glob pattern to ignore, for example: `'Component*'` to ignore all interfaces whose names begin with the word “Component”.
173171

174172
### partitionByNewLine
175173

@@ -222,7 +220,7 @@ Predefined Groups:
222220

223221
<sub>default: `{}`</sub>
224222

225-
You can define your own groups for interface members. The [minimatch](https://github.com/isaacs/minimatch) library is used for pattern matching.
223+
You can define your own groups for interface members using custom glob patterns for matching.
226224

227225
Example:
228226

docs/content/rules/sort-jsx-props.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ Controls whether sorting should be case-sensitive or not.
168168

169169
Allows you to specify names or patterns for JSX elements that should be ignored by this rule. This can be useful if you have specific components that you do not want to sort.
170170

171-
For example: `'Table*'` to ignore all interfaces whose names begin with the word “Table”.
172-
173-
The [minimatch](https://github.com/isaacs/minimatch) library is used for pattern matching.
171+
You can specify their names or a glob pattern to ignore, for example: `'Table*'` to ignore all object types whose names begin with the word Table.
174172

175173
### groups
176174

@@ -190,7 +188,7 @@ Predefined Groups:
190188

191189
<sub>default: `{}`</sub>
192190

193-
You can define your own groups for JSX props. The [minimatch](https://github.com/isaacs/minimatch) library is used for pattern matching.
191+
You can define your own groups for JSX props using custom glob patterns for matching.
194192

195193
Example:
196194

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Predefined Group:
177177

178178
<sub>default: `{}`</sub>
179179

180-
You can define your own groups for Type object values. The [minimatch](https://github.com/isaacs/minimatch) library is used for pattern matching.
180+
You can define your own groups for type object members using custom glob patterns for matching.
181181

182182
Example:
183183

docs/content/rules/sort-objects.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Allows you to use comments to separate the keys of objects into logical groups.
189189

190190
- `true` — All comments will be treated as delimiters, creating partitions.
191191
- `false` — Comments will not be used as delimiters.
192-
- string — A pattern using [minimatch](https://github.com/isaacs/minimatch) to specify which comments should act as delimiters.
192+
- string — A glob pattern to specify which comments should act as delimiters.
193193

194194
### partitionByNewLine
195195

@@ -230,9 +230,7 @@ Determines whether this rule should be applied to styled-components like librari
230230

231231
Allows you to specify names or patterns for object types that should be ignored by this rule. This can be useful if you have specific objects that you do not want to sort.
232232

233-
For example: `'User*'` to ignore all interfaces whose names begin with the word “User”.
234-
235-
The [minimatch](https://github.com/isaacs/minimatch) library is used for pattern matching.
233+
You can specify their names or a glob pattern to ignore, for example: `'User*'` to ignore all object types whose names begin with the word “User”.
236234

237235
### customIgnore
238236

@@ -266,7 +264,7 @@ There are no predefined groups. You must use this with the `customGroups` option
266264

267265
<sub>default: `{}`</sub>
268266

269-
You can define your own groups for object keys. The [minimatch](https://github.com/isaacs/minimatch) library is used for pattern matching.
267+
You can define your own groups for object keys using custom glob patterns for matching.
270268

271269
```js
272270
{

docs/content/rules/sort-svelte-attributes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Example:
168168

169169
<sub>default: `{}`</sub>
170170

171-
You can define your own groups for Svelte attributes. The [minimatch](https://github.com/isaacs/minimatch) library is used for pattern matching.
171+
You can define your own groups for Svelte attributes using custom glob patterns for matching.
172172

173173
Example:
174174

docs/content/rules/sort-vue-attributes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Predefined Groups:
183183

184184
<sub>default: `{}`</sub>
185185

186-
You can define your own groups for Vue attributes. The [minimatch](https://github.com/isaacs/minimatch) library is used for pattern matching.
186+
You can define your own groups for Vue attributes using custom glob patterns for matching.
187187

188188
Example:
189189

0 commit comments

Comments
 (0)