-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
111 lines (111 loc) · 3.42 KB
/
.eslintrc.json
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"env": {
"commonjs": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": [
"plugin:cypress/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"require-atomic-updates": "off",
"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",
// Possible errors
"comma-dangle": [2, "never"],
"no-cond-assign": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty": 2,
"no-extra-parens": 2,
"camelcase": [2, {"properties": "always"}],
"no-extra-semi": 2,
"no-func-assign": 2,
"no-inner-declarations": [2, "both"],
"no-obj-calls": 2,
"no-sparse-arrays": 2,
"no-unexpected-multiline": 2,
"no-unreachable": 2,
// Best practices
"block-scoped-var": 2,
"curly": 2,
"dot-location": [2, "object"],
"dot-notation": 2,
"eqeqeq": 2,
"no-alert": 2,
"no-case-declarations": 2,
"no-eq-null": 2,
"no-fallthrough": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-multi-spaces": 2,
"no-native-reassign": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-proto": 2,
"no-redeclare": 2,
"no-return-assign": [2, "always"],
"no-self-assign": 2,
"no-self-compare": 2,
"no-throw-literal": 2,
"no-unmodified-loop-condition": 2,
"no-useless-concat": 2,
"vars-on-top": 2,
"yoda": 2,
// Variables
"no-delete-var": 2,
"no-shadow-restricted-names": 2,
"no-undef-init": 2,
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
// Javascript
"callback-return": [2, ["callback", "cb", "next"]],
"global-require": 2,
"no-new-require": 2,
// Stylistic Issues
"array-bracket-spacing": [2, "never"],
"brace-style": 2,
"func-names": 2,
"func-style": [2, "expression"],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"keyword-spacing": 2,
"new-parens": 2,
"no-array-constructor": 2,
"no-inline-comments": 2,
"no-lonely-if": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": [2, {"max": 1}],
"no-new-object": 2,
"no-whitespace-before-property": 2,
"no-spaced-func": 2,
"no-unneeded-ternary": 2,
"one-var-declaration-per-line": [2, "always"],
"operator-assignment": [2, "always"],
"operator-linebreak": [2, "none"],
"padded-blocks": [2, "never"],
"semi-spacing": 2,
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"],
"spaced-comment": [2, "always"],
"indent": ["error", 4, {"SwitchCase": 1}],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "never"],
"prefer-const": "error"
},
"plugins": [
"cypress"
]
}