-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.js
62 lines (62 loc) · 2.15 KB
/
cypress.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
53
54
55
56
57
58
59
60
61
62
module.exports = {
env: {
browser: true,
node: true,
es2024: true,
'cypress/globals': true
},
plugins: ['es'],
parser: '@babel/eslint-parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 'latest'
},
overrides: [],
settings: {},
extends: ['eslint:recommended', 'plugin:cypress/recommended'],
rules: {
'array-bracket-newline': ['warn', 'consistent'],
'arrow-body-style': ['error', 'as-needed'],
'arrow-spacing': ['warn', { before: true, after: true }],
'brace-style': ['warn', '1tbs'],
'consistent-this': ['error', 'self'],
eqeqeq: ['error', 'smart'],
'es/no-classes': ['error'],
'es/no-generators': ['error'],
'func-call-spacing': ['error'],
indent: ['warn', 4, { SwitchCase: 1, MemberExpression: 'off' }],
'linebreak-style': ['error', 'unix'],
'new-parens': ['error'],
'no-alert': ['error'],
'no-caller': ['error'],
'no-confusing-arrow': ['error', { allowParens: false }],
'no-console': ['error'],
'no-debugger': ['error'],
'no-duplicate-imports': ['error'],
'no-eval': ['error'],
'no-extend-native': ['error'],
'no-extra-bind': ['error'],
'no-implicit-globals': ['error'],
'no-implied-eval': ['error'],
'no-lone-blocks': ['error'],
'no-multi-assign': ['error'],
'no-new-func': ['error'],
'no-script-url': ['error'],
'no-self-compare': ['error'],
'no-sequences': ['error'],
'no-shadow': ['error', { hoist: 'functions' }],
'no-template-curly-in-string': ['error'],
'no-throw-literal': ['error'],
'no-trailing-spaces': ['error'],
'no-undefined': ['error'],
'no-use-before-define': ['error', { functions: false }],
'no-useless-call': ['error'],
'no-useless-computed-key': ['error'],
'no-useless-rename': ['error'],
'prefer-rest-params': ['error'],
'prefer-spread': ['error'],
'prefer-template': ['error'],
semi: ['error', 'always'],
'vars-on-top': ['error']
}
};