ESlint eqeqeq

and require-jsdoc, no-negated-condition
v1.18.x
Peter Jaszkowiak 8 years ago
parent 144fa8698c
commit fdf4f873bf

@ -25,6 +25,7 @@
"no-tabs": "off",
"indent": ["error", "tab"],
"no-eq-null": "off",
"camelcase": "off",
// ES6
"prefer-rest-params": "off",
@ -64,10 +65,9 @@
"no-unused-vars": "off",
"no-mixed-spaces-and-tabs": "off",
"no-useless-concat": "off",
"require-jsdoc": "off",
"eqeqeq": "off",
"camelcase": "off",
"no-negated-condition": "off",
// "require-jsdoc": "off",
// "eqeqeq": "off",
// "no-negated-condition": "off",
// "one-var-declaration-per-line": "off",
// "no-lonely-if": "off",
// "radix": "off",

@ -133,7 +133,7 @@ define('admin/general/dashboard', ['semver', 'Chart', 'translator'], function (s
function lighten(col, amt) {
var usePound = false;
if (col[0] == '#') {
if (col[0] === '#') {
col = col.slice(1);
usePound = true;
}

@ -125,10 +125,10 @@ define('admin/manage/categories', ['vendor/jquery/serializeObject/jquery.ba-seri
}
function itemDragDidEnd(e) {
var isCategoryUpdate = (newCategoryId != -1);
var isCategoryUpdate = (newCategoryId !== -1);
// Update needed?
if ((e.newIndex != undefined && e.oldIndex != e.newIndex) || isCategoryUpdate) {
if ((e.newIndex != null && e.oldIndex !== e.newIndex) || isCategoryUpdate) {
var parentCategory = isCategoryUpdate ? sortables[newCategoryId] : sortables[e.from.dataset.cid];
var modified = {};
var i = 0;

@ -422,7 +422,7 @@
return undefined;
}
var i = props.indexOf('.');
if (i == -1) {
if (i === -1) {
if (value !== undefined) {
obj[props] = value;
}

@ -37,7 +37,7 @@ var callbacks = {};
var newXhr = function () {
stdXhr.apply(this, arguments);
for (var method in callbacks) {
if (typeof callbacks[method] == 'function') {
if (typeof callbacks[method] === 'function') {
callbacks[method].apply(this, arguments);
}
}

Loading…
Cancel
Save