diff --git a/.eslintrc.js b/.eslintrc.js index 8a182ff..81fe30d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,7 +2,8 @@ module.exports = { "env": { "browser": true, "es6": true, - "jest/globals": true + "jest/globals": true, + "node": true }, "extends": [ "eslint:recommended", @@ -43,7 +44,7 @@ module.exports = { "arrow-spacing": [ "error", { "before": true, "after": true } ], - "no-console": "error", + "no-console": "warn", "react/prop-types": 0 } } diff --git a/app.js b/app.js index cfc7e75..6dc30f0 100644 --- a/app.js +++ b/app.js @@ -1,11 +1,11 @@ -const express = require("express"); -const app = express(); +const express = require('express') +const app = express() // Heroku dynamically sets a port -const PORT = process.env.PORT || 5000; +const PORT = process.env.PORT || 5000 -app.use(express.static("dist")); +app.use(express.static('dist')) app.listen(PORT, () => { - console.log("server started on port 5000"); -}); + console.log('server started on port 5000') +})