mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-21 07:51:30 +02:00
ESlint no-extra-boolean-cast
and no-shadow-restricted-names
This commit is contained in:
@@ -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",
|
||||
|
||||
2
app.js
2
app.js
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user