1 parent dbcd0b8 commit 073fe0cCopy full SHA for 073fe0c
1 file changed
docs/content/rules/sort-arrays.mdx
@@ -342,7 +342,7 @@ Example configuration 1: only sort arrays followed by `as const`.
342
'error',
343
{
344
useConfigurationIf: {
345
- matchesAstSelector: 'TSAsExpression > ArrayExpression',
+ matchesAstSelector: 'TSAsExpression[typeAnnotation.typeName.name=const] > ArrayExpression',
346
},
347
type: 'alphabetical',
348
0 commit comments