forked from Nick-Mazuk/eslint-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
+cypress.js
27 lines (27 loc) · 942 Bytes
/
+cypress.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
module.exports = {
plugins: ['cypress', 'chai-friendly'],
overrides: [
{
files: ['*.test.ts', 'cypress/**/*.ts'],
rules: {
'no-unused-expressions': 'off',
'chai-friendly/no-unused-expressions': 'error',
'cypress/no-assigning-return-values': 'error',
'cypress/no-unnecessary-waiting': 'error',
'cypress/no-async-tests': 'error',
'cypress/assertion-before-screenshot': 'error',
'cypress/no-force': 'error',
'import/unambiguous': 'off',
'promise/catch-or-return': 'off',
'promise/always-return': 'off',
'@typescript-eslint/no-floating-promises': 'off',
},
},
{
files: ['*.test.ts'],
rules: {
'max-lines-per-function': 'warn',
},
},
],
}