-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev'
* origin/dev: Use an environment variable to specify the ABE API URL Fix a couple of console.log message typos Add eslint and fix some lint errors Update package.json description
- Loading branch information
Showing
16 changed files
with
2,245 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
env: | ||
browser: true | ||
|
||
parserOptions: | ||
ecmaVersion: 6 | ||
|
||
extends: | ||
- eslint:recommended | ||
|
||
# see https://eslint.org/docs/user-guide/configuring#specifying-globals | ||
globals: | ||
# $: false | ||
# moment: false # TODO: use `import` to import this, and remove this exception | ||
# global: false | ||
# module: false | ||
db: false | ||
process: false # for webpack process.env variables | ||
|
||
rules: | ||
no-console: warn | ||
no-unused-vars: [error, { argsIgnorePattern: "^_" }] | ||
no-useless-escape: warn # TODO: remove (so this is an error) | ||
|
||
# Server-side: | ||
overrides: | ||
files: [ "*.js", "models/*.js", "routes/*.js", "scripts/*.js" ] | ||
env: | ||
browser: false | ||
node: true | ||
globals: | ||
Promise: false | ||
module: false | ||
require: false | ||
rules: | ||
no-console: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
{ | ||
"name": "forwardboard", | ||
"version": "1.0.0", | ||
"description": "FORWARDboard server ===", | ||
"main": "server.js", | ||
"dependencies": { | ||
"aws-sdk": "^2.87.0", | ||
"body-parser": "^1.17.2", | ||
"express": "^4.15.3", | ||
"express-sslify": "1.2.0", | ||
"mongoose": "^4.10.6", | ||
"package.json": "^2.0.1", | ||
"promise": "^7.1.1", | ||
"request": "^2.81.0", | ||
"serve-favicon": "^2.4.5", | ||
"socket.io": "^2.0.3" | ||
}, | ||
"devDependencies": {}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"start": "node server.js" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
"name": "FUTUREboard", | ||
"version": "1.0.0", | ||
"description": "FUTUREboard digital signage platform", | ||
"main": "server.js", | ||
"dependencies": { | ||
"aws-sdk": "^2.87.0", | ||
"body-parser": "^1.17.2", | ||
"express": "^4.15.3", | ||
"express-sslify": "1.2.0", | ||
"mongoose": "^4.10.6", | ||
"package.json": "^2.0.1", | ||
"promise": "^7.1.1", | ||
"request": "^2.81.0", | ||
"serve-favicon": "^2.4.5", | ||
"socket.io": "^2.0.3" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^4.19.1" | ||
}, | ||
"scripts": { | ||
"lint": "eslint --cache *.js lambda models routes scripts", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"start": "node server.js" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = function(io, db) { | ||
module.exports = function(io, _db) { | ||
|
||
io.on('connection', function(socket) { | ||
io.on('connection', function(_socket) { | ||
console.log("socket connected"); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.