Change lint rules to AirBnB
This commit is contained in:
parent
7ffc35afb6
commit
335c8eec53
18 changed files with 704 additions and 663 deletions
25
server.js
25
server.js
|
|
@ -1,14 +1,13 @@
|
|||
var connect = require('connect')
|
||||
var serveStatic = require('serve-static')
|
||||
|
||||
const port = process.env.PORT || 3002
|
||||
|
||||
try {
|
||||
connect()
|
||||
.use(serveStatic(__dirname + '/dist'))
|
||||
.listen(port, () =>
|
||||
console.log(`Boom, app is running on port ${port}`)
|
||||
)
|
||||
} catch (error) {
|
||||
console.log('Something fucked up', error)
|
||||
const connect = require('connect');
|
||||
const serveStatic = require('serve-static');
|
||||
|
||||
const port = process.env.PORT || 3002;
|
||||
|
||||
/* eslint no-console: 0 */
|
||||
try {
|
||||
connect()
|
||||
.use(serveStatic(`${__dirname}/dist`))
|
||||
.listen(port, () => console.log(`Boom, app is running on port ${port}`));
|
||||
} catch (error) {
|
||||
console.log('Something fucked up', error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue