From 163dce4a78b9d88d33360a1f715b8a6642fc4daa Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Wed, 29 Mar 2023 19:52:17 +0530 Subject: [PATCH] ESLint: set `no-literal-string` only for JSX (#5195) * eslint: set `no-literal-string` only for JSX * ignore for callees --- .eslintrc.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 374459244f0..9e2bbb1cd85 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -44,10 +44,13 @@ "i18next/no-literal-string": [ "warn", { - "mode": "all", + "mode": "jsx-only", "jsx-attributes": { "include": ["label", "placeholder", "error", "title"], "exclude": [".*"] + }, + "callees": { + "exclude": [".*"] } } ]