I18n: Update eslint rule to catch some untranslated object properties (#105072)
This commit is contained in:
+8
-2
@@ -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',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user