refactor: drop eslint config love (#1341)

* Drop eslint config love

* More eqeqeq

* Even more
This commit is contained in:
Tony
2024-05-18 17:00:09 +08:00
committed by GitHub
parent d92a6f4439
commit e1d06b93b7
21 changed files with 32 additions and 60 deletions
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -226,9 +226,9 @@ function parseFileInfo(r: UnparsedFileInfo): FileInfo {
isDirectory: r.isDirectory,
isSymlink: r.isSymlink,
size: r.size,
mtime: r.mtime != null ? new Date(r.mtime) : null,
atime: r.atime != null ? new Date(r.atime) : null,
birthtime: r.birthtime != null ? new Date(r.birthtime) : null,
mtime: r.mtime !== null ? new Date(r.mtime) : null,
atime: r.atime !== null ? new Date(r.atime) : null,
birthtime: r.birthtime !== null ? new Date(r.birthtime) : null,
readonly: r.readonly,
fileAttributes: r.fileAttributes,
dev: r.dev,
@@ -759,7 +759,7 @@ async function readTextFileLines(
path: pathStr,
rid: null as number | null,
async next(): Promise<IteratorResult<string>> {
if (this.rid == null) {
if (this.rid === null) {
this.rid = await invoke<number>("plugin:fs|read_text_file_lines", {
path: pathStr,
options,