-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.eslintrc.json
76 lines (76 loc) · 1.62 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
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
{
"extends": "@wfcd/eslint-config",
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"babelOptions": {
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-private-methods",
"@babel/plugin-syntax-import-assertions"
]
}
},
"rules": {
"valid-jsdoc": [
"error",
{
"requireReturn": false,
"requireReturnDescription": false,
"preferType": {
"String": "string",
"Number": "number",
"Boolean": "boolean",
"Function": "function",
"object": "Object",
"date": "Date",
"error": "Error"
},
"prefer": {
"return": "returns"
}
}
],
"strict": [
"error",
"safe"
],
"no-restricted-syntax": [
"off"
],
"no-await-in-loop": "off",
"import/no-unresolved": 0,
"no-useless-escape": 0,
"func-names": 0,
"no-underscore-dangle": "off",
"no-console": "off",
"import/no-extraneous-dependencies": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"global-require": "off",
"consistent-return": "off",
"import/extensions": [
"error",
"always"
]
},
"overrides": [
{
"files": ["site/**/*.js"],
"env": {
"browser": true,
"node": false,
"es6": true
},
"globals": {
"document": "readonly",
"window": "readonly",
"fetch": "readonly",
"localStorage": "readonly"
},
"rules": {
"no-extend-native": "off"
}
}
]
}