diff --git a/.eslintrc b/.eslintrc index b10e9e46ac..d765d72851 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,8 +4,20 @@ "quotes": [2, "single"], "linebreak-style": [2, "unix"], "semi": [2, "always"], - "no-extra-parens": [2], - "no-unexpected-multiline": [2] + "no-extra-parens": 2, + "no-unexpected-multiline": 2, + "block-scoped-var": 2, + "dot-location": [2, "property"], + "dot-notation": 2, + "eqeqeq": 2, + "no-caller": 2, + "no-eval": 2, + "no-extend-native": 2, + "no-extra-bind": 2, + "no-fallthrough": 2, + "no-floating-decimal": 2, + "no-empty-pattern": 2, + "no-empty-label": 2 }, "env": { "es6": true, diff --git a/website/src/libs/api-v3/logger.js b/website/src/libs/api-v3/logger.js index e40aed7b99..34f0bf002b 100644 --- a/website/src/libs/api-v3/logger.js +++ b/website/src/libs/api-v3/logger.js @@ -12,7 +12,8 @@ let isProd = nconf.get('NODE_ENV') === 'production'; let logger = new winston.Logger(); if (isProd) { - // TODO production logging + // TODO production logging, use loggly + // log errors to console too } else { logger .add(winston.transports.Console);