Skip to content

Commit 9111fe7

Browse files
committed
Disable translation rules in enterprise_search test files
1 parent 3d3e643 commit 9111fe7

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.eslintrc.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,6 +1852,19 @@ module.exports = {
18521852
],
18531853
},
18541854

1855+
/**
1856+
* Search overrides
1857+
*/
1858+
1859+
{
1860+
files: ['x-pack/solutions/search/**/*.{ts,tsx}'],
1861+
excludedFiles: ['x-pack/solutions/search/**/*.test.tsx'],
1862+
rules: {
1863+
'@kbn/i18n/strings_should_be_translated_with_i18n': 'warn',
1864+
'@kbn/i18n/strings_should_be_translated_with_formatted_message': 'warn',
1865+
},
1866+
},
1867+
18551868
/**
18561869
* Enterprise Search overrides
18571870
* NOTE: We also have a single rule at the bottom of the file that
@@ -1902,8 +1915,6 @@ module.exports = {
19021915
'error',
19031916
{ vars: 'all', args: 'after-used', ignoreRestSiblings: true, varsIgnorePattern: '^_' },
19041917
],
1905-
'@kbn/i18n/strings_should_be_translated_with_i18n': 'warn',
1906-
'@kbn/i18n/strings_should_be_translated_with_formatted_message': 'warn',
19071918
'@kbn/telemetry/event_generating_elements_should_be_instrumented': 'warn',
19081919
},
19091920
},

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)