Skip to content

Commit 752752e

Browse files
committed
Disable translation rules in enterprise_search test files
1 parent 024346c commit 752752e

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
@@ -1937,6 +1937,16 @@ module.exports = {
19371937
'@typescript-eslint/no-explicit-any': 'error',
19381938
},
19391939
},
1940+
/**
1941+
* Disable translation rule for test files
1942+
*/
1943+
{
1944+
files: ['x-pack/solutions/search/plugins/enterprise_search/**/*.test.tsx'],
1945+
rules: {
1946+
'@kbn/i18n/strings_should_be_translated_with_formatted_message': 'off',
1947+
'@kbn/i18n/strings_should_be_translated_with_i18n': 'off',
1948+
},
1949+
},
19401950

19411951
/**
19421952
* 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)