diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 60ca938b50b..4c195f8fc68 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -13,7 +13,7 @@ const baseConfig = { 'prettier', ], parser: '@typescript-eslint/parser', - plugins: ['import', '@typescript-eslint', 'prettier', 'react', 'tsdoc'], + plugins: ['import', '@typescript-eslint', 'prettier', 'react', 'tsdoc','i18next'], rules: { '@typescript-eslint/no-var-requires': 'off', // prefer import/no-dynamic-require 'import/extensions': ['error', {pattern: {cjs: 'always', json: 'always'}}], @@ -32,6 +32,7 @@ const baseConfig = { additionalHooks: '(useMemoObservable|useObservableCallback|useAsync)', }, ], + 'i18next/no-literal-string': 2, }, settings: { 'import/extensions': ['.cjs', '.mjs', '.js', '.jsx', '.ts', '.tsx'], diff --git a/package.json b/package.json index c067881e287..2bfca014158 100644 --- a/package.json +++ b/package.json @@ -145,5 +145,8 @@ "node-notifier": "^10.0.0" }, "packageManager": "yarn@1.22.19", - "isSanityMonorepo": true + "isSanityMonorepo": true, + "dependencies": { + "eslint-plugin-i18next": "^6.0.3" + } }