diff --git a/package.json b/package.json index 51a2d1f8..b72d3cf3 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,14 @@ } ], "prefer-template": "warn", - "prettier/prettier": "warn" + "prettier/prettier": "warn", + "no-restricted-syntax": [ + "warn", + { + "selector": "JSXText[value=/\\w/]", + "message": "Use 't(...)' instead of literal text in JSX" + } + ] } }, "homepage": ".", diff --git a/src/components/LoadingMessage.tsx b/src/components/LoadingMessage.tsx index 59321f87..0bfd4232 100644 --- a/src/components/LoadingMessage.tsx +++ b/src/components/LoadingMessage.tsx @@ -4,7 +4,7 @@ export const LoadingMessage = () => { // !! KEEP THIS IN SYNC WITH index.html !! return (