mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
wip api-v3: adds some comments and more eslint rules
This commit is contained in:
16
.eslintrc
16
.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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user