ESlint no-extra-boolean-cast

and no-shadow-restricted-names
v1.18.x
Peter Jaszkowiak 8 years ago
parent 239d7f84dd
commit 64a6322002

@ -47,7 +47,7 @@
"vars-on-top": "off",
"no-restricted-syntax": "off",
"no-shadow": "off",
// "no-script-url": "off",
"no-script-url": "off",
// "linebreak-style": "off",
// "one-var": "off",
@ -89,8 +89,8 @@
"no-unneeded-ternary": "off",
"no-sequences": "off",
"no-extend-native": "off",
"no-shadow-restricted-names": "off",
"no-extra-boolean-cast": "off",
// "no-shadow-restricted-names": "off",
// "no-extra-boolean-cast": "off",
// "no-path-concat": "off",
// "no-unused-expressions": "off",
// "no-return-assign": "off",

@ -36,7 +36,7 @@ winston.add(winston.transports.Console, {
colorize: true,
timestamp: function () {
var date = new Date();
return (!!nconf.get('json-logging')) ? date.toJSON() : date.getDate() + '/' + (date.getMonth() + 1) + ' ' + date.toTimeString().substr(0, 8) + ' [' + global.process.pid + ']';
return nconf.get('json-logging') ? date.toJSON() : date.getDate() + '/' + (date.getMonth() + 1) + ' ' + date.toTimeString().substr(0, 8) + ' [' + global.process.pid + ']';
},
level: nconf.get('log-level') || (global.env === 'production' ? 'info' : 'verbose'),
json: (!!nconf.get('json-logging')),

@ -425,7 +425,7 @@ app.cacheBuster = null;
app.toggleNavbar = function (state) {
var navbarEl = $('.navbar');
if (navbarEl) {
navbarEl.toggleClass('hidden', !!!state);
navbarEl.toggleClass('hidden', !state);
}
};

@ -4,7 +4,7 @@
var overrides = overrides || {};
if ('undefined' !== typeof window) {
(function ($, undefined) {
(function ($) {
require(['translator'], function (translator) {
$.fn.getCursorPosition = function () {
var el = $(this).get(0);

Loading…
Cancel
Save