-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
40 lines (40 loc) · 1.31 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
{
"extends": "airbnb",
"installedESLint": true,
"parser": "typescript-eslint-parser",
"plugins": [
"import"
],
"rules": {
"quotes": ["error", "double"],
"max-lines": ["error", 300],
"no-multiple-empty-lines": ["error", {"max": 1, "maxBOF": 0, "maxEOF": 1}],
"max-nested-callbacks": ["error", 4],
"object-curly-newline": ["error", { "multiline": true }],
"max-len": ["error", 95],
"max-params": ["error", 4],
"indent": ["error", 2, {
"FunctionDeclaration": {"parameters": "first"},
"CallExpression": {"arguments": "first"},
"ArrayExpression": "first",
"MemberExpression": 1,
"SwitchCase": 1
}],
"comma-dangle": ["error", "never"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "strict" }],
"no-multi-spaces": ["error"],
"no-empty-function": ["error", { "allow": ["constructors", "setters"] } ],
"complexity": ["error", 6],
"no-extra-boolean-cast": "off",
"no-mixed-operators": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"import/prefer-default-export": "off",
"no-param-reassign": "off",
"class-methods-use-this": "off",
"no-useless-constructor": "off",
"no-unused-vars": "off",
"jsx-a11y/img-has-alt": "off",
"no-else-return": "off"
}
}