Skip to content

Commit e1d06b9

Browse files
refactor: drop eslint config love (#1341)
* Drop eslint config love * More eqeqeq * Even more
1 parent d92a6f4 commit e1d06b9

File tree

21 files changed

+32
-60
lines changed

21 files changed

+32
-60
lines changed

.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"es2021": true
55
},
66
"extends": [
7-
"love",
87
"prettier",
98
"eslint:recommended",
109
"plugin:@typescript-eslint/recommended",

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"covector": "^0.10.2",
1919
"eslint": "8.57.0",
2020
"eslint-config-prettier": "9.1.0",
21-
"eslint-config-love": "47.0.0",
2221
"eslint-plugin-import": "2.29.1",
2322
"eslint-plugin-n": "17.7.0",
2423
"eslint-plugin-promise": "6.1.1",

plugins/deep-link/api-iife.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/deep-link/guest-js/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export async function onOpenUrl(
9898
handler: (urls: string[]) => void,
9999
): Promise<UnlistenFn> {
100100
const current = await getCurrent();
101-
if (current != null) {
101+
if (current) {
102102
handler(current);
103103
}
104104

plugins/fs/api-iife.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/fs/guest-js/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ function parseFileInfo(r: UnparsedFileInfo): FileInfo {
226226
isDirectory: r.isDirectory,
227227
isSymlink: r.isSymlink,
228228
size: r.size,
229-
mtime: r.mtime != null ? new Date(r.mtime) : null,
230-
atime: r.atime != null ? new Date(r.atime) : null,
231-
birthtime: r.birthtime != null ? new Date(r.birthtime) : null,
229+
mtime: r.mtime !== null ? new Date(r.mtime) : null,
230+
atime: r.atime !== null ? new Date(r.atime) : null,
231+
birthtime: r.birthtime !== null ? new Date(r.birthtime) : null,
232232
readonly: r.readonly,
233233
fileAttributes: r.fileAttributes,
234234
dev: r.dev,
@@ -759,7 +759,7 @@ async function readTextFileLines(
759759
path: pathStr,
760760
rid: null as number | null,
761761
async next(): Promise<IteratorResult<string>> {
762-
if (this.rid == null) {
762+
if (this.rid === null) {
763763
this.rid = await invoke<number>("plugin:fs|read_text_file_lines", {
764764
path: pathStr,
765765
options,

0 commit comments

Comments
 (0)