workspace: add eslint-config package (#510)

This commit is contained in:
undefined authored and GitHub committed 2023-02-09 23:06:03 +08:00
1 parent e7945a104f
commit 65311529bd
28 files changed
+230 -267

No files matched your search

+4 -4
View File
@@ -11,7 +11,7 @@ const Base64 = {
let enc3;
let enc4;
let i = 0;
input = Base64._utf8_encode(input);
input = Base64._utf8Encode(input);
while (i < input.length) {
chr1 = input.charCodeAt(i++);
chr2 = input.charCodeAt(i++);
@@ -52,11 +52,11 @@ const Base64 = {
if (enc3 !== 64) output += String.fromCharCode(chr2);
if (enc4 !== 64) output += String.fromCharCode(chr3);
}
output = Base64._utf8_decode(output);
output = Base64._utf8Decode(output);
return output;
},
_utf8_encode(string) {
_utf8Encode(string) {
string = string.replace(/\r\n/g, '\n');
let utftext = '';
for (let n = 0; n < string.length; n++) {
@@ -75,7 +75,7 @@ const Base64 = {
return utftext;
},
_utf8_decode(utftext) {
_utf8Decode(utftext) {
let string = '';
let i = 0;
let c = 0;
-2
View File
@@ -67,7 +67,6 @@ export async function pipeStream(read, write, abort) {
}
// https://github.com/andrasq/node-mongoid-js/blob/master/mongoid.js
/* eslint-disable */
export function mongoId(idstring: string) {
if (typeof idstring !== 'string') idstring = String(idstring);
return {
@@ -77,7 +76,6 @@ export function mongoId(idstring: string) {
sequence: parseInt(idstring.slice(18, 18 + 6), 16),
};
}
/* eslint-enable */
const loaded = {};