mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
chore: add new lint rule - check hardcoded text
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// Lists shared by the i18n rules.
|
||||
|
||||
// Attributes whose string value is shown to a user, so a literal there is
|
||||
// hardcoded copy. Technical attributes (variant, tone, type, icon, size, role,
|
||||
// href, id, class, name) are deliberately absent.
|
||||
export const USER_TEXT_ATTRS = new Set([
|
||||
"alt",
|
||||
"aria-label",
|
||||
"description",
|
||||
"emptyText",
|
||||
"error",
|
||||
"eyebrow",
|
||||
"hint",
|
||||
"label",
|
||||
"placeholder",
|
||||
"suffix",
|
||||
"title",
|
||||
"unit",
|
||||
]);
|
||||
Reference in New Issue
Block a user