forked from foretagsplatsen/eslint-plugin-cypress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
34 lines (33 loc) · 1.17 KB
/
index.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
const globals = require('globals')
module.exports = {
rules: {
'no-assigning-return-values': require('./lib/rules/no-assigning-return-values'),
'no-unnecessary-waiting': require('./lib/rules/no-unnecessary-waiting'),
'no-async-tests': require('./lib/rules/no-async-tests'),
'assertion-before-screenshot': require('./lib/rules/assertion-before-screenshot'),
'no-single-expect-in-then-or-should': require('./lib/rules/no-single-expect-in-then-or-should'),
'no-useless-then-or-should': require('./lib/rules/no-useless-then-or-should'),
'no-expect-for-stub': require('./lib/rules/no-expect-for-stub'),
'require-data-selectors': require('./lib/rules/require-data-selectors'),
'no-force': require('./lib/rules/no-force'),
'no-pause': require('./lib/rules/no-pause'),
},
configs: {
recommended: require('./lib/config/recommended'),
},
environments: {
globals: {
globals: Object.assign({
cy: false,
Cypress: false,
expect: false,
assert: false,
chai: false,
}, globals.browser, globals.mocha),
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
},
},
},
}