-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy pathlegacy.js
34 lines (33 loc) · 1.11 KB
/
legacy.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'),
'unsafe-to-chain-command': require('./lib/rules/unsafe-to-chain-command'),
'no-unnecessary-waiting': require('./lib/rules/no-unnecessary-waiting'),
'no-async-before': require('./lib/rules/no-async-before'),
'no-async-tests': require('./lib/rules/no-async-tests'),
'assertion-before-screenshot': require('./lib/rules/assertion-before-screenshot'),
'require-data-selectors': require('./lib/rules/require-data-selectors'),
'no-force': require('./lib/rules/no-force'),
'no-pause': require('./lib/rules/no-pause'),
'no-debug': require('./lib/rules/no-debug'),
},
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',
},
},
},
}