Skip to content

Commit 073fe0c

Browse files
authored
docs: refine sort-arrays example configuration selector
1 parent dbcd0b8 commit 073fe0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/content/rules/sort-arrays.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ Example configuration 1: only sort arrays followed by `as const`.
342342
'error',
343343
{
344344
useConfigurationIf: {
345-
matchesAstSelector: 'TSAsExpression > ArrayExpression',
345+
matchesAstSelector: 'TSAsExpression[typeAnnotation.typeName.name=const] > ArrayExpression',
346346
},
347347
type: 'alphabetical',
348348
},

0 commit comments

Comments
 (0)