Skip to content

Commit 6220bd7

Browse files
[Sdk 653] Linting changes (#31)
* internal consent * fixed some typos * modified testing and logging * changelog entry * example * added comments to the example * example * changes to example * typo * fixed the example * tests added * eliminated old tests * grouped events * clean up * tests fixed * lint * linttier * json * kk Co-authored-by: ArtursKadikis <[email protected]>
1 parent 2fd716b commit 6220bd7

17 files changed

+870
-893
lines changed

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
.vscode/
3+
bulk_data/
4+
coverage/
5+
data/
6+
examples/

.eslintrc.js

Lines changed: 198 additions & 177 deletions
Original file line numberDiff line numberDiff line change
@@ -1,185 +1,206 @@
11
module.exports = {
2+
"extends": ["airbnb-base"],
23
"env": {
3-
"node": true
4-
},
5-
"extends": "eslint:recommended",
6-
"parserOptions": {
7-
"ecmaVersion": 2017
4+
"node": true,
5+
"mocha": true,
6+
"es6": true,
7+
"mongo": true
88
},
99
"rules": {
10+
"no-unused-vars": "warn",
11+
"no-var" : "off",
12+
"func-names": "off",
13+
"consistent-return": "off",
14+
"prefer-rest-params": "off",
15+
"radix": "off",
16+
"prefer-spread": "off",
17+
"no-plusplus": "off",
18+
"camelcase": "off",
19+
"no-use-before-define": "off",
20+
"no-lonely-if": "off",
21+
"no-restricted-syntax": "off",
22+
"vars-on-top": "off",
23+
"no-param-reassign": "off",
24+
"max-len": "off",
25+
"guard-for-in": "off",
26+
"no-underscore-dangle": "off",
27+
"no-bitwise": "off",
28+
"no-mixed-operators": "off",
29+
"object-shorthand": "off",
30+
//reassess till here ====
1031
"block-spacing": [
11-
"error",
12-
"always"
13-
],
14-
"brace-style": [
15-
"error",
16-
"stroustrup"
17-
],
18-
"comma-spacing": [
19-
"error",
20-
{
21-
"before": false,
22-
"after": true
23-
}
24-
],
25-
"comma-style": [
26-
"error",
27-
"last"
28-
],
29-
"computed-property-spacing": [
30-
"error",
31-
"never"
32-
],
33-
"curly": [
34-
"error",
35-
"all"
36-
],
37-
"eol-last": "off",
38-
"func-call-spacing": [
39-
"error",
40-
"never"
41-
],
42-
"indent": [
43-
"error",
44-
4
45-
],
46-
"key-spacing": [
47-
"error",
48-
{
49-
"beforeColon": false,
50-
"afterColon": true
51-
}
52-
],
53-
"keyword-spacing": [
54-
"error",
55-
{
56-
"before": true,
57-
"after": true
58-
}
59-
],
60-
"lines-between-class-members": [
61-
"error",
62-
"always"
63-
],
64-
"no-multi-spaces": [
65-
"error"
66-
],
67-
"no-trailing-spaces": [
68-
"error",
69-
{
70-
"ignoreComments": true
71-
}
72-
],
73-
"no-whitespace-before-property": [
74-
"error"
75-
],
76-
"object-curly-newline": [
77-
"error",
78-
{
79-
"multiline": true,
80-
"consistent": true
81-
}
82-
],
83-
"object-property-newline": [
84-
"error",
85-
{
86-
"allowAllPropertiesOnSameLine": true
87-
}
88-
],
89-
"semi": [
90-
"error",
91-
"always"
92-
],
93-
"semi-style": [
94-
"error",
95-
"last"
96-
],
97-
"space-before-blocks": [
98-
"error",
99-
"always"
100-
],
101-
"space-before-function-paren": [
102-
"error",
103-
"never"
104-
],
105-
"space-in-parens": [
106-
"error",
107-
"never"
108-
],
109-
"space-infix-ops": [
110-
"error"
111-
],
112-
"space-unary-ops": [
113-
"error",
114-
{
115-
"words": true,
116-
"nonwords": false
117-
}
118-
],
119-
"switch-colon-spacing": [
120-
"error"
121-
],
122-
"unicode-bom": [
123-
"error",
124-
"never"
125-
],
126-
"linebreak-style": [
127-
"error",
128-
"unix"
129-
],
130-
"no-useless-escape": "off",
131-
"quotes": "off",
132-
"valid-jsdoc": [
133-
"error",
134-
{
135-
"requireReturn": false
136-
}
137-
],
138-
"require-jsdoc": [
139-
"error",
140-
{
141-
"require": {
142-
"FunctionDeclaration": true,
143-
"MethodDefinition": true,
144-
"ClassDeclaration": true,
145-
"ArrowFunctionExpression": true,
146-
"FunctionExpression": false
147-
}
148-
}
149-
],
150-
"no-console": [
151-
"error"
152-
],
153-
"dot-notation": [
154-
"error"
155-
],
156-
"eqeqeq": [
157-
"error",
158-
"always"
159-
],
160-
"no-alert": [
161-
"error"
162-
],
163-
"no-caller": [
164-
"error"
165-
],
166-
"no-eval": [
167-
"error"
168-
],
169-
"no-extend-native": [
170-
"error"
171-
],
172-
"no-iterator": [
173-
"error"
174-
],
175-
"no-loop-func": [
176-
"error"
177-
],
178-
"no-shadow": [
179-
"error"
180-
]
32+
"error",
33+
"always"
34+
],
35+
"brace-style": [
36+
"error",
37+
"stroustrup"
38+
],
39+
"comma-spacing": [
40+
"error",
41+
{
42+
"before": false,
43+
"after": true
44+
}
45+
],
46+
"comma-style": [
47+
"error",
48+
"last"
49+
],
50+
"computed-property-spacing": [
51+
"error",
52+
"never"
53+
],
54+
"curly": [
55+
"error",
56+
"all"
57+
],
58+
"eol-last": "off",
59+
"func-call-spacing": [
60+
"error",
61+
"never"
62+
],
63+
"indent": [
64+
"error",
65+
4
66+
],
67+
"key-spacing": [
68+
"error",
69+
{
70+
"beforeColon": false,
71+
"afterColon": true
72+
}
73+
],
74+
"keyword-spacing": [
75+
"error",
76+
{
77+
"before": true,
78+
"after": true
79+
}
80+
],
81+
"lines-between-class-members": [
82+
"error",
83+
"always"
84+
],
85+
"no-multi-spaces": [
86+
"error"
87+
],
88+
"no-trailing-spaces": [
89+
"error",
90+
{
91+
"ignoreComments": true
92+
}
93+
],
94+
"no-whitespace-before-property": [
95+
"error"
96+
],
97+
"object-curly-newline": [
98+
"error",
99+
{
100+
"multiline": true,
101+
"consistent": true
102+
}
103+
],
104+
"object-property-newline": [
105+
"error",
106+
{
107+
"allowAllPropertiesOnSameLine": true
108+
}
109+
],
110+
"semi": [
111+
"error",
112+
"always"
113+
],
114+
"semi-style": [
115+
"error",
116+
"last"
117+
],
118+
"space-before-blocks": [
119+
"error",
120+
"always"
121+
],
122+
"space-before-function-paren": [
123+
"error",
124+
"never"
125+
],
126+
"space-in-parens": [
127+
"error",
128+
"never"
129+
],
130+
"space-infix-ops": [
131+
"error"
132+
],
133+
"space-unary-ops": [
134+
"error",
135+
{
136+
"words": true,
137+
"nonwords": false
138+
}
139+
],
140+
"switch-colon-spacing": [
141+
"error"
142+
],
143+
"unicode-bom": [
144+
"error",
145+
"never"
146+
],
147+
"linebreak-style": [
148+
"error",
149+
"unix"
150+
],
151+
"no-useless-escape": "off",
152+
"quotes": "off",
153+
"valid-jsdoc": [
154+
"error",
155+
{
156+
"requireReturn": false
157+
}
158+
],
159+
"require-jsdoc": [
160+
"error",
161+
{
162+
"require": {
163+
"FunctionDeclaration": true,
164+
"MethodDefinition": true,
165+
"ClassDeclaration": true,
166+
"ArrowFunctionExpression": true,
167+
"FunctionExpression": false
168+
}
169+
}
170+
],
171+
"no-console": [
172+
"error"
173+
],
174+
"dot-notation": [
175+
"error"
176+
],
177+
"eqeqeq": [
178+
"error",
179+
"always"
180+
],
181+
"no-alert": [
182+
"error"
183+
],
184+
"no-caller": [
185+
"error"
186+
],
187+
"no-eval": [
188+
"error"
189+
],
190+
"no-extend-native": [
191+
"error"
192+
],
193+
"no-iterator": [
194+
"error"
195+
],
196+
"no-loop-func": [
197+
"error"
198+
],
199+
"no-shadow": [
200+
"error"
201+
]
181202
},
182-
"overrides": [
203+
"overrides": [
183204
{
184205
"files": [
185206
"test/**/*.js",
@@ -194,4 +215,4 @@ module.exports = {
194215
}
195216
}
196217
]
197-
};
218+
};

0 commit comments

Comments
 (0)