-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
45 lines (45 loc) · 1.26 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
module.exports = {
"env": {
"browser": true,
"es6": true,
"jquery": true,
"jest": true
},
"extends": "airbnb-base",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"Galleria": "readonly",
"google": "readonly",
"destupify": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"prefer-const": "error",
"no-var": "error",
"max-len": "off",
"indent": ["error", 4],
"brace-style": ["error", "stroustrup"],
"comma-dangle": ["error", "never"],
"no-plusplus": "off",
"prefer-destructuring": "off",
"default-case": "off",
"no-alert": "error",
"arrow-body-style": ["error", "always"],
"no-warning-comments": "error",
"no-constant-condition": "error",
"no-extra-parens": "warn",
"no-misleading-character-class": "warn",
"newline-after-var": "warn",
"sort-vars": "warn",
"no-unused-vars": "warn",
"no-undefined": "warn",
"quotes": "off",
"no-else-return": "off",
"no-use-before-define": "off",
"max-classes-per-file": "off",
"class-methods-use-this": "off"
}
};