I18n: Update eslint rule to catch some untranslated object properties (#105072)

This commit is contained in:
Tom Ratcliffe
2025-05-28 21:14:43 +01:00
committed by GitHub
parent 57ec71a7a0
commit 7bfa78c6e6
189 changed files with 3633 additions and 648 deletions
+8 -2
View File
@@ -300,9 +300,15 @@ module.exports = [
'packages/grafana-ui/**/*.{ts,tsx,js,jsx}',
...pluginsToTranslate.map((plugin) => `${plugin}/**/*.{ts,tsx,js,jsx}`),
],
ignores: ['**/*.story.tsx', '**/*.{test,spec}.{ts,tsx}', '**/__mocks__/', 'public/test', '**/spec/**/*.{ts,tsx}'],
ignores: [
'public/test/**',
'**/*.{test,spec,story}.{ts,tsx}',
'**/{tests,__mocks__,__tests__,fixtures,spec,mocks}/**',
'**/{test-utils,testHelpers,mocks}.{ts,tsx}',
'**/mock*.{ts,tsx}',
],
rules: {
'@grafana/no-untranslated-strings': 'error',
'@grafana/no-untranslated-strings': ['error', { calleesToIgnore: ['^css$', 'use[A-Z].*'] }],
'@grafana/no-translation-top-level': 'error',
},
},