Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion packages/vscode-webui/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,16 @@ export default [
"i18next/no-literal-string": [
"error",
{
mode: "jsx-text-only", // only check jsx
mode: "jsx-only", // limit to JSX text and attributes to reduce noise
// Only check user-facing attributes; ignore design/technical attrs like className/variant/size/id
"jsx-attributes": {
include: ["^title$", "^alt$", "^placeholder$", "^label$"],
},
// Ignore developer-oriented strings passed to specific utility calls
callees: {
// Do not validate any function call arguments globally to reduce noise
exclude: [".*"],
},
words: {
exclude: [
// Numbers and common symbols
Expand All @@ -38,6 +47,10 @@ export default [
"^(px|rem|em|%|vh|vw|auto|none|inherit|KB|MB|GB|ms|s|min|h)$",
// Boolean and null values
"^(true|false|null|undefined)$",
// Single letters (initials)
"^[A-Za-z]$",
// Brand names
"^Pochi$",
],
},
},
Expand Down