aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/index.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-11-08 17:34:42 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commitc7a9dd1ec4d436c3893e2544d9b13bf46cfab2c8 (patch)
treedfd86598bf03b445ef71a3ed8f8eec72455725c3 /vnext/server/index.js
parent968fcc490d273799a7dfcafcfbe3af537cf10180 (diff)
Cleanup ESLint warnings
Diffstat (limited to 'vnext/server/index.js')
-rw-r--r--vnext/server/index.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/vnext/server/index.js b/vnext/server/index.js
index d393c4bc..95f88cd1 100644
--- a/vnext/server/index.js
+++ b/vnext/server/index.js
@@ -2,7 +2,8 @@ import express from 'express';
import { raw } from 'body-parser';
import cors from 'cors';
import config from 'config';
-var debug = require('debug')('http');
+import debug from 'debug';
+const log = debug('http');
// we'll talk about this in a minute:
import serverRenderer from './middleware/renderer';
@@ -11,7 +12,7 @@ import oembed from './middleware/oembed';
import urlExpand from './middleware/urlexpand';
const PORT = 8081;
-const path = require('path');
+import path from 'path';
// initialize the application and create the routes
const app = express();
@@ -42,5 +43,5 @@ app.listen(PORT, (error) => {
return console.log('something bad happened', error);
}
- debug('listening on ' + PORT + '...');
+ log('listening on ' + PORT + '...');
});