Skip to content

Commit ad25f7b

Browse files
committed
Disable translation rules in enterprise_search test files
1 parent 41c80d9 commit ad25f7b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,6 +1941,16 @@ module.exports = {
19411941
'@typescript-eslint/no-explicit-any': 'error',
19421942
},
19431943
},
1944+
/**
1945+
* Disable translation rule for test files
1946+
*/
1947+
{
1948+
files: ['x-pack/solutions/search/plugins/enterprise_search/**/*.test.tsx'],
1949+
rules: {
1950+
'@kbn/i18n/strings_should_be_translated_with_formatted_message': 'off',
1951+
'@kbn/i18n/strings_should_be_translated_with_i18n': 'off',
1952+
},
1953+
},
19441954

19451955
/**
19461956
* Serverless Search overrides

x-pack/solutions/search/plugins/enterprise_search/public/applications/analytics/components/layout/page_template.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
* 2.0.
66
*/
77

8-
/* eslint-disable @kbn/i18n/strings_should_be_translated_with_i18n, @kbn/i18n/strings_should_be_translated_with_formatted_message */
9-
108
import '../../../__mocks__/shallow_useeffect.mock';
119
import { setMockValues } from '../../../__mocks__/kea_logic';
1210

0 commit comments

Comments
 (0)