forked from cypress-io/eslint-plugin-cypress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
32 lines (31 loc) · 1 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
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-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'),
},
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',
},
},
},
}