forked from taozhi8833998/node-sql-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
129 lines (129 loc) · 2.17 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"env": {
"es6": true,
"browser": true,
"node": true
},
"extends": [
"airbnb-base",
"strict"
],
"rules": {
"comma-dangle": [
2,
"always-multiline"
],
"comma-spacing": 0,
"class-methods-use-this": 0,
"eqeqeq": [
2,
"allow-null"
],
"no-var": 2,
"new-cap": 0,
"no-param-reassign": 0,
"key-spacing": [
2,
{
"singleLine": {
"beforeColon": false,
"afterColon": true
},
"multiLine": {
"beforeColon": true,
"afterColon": true,
"align": "colon"
}
}
],
"keyword-spacing": [
2,
{
"overrides": {
"if": {
"after": true
},
"else": {
"before": true,
"after": true
},
"for": {
"after": true
},
"while": {
"after": true
},
"catch": {
"before": true,
"after": false
}
}
}
],
"complexity": [
"error",
20
],
"space-infix-ops": 2,
"consistent-return": 0,
"template-curly-spacing": [
"error",
"never"
],
"array-bracket-spacing": ["error", "never"],
"strict": 0,
"semi": [
2,
"never"
],
"max-len": 0,
"prefer-arrow-callback": 2,
"arrow-spacing": [
2,
{
"before": true,
"after": true
}
],
"arrow-parens": [
1,
"as-needed"
],
"camelcase": 0,
"no-unused-expressions": [
2,
{
"allowShortCircuit": true,
"allowTernary": true
}
],
"global-require": 1,
"arrow-body-style": [
2,
"as-needed"
],
"newline-per-chained-call": 0,
"no-underscore-dangle": 0,
"no-plusplus": 0,
"no-console": [
2,
{
"allow": [
"warn",
"error"
]
}
],
"no-restricted-syntax": [
0,
"ForOfStatement"
],
"no-unused-vars": [
2,
{
"argsIgnorePattern": "next|receiver"
}
],
"import/no-dynamic-require": 1
}
}