-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
49 lines (49 loc) · 1.35 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
module.exports = {
"env": {
"node": true,
"es6": true,
"jquery": true,
"browser": true,
},
"globals": {
"session": "readonly",
"request": "readonly",
"response": "readonly",
"MercadoPago": "readonly",
"describe": "readonly",
"it": "readonly",
"history": "readonly",
"location": "readonly",
},
"extends": ["airbnb-base"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"modules": true,
},
},
"rules": {
"linebreak-style": 0,
"no-var": "error",
"prefer-const": "error",
"complexity": ["error", { "max": 6 }],
"eqeqeq": "error",
"curly": "error",
"prefer-template": "off",
"quotes": ["error", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"import/no-unresolved": "off",
"import/extensions": ["error", { "js": "never" }],
"operator-linebreak": "off",
"object-curly-newline": ["error", {
"ImportDeclaration": { "multiline": true, "minProperties": 4 }
}],
"implicit-arrow-linebreak": ["error", "beside"],
"no-param-reassign": ["error", { "props": false }],
"no-underscore-dangle": "off",
"no-redeclare": "off",
"comma-dangle": ["error", "never"],
"object-shorthand": ["error", "never"]
},
};