-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslintrc-tests.js
30 lines (30 loc) · 1.22 KB
/
eslintrc-tests.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module.exports = {
plugins: ['testing-library', 'jest'],
rules: {
'testing-library/await-async-queries': 'error',
'testing-library/no-manual-cleanup': 'error',
'testing-library/no-container': 'error',
'testing-library/no-await-sync-queries': 'error',
'testing-library/no-await-sync-events': 'error',
'testing-library/no-debugging-utils': 'error',
'testing-library/await-async-utils': 'error',
'testing-library/no-promise-in-fire-event': 'error',
'testing-library/no-render-in-lifecycle': 'error',
'testing-library/no-unnecessary-act': 'error',
'testing-library/no-wait-for-multiple-assertions': 'error',
'testing-library/prefer-explicit-assert': 'error',
'testing-library/prefer-presence-queries': 'error',
'testing-library/no-wait-for-side-effects': 'error',
'jest/no-disabled-tests': 'error',
'jest/prefer-called-with': 'error',
'jest/no-focused-tests': 'error',
'testing-library/prefer-screen-queries': 'error',
'jest/no-restricted-matchers': [
'error',
{
toMatchSnapshot:
'Use toMatchComponentSnapshot for components and toMatchInlineSnapshot otherwise',
},
],
},
};