-
Notifications
You must be signed in to change notification settings - Fork 80
/
.eslintrc.js
101 lines (101 loc) · 2.33 KB
/
.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
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
module.exports = {
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true,
},
"extends": [
"prettier",
"airbnb-base",
],
"globals": {
"$": "readonly",
"Resources": "readonly",
"order": "readonly",
"request": "readonly",
"response": "readonly",
"session": "readonly",
"dw": "readonly",
"empty": "readonly",
"Feature": "readonly",
"Scenario": "readonly",
"AdyenCheckout": "readonly",
"storeDetails": "writable",
"showStoreDetails": "readonly",
"checkout": "readonly",
"orderNo": "readonly",
"pspReference": "readonly",
"donationAmounts": "readonly",
"adyenGivingBackgroundUrl": "readonly",
"charityDescription": "readonly",
"adyenGivingLogoUrl": "readonly",
"charityName": "readonly",
"charityWebsite": "readonly",
"customer": "readonly",
"actor": "readonly",
"locate": "readonly",
"describe": "readonly",
"it": "readonly",
"copyCardData": "readonly",
"PIPELET_NEXT": "readonly",
"PIPELET_ERROR": "readonly",
"Urls": "readonly",
"SitePreferences": "readonly",
"document": "readonly",
"window": "readonly",
"location": "readonly",
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"modules": true,
},
},
"plugins": [
"prettier",
],
"ignorePatterns": [
"*.ds"
],
"rules": {
"prettier/prettier": "error",
"no-var": "error",
"prefer-const": "warn",
"complexity": [
"error",
{
"max": 5,
},
],
"eqeqeq": "error",
"curly": "error",
"import/no-unresolved": [
2,
{
"ignore": [
"^dw",
"^base",
"^\\*",
"^mockData"
],
},
],
"import/extensions": ["error", { "js": "never" }],
"import/no-extraneous-dependencies": "off",
"operator-linebreak": "off",
"object-curly-newline": ["error", {
"ImportDeclaration": { multiline: true, "minProperties": 4 }
}],
"import/prefer-default-export": "off",
"implicit-arrow-linebreak": "off",
"no-param-reassign": ["error", { "props": false }],
"no-plusplus": "off",
"import/extensions": "off",
"camelcase": "off",
"no-bitwise": "off",
"no-underscore-dangle": "off"
},
};