-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
139 lines (139 loc) · 3.88 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
130
131
132
133
134
135
136
137
138
139
{
"env": {
"es6": true,
"node": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 7,
"requireConfigFile": false
},
"parser": "@babel\\eslint-parser",
"extends": "eslint:all",
"rules": {
"array-element-newline": "off",
"capitalized-comments": "off",
"class-methods-use-this": "off",
"complexity": "off",
"consistent-this": "off",
"default-case": "off",
"dot-location": "off",
"func-names": "off",
"function-call-argument-newline": "off",
"global-require": "off",
"id-length": "off",
"indent": [
"error", 4, {
"SwitchCase": 1
}
],
"init-declarations": "off",
"line-comment-position": "off",
"linebreak-style": "off",
"lines-around-comment": "off",
"max-depth": "off",
"max-len": "off",
"max-lines": "off",
"max-lines-per-function": "off",
"max-params": "off",
"max-statements": "off",
"multiline-comment-style": "off",
"multiline-ternary": "off",
"new-cap": [
"error",
{"properties": false}
],
"newline-per-chained-call": "off",
"no-await-in-loop": "off",
"no-confusing-arrow": "off",
"no-console": "off",
"no-continue": "off",
"no-empty": "off",
"no-empty-function": "off",
"no-implicit-coercion": "off",
"no-inline-comments": "off",
"no-invalid-this": "off",
"no-loop-func": "off",
"no-magic-numbers": "off",
"no-mixed-operators": "off",
"no-mixed-requires": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-process-env": "off",
"no-return-assign": "off",
"no-ternary": "off",
"no-trailing-spaces": [
"error",
{"ignoreComments": false}
],
"no-underscore-dangle": "off",
"no-useless-constructor": "off",
"no-void": "off",
"object-property-newline": "off",
"one-var": [
"off", {
"const": "always"
}
],
"padded-blocks": "off",
"prefer-destructuring": [
"error", {
"array": false
}, {
"enforceForRenamedProperties": true
}
],
"prefer-promise-reject-errors": [
"error", {"allowEmptyReject": true}
],
"require-atomic-updates": "off",
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true,
"FunctionExpression": true
}
}],
"require-unicode-regexp": "off",
"sort-keys": "off",
"sort-vars": "off",
"space-before-function-paren": "off",
"quote-props": "off",
"valid-jsdoc": [
"error", {
"prefer": {
"return": "return"
}
}
]
},
"overrides": [
{
"files": ["public/**/*.js"],
"env": {
"es6": false,
"node": false,
"browser": true
},
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script"
},
"rules": {
"no-new": "off",
"no-var": "off",
"prefer-arrow-callback": "off",
"prefer-template": "off"
}
},
{
"files": ["public/views/**/*.js"],
"rules": {
"no-implicit-globals": "off"
}
}
]
}