-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
35 lines (35 loc) · 890 Bytes
/
.eslintrc.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
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
mocha: true,
"cypress/globals": true,
},
extends: ["eslint:recommended", "plugin:cypress/recommended"],
globals: {
$: true,
$$: true,
browser: true,
expect: true,
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["cypress"],
rules: {
"arrow-parents": [0, "as-needed"],
"require-jsdoc": "off",
"brace-style": [0, "allman", { allowSingleLine: true }],
"max-len": ["error", { code: 300 }],
"object-curly-spacing": ["error", "always"],
"cypress/no-assigning-return-values": "error",
"cypress/no-unnecessary-waiting": "error",
"cypress/assertion-before-screenshot": "warn",
"cypress/no-force": "warn",
"cypress/no-async-tests": "error"
},
};