Skip to content

Commit 0c35c89

Browse files
committed
add mqtt.js eslint configuration
1 parent 897588a commit 0c35c89

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

.eslintrc.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true,
5+
"mocha": true
6+
},
7+
"rules": {
8+
"quotes": [
9+
1,
10+
"single"
11+
],
12+
"no-mixed-requires": [
13+
0,
14+
false
15+
],
16+
"no-underscore-dangle": 0,
17+
"yoda": [
18+
1,
19+
"always"
20+
],
21+
"indent": [
22+
2,
23+
2,
24+
{"SwitchCase": 1}
25+
],
26+
"brace-style": [
27+
2,
28+
"1tbs"
29+
],
30+
"comma-style": [
31+
2,
32+
"last"
33+
],
34+
"default-case": 2,
35+
"func-style": [
36+
2,
37+
"declaration"
38+
],
39+
"guard-for-in": 2,
40+
"no-floating-decimal": 2,
41+
"no-nested-ternary": 2,
42+
"no-undefined": 2,
43+
"radix": 2,
44+
"space-before-function-paren": [
45+
1,
46+
"always"
47+
],
48+
"space-after-keywords": [
49+
2,
50+
"always"
51+
],
52+
"space-before-blocks": 2,
53+
"spaced-comment": [
54+
2,
55+
"always",
56+
{
57+
"exceptions": [
58+
"-"
59+
],
60+
"markers": [
61+
"eslint",
62+
"jshint",
63+
"global"
64+
]
65+
}
66+
],
67+
"strict": [
68+
2,
69+
"global"
70+
],
71+
"wrap-iife": 2,
72+
"camelcase": 0,
73+
"new-cap": 0
74+
}
75+
}

0 commit comments

Comments
 (0)