-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
46 lines (46 loc) · 1.26 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
{
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": true
},
"plugins": ["prefer-object-spread", "cypress"],
"rules": {
"arrow-spacing": "warn",
"brace-style": "warn",
"comma-dangle": "off",
"curly": "error",
"eqeqeq": ["error", "smart"],
"key-spacing": "error",
"keyword-spacing": "warn",
"max-len": "warn",
"no-console": "off",
"no-constant-condition": "off",
"no-eq-null": "warn",
"no-prototype-builtins": "warn",
"no-restricted-globals": ["error", "event", "Promise", "name", "context"],
"no-restricted-syntax": ["error", "ForOfStatement"],
"no-var": "warn",
"object-shorthand": "warn",
"prefer-const": "error",
"prefer-object-spread/prefer-object-spread": "error",
"prettier/prettier": "warn",
"require-atomic-updates": "off",
"quotes": ["warn", "single"],
"semi": "error",
"space-before-blocks": ["warn", "always"],
"space-before-function-paren": ["error", "never"]
},
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"jquery": true,
"cypress/globals": true
},
"globals": {
"chrome": true
}
}