Skip to content

Commit

Permalink
ESLint: set no-literal-string only for JSX (#5195)
Browse files Browse the repository at this point in the history
* eslint: set `no-literal-string` only for JSX

* ignore for callees
  • Loading branch information
rithviknishad authored Mar 29, 2023
1 parent 4ceec21 commit 163dce4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@
"i18next/no-literal-string": [
"warn",
{
"mode": "all",
"mode": "jsx-only",
"jsx-attributes": {
"include": ["label", "placeholder", "error", "title"],
"exclude": [".*"]
},
"callees": {
"exclude": [".*"]
}
}
]
Expand Down

0 comments on commit 163dce4

Please sign in to comment.