Skip to content

Commit 3bf2829

Browse files
committed
Maintenance
1 parent a8b8c96 commit 3bf2829

File tree

5 files changed

+2737
-2153
lines changed

5 files changed

+2737
-2153
lines changed

.eslintrc.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
4+
export default tseslint.config(
5+
eslint.configs.recommended,
6+
...tseslint.configs.recommended,
7+
{
8+
rules: {
9+
"@typescript-eslint/no-this-alias": 0,
10+
},
11+
},
12+
);

jest/global-setup.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async function prepareObsidian() {
7070
mkdirp.sync(OBSIDIAN_CONFIG_DIR);
7171
fs.writeFileSync(
7272
OBSIDIAN_CONFIG_PATH,
73-
'{"vaults":{},"updateDisabled":true}'
73+
'{"vaults":{},"updateDisabled":true}',
7474
);
7575

7676
debug(" Running Obsidian for 90 seconds to setup");
@@ -132,15 +132,15 @@ async function prepareVault() {
132132
debug(` Saving ${vaultCommunityPluginsConfigFilePath}`);
133133
fs.writeFileSync(
134134
vaultCommunityPluginsConfigFilePath,
135-
JSON.stringify(["obsidian-outliner"])
135+
JSON.stringify(["obsidian-outliner"]),
136136
);
137137

138138
debug(` Disabling Safe Mode`);
139139
mkdirp.sync(OBSIDIAN_LOCAL_STORAGE_PATH);
140140
const localStorage = levelup(leveldown(OBSIDIAN_LOCAL_STORAGE_PATH));
141141
const key = Buffer.from(
142142
"5f6170703a2f2f6f6273696469616e2e6d640001656e61626c652d706c7567696e2d35613135343733313236303931313131",
143-
"hex"
143+
"hex",
144144
);
145145
const value = Buffer.from("0174727565", "hex");
146146
await promisify(localStorage.put.bind(localStorage))(key, value);

0 commit comments

Comments
 (0)