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

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

@ -125,10 +125,10 @@ define('admin/manage/categories', ['vendor/jquery/serializeObject/jquery.ba-seri
} }
function itemDragDidEnd(e) { function itemDragDidEnd(e) {
var isCategoryUpdate = (newCategoryId != -1); var isCategoryUpdate = (newCategoryId !== -1);
// Update needed? // 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 parentCategory = isCategoryUpdate ? sortables[newCategoryId] : sortables[e.from.dataset.cid];
var modified = {}; var modified = {};
var i = 0; var i = 0;

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

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

Loading…
Cancel
Save