Change lint rules to AirBnB

This commit is contained in:
Alicia Sykes
2019-09-01 13:38:13 +01:00
parent 7ffc35afb6
commit 335c8eec53
18 changed files with 704 additions and 663 deletions

View File

@@ -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);
}