Skip to content

Commit 949fa51

Browse files
committed
Add eslint and fixed the errors
1 parent 471d99e commit 949fa51

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1440
-448
lines changed

.eslintrc.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"node": true,
6+
"es6": true
7+
},
8+
"extends": "eslint:recommended",
9+
"parserOptions": {
10+
"ecmaVersion": 6
11+
},
12+
"globals": {
13+
"Paho": false
14+
},
15+
"rules": {
16+
"indent": [
17+
"warn",
18+
2
19+
],
20+
"quotes": [
21+
"warn",
22+
"single"
23+
],
24+
"semi": [
25+
"warn",
26+
"always"
27+
],
28+
"no-unused-vars": [
29+
"warn",
30+
{ "vars": "all", "args": "after-used", "ignoreRestSiblings": false }
31+
],
32+
"no-console": "off"
33+
}
34+
};

0 commit comments

Comments
 (0)