-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
49 lines (48 loc) · 1.36 KB
/
.eslintrc
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
{
"extends":["airbnb/base"],
"parserOptions": {
"parser": "@babel/eslint-parser",
"requireConfigFile": false,
"ecmaVersion": 2022,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"Handlebars"
},
"rules": {
"indent": ["error", 4],
"eol-last": ["error", "always"],
"semi": ["error", "always"],
"no-console": 1,
"consistent-return": 1,
"no-alert": 2,
"no-debugger": 1,
"no-use-before-define": 0,
"import/no-unresolved": 0,
"array-callback-return": 1,
"import/extensions": 0,
"no-underscore-dangle": 0,
"no-param-reassign": 0,
"class-methods-use-this": 0,
"import/prefer-default-export": 0,
"no-undef": 0,
"no-continue": 0,
"import/no-cycle": 0,
"no-plusplus": 0,
"no-useless-escape": 0,
"func-names": 0,
"no-restricted-globals": 0,
"no-restricted-syntax": [
"error",
{
"selector": "ForInStatement",
"message": "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries }, and iterate over the resulting array."
}
],
},
}