-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
103 lines (103 loc) · 2.85 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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"root": true,
"extends": [
"airbnb-base"
],
"plugins": [
"align-assignments",
"chai-friendly"
],
"env": {
"es6": true,
"node": true,
"mocha": true
},
"overrides": [
{
"files": ["*.test.js", "*.spec.js"],
"rules": {
"no-unused-expressions": "off",
"chai-friendly/no-unused-expressions": "error"
}
}
],
"rules": {
"align-assignments/align-assignments": ["error"],
"arrow-body-style": "off",
"linebreak-style": 0,
"global-require": "off",
"lines-between-class-members": "off",
"indent": [
"error",
4
],
"max-len": [
"error",
999
],
"key-spacing": [
2,
{
"singleLine": {
"beforeColon": false,
"afterColon": true
},
"multiLine": {
"beforeColon": true,
"afterColon": true,
"align": "colon"
}
}
],
"no-multi-spaces": [
"off"
],
"class-methods-use-this": "off",
"prefer-destructuring": "off",
"func-names": "off",
"func-style": [
"error",
"declaration",
{
"allowArrowFunctions": true
}
],
"import/newline-after-import": "off",
"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": "off",
"no-async-promise-executor": "off",
"no-prototype-builtins": "off",
"no-bitwise":"off",
"no-mixed-operators":"off",
"no-duplicate-imports": "error",
"no-eval": "off",
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"no-console": "off",
"no-use-before-define": "off",
"no-plusplus": "off",
"no-await-in-loop": "off",
"no-shadow": "off",
"no-lonely-if": "off",
"no-restricted-syntax": "off",
"no-throw-literal": "off",
"no-continue": "off",
"no-return-assign": "off",
"no-loop-func": "off",
"no-case-declarations": "off",
"no-nested-ternary":"warn",
"max-classes-per-file": "off",
"comma-dangle": ["error", "never"],
"camelcase": "off",
"eol-last": "off",
"consistent-return": "off",
"object-curly-newline": "off",
"quotes": [2, "single", { "avoidEscape": true }],
"prefer-promise-reject-errors": "off",
"prefer-arrow-callback": "off",
"newline-per-chained-call": "off",
"block-spacing": "off",
"space-in-parens": "off",
"object-curly-spacing": ["error", "never"]
}
}