Skip to content

Commit 42e82e3

Browse files
committed
refactor(no-unlocalized-strings): remove redundant SVG properties
Remove strokeLinecap, strokeLinejoin, fillRule, clipRule from manual ignore list - these are already detected via TypeScript's string literal union types (e.g., "butt" | "round" | "square"). Only keep SVG attributes that accept arbitrary strings like transform, clipPath, filter, mask, strokeDasharray, etc.
1 parent e02b9d1 commit 42e82e3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/rules/no-unlocalized-strings.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ const DEFAULT_IGNORE_PROPERTIES = [
4444
"key",
4545
// Testing ID - DOM Testing Library standard
4646
"data-testid",
47-
// SVG attributes with technical string values
47+
// SVG attributes that accept arbitrary strings (not detected by TypeScript types)
48+
// Note: Attributes with finite value sets like strokeLinecap, fillRule are auto-detected
49+
// via TypeScript's string literal union types
4850
"transform",
4951
"gradientTransform",
5052
"patternTransform",
@@ -55,11 +57,7 @@ const DEFAULT_IGNORE_PROPERTIES = [
5557
"markerStart",
5658
"markerMid",
5759
"markerEnd",
58-
"strokeDasharray",
59-
"strokeLinecap",
60-
"strokeLinejoin",
61-
"fillRule",
62-
"clipRule"
60+
"strokeDasharray"
6361
]
6462

6563
/**

0 commit comments

Comments
 (0)