-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathtestcafe.js
37 lines (34 loc) · 1.13 KB
/
testcafe.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
31
32
33
34
35
36
37
module.exports = {
env: {
node: true,
browser: true,
jquery: true
},
plugins: [
'testcafe',
],
extends: [
'plugin:testcafe/recommended',
],
globals: {
test: true,
fixture: true
},
rules: {
// Allow using any types of dependencies
'import/no-extraneous-dependencies': 'off',
// Allow modifying parameters in event handlers to test these use cases
'no-param-reassign': ['error', { 'props': false }],
// Allow `await` inside of loops. This is a common case for TestCafe tests
'no-await-in-loop': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/promise-function-async': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/init-declarations': 'off',
'no-restricted-globals': 'off',
}
};