-
-
Notifications
You must be signed in to change notification settings - Fork 151
/
.eslintrc
39 lines (39 loc) · 1.09 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
{
"extends": ["standard", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"jest": true
},
"plugins": ["function-call-context"],
"rules": {
"no-var": "warn",
"no-undef": "off",
"no-console": "warn",
"prefer-template": "warn",
"no-extra-parens": ["warn", "all", { "nestedBinaryExpressions": false }],
"object-shorthand": ["warn", "always"],
"quote-props": ["warn", "consistent-as-needed"],
"no-redeclare": "off",
"accessor-pairs": "off",
"no-use-before-define": "off",
"function-call-context/call-in-function": [
"warn",
{
"functions": ["random", "randomFloat", "dice"],
"methods": [
"random",
"randomMany",
"fm",
"pluck",
"pluckMany",
"shuffle"
]
}
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/type-annotation-spacing": "warn",
"@typescript-eslint/no-redeclare": "error"
}
}