lint compliance

This commit is contained in:
yflory 2025-03-13 14:46:25 +01:00
parent 36b66c0c2d
commit dddb62d4f1
2 changed files with 6 additions and 5 deletions

View File

@ -65,6 +65,7 @@ module.exports = [{
"linebreak-style": ["off", "unix"],
quotes: ["off", "single"],
semi: ["error", "always"],
eqeqeq: ["error", "always"],
"no-irregular-whitespace": ["off"],
"no-self-assign": ["off"],
"no-empty": ["off"],

View File

@ -3461,11 +3461,11 @@ define([
b = [b];
}
if(a.length == 0 && b.length == 0) {
if(a.length === 0 && b.length === 0) {
return 0;
} else if (a.length == 0) {
} else if (a.length === 0) {
return -1;
} else if (b.length == 0) {
} else if (b.length === 0) {
return 1;
} else if(a[0] < b[0]) {
return -1;
@ -3494,10 +3494,10 @@ define([
};
var naturalSort = function(a, b) {
if (typeof(a) == "string") {
if (typeof(a) === "string") {
a = splitStringToTextAndNumbers(a);
}
if (typeof(b) == "string") {
if (typeof(b) === "string") {
b = splitStringToTextAndNumbers(b);
}