-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.js
52 lines (51 loc) · 1.23 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**
* @fileoverview Eslint rules for CodeceptJS
* @author Peter Onneby
*/
"use strict";
module.exports = {
configs: {
recommended: {
env: {
"codeceptjs/codeceptjs": true
},
plugins: ["codeceptjs"],
rules: {
"codeceptjs/no-actor-in-scenario": "off",
"codeceptjs/no-exclusive-tests": "error",
"codeceptjs/no-skipped-tests": "error",
"codeceptjs/no-pause-in-scenario": "error"
}
}
},
environments: {
codeceptjs: {
globals: {
actor: false,
by: false,
inject: false,
locate: false,
pause: false,
secret: false,
session: false,
Feature: false,
Scenario: false,
xScenario: false,
Before: false,
After: false,
BeforeSuite: false,
AfterSuite: false,
within: false,
Data: false,
DataTable: false,
Helper: false
},
}
},
rules: {
"no-actor-in-scenario": require("./lib/rules/no-actor-in-scenario"),
"no-exclusive-tests": require("./lib/rules/no-exclusive-tests"),
"no-skipped-tests": require("./lib/rules/no-skipped-tests"),
"no-pause-in-scenario": require("./lib/rules/no-pause-in-scenario")
}
};