mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
lint compliance
This commit is contained in:
parent
36b66c0c2d
commit
dddb62d4f1
@ -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"],
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user