Skip to content

Commit 668a8e1

Browse files
committed
Set esversion to 12
1 parent 510c47b commit 668a8e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.eslintrc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module.exports = {
22
"env": {
3-
"es6": true,
3+
"es2021": true,
44
"node": true
55
},
66
"extends": "eslint:recommended",
77
"parserOptions": {
8-
"ecmaVersion": 2018
8+
"ecmaVersion": 12
99
},
1010
"rules": {
1111
"accessor-pairs": "error",
@@ -213,7 +213,7 @@ module.exports = {
213213
"no-useless-return": "error",
214214
"no-var": "off",
215215
"no-void": "error",
216-
"no-warning-comments": "error",
216+
"no-warning-comments": "off",
217217
"no-whitespace-before-property": "error",
218218
"no-with": "error",
219219
"nonblock-statement-body-position": "error",

scripts/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function originIsAllowed(origin) {
121121
}
122122
logger.info('Creating index.html file.');
123123
});
124-
})();
124+
}());
125125

126126
wsServer.on('request', (request) => {
127127
if (!originIsAllowed(request.origin)) {

0 commit comments

Comments
 (0)