Skip to content

Commit

Permalink
Maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
vslinko committed Sep 2, 2024
1 parent a8b8c96 commit 3bf2829
Show file tree
Hide file tree
Showing 5 changed files with 2,737 additions and 2,153 deletions.
22 changes: 0 additions & 22 deletions .eslintrc.js

This file was deleted.

12 changes: 12 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
"@typescript-eslint/no-this-alias": 0,
},
},
);
6 changes: 3 additions & 3 deletions jest/global-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function prepareObsidian() {
mkdirp.sync(OBSIDIAN_CONFIG_DIR);
fs.writeFileSync(
OBSIDIAN_CONFIG_PATH,
'{"vaults":{},"updateDisabled":true}'
'{"vaults":{},"updateDisabled":true}',
);

debug(" Running Obsidian for 90 seconds to setup");
Expand Down Expand Up @@ -132,15 +132,15 @@ async function prepareVault() {
debug(` Saving ${vaultCommunityPluginsConfigFilePath}`);
fs.writeFileSync(
vaultCommunityPluginsConfigFilePath,
JSON.stringify(["obsidian-outliner"])
JSON.stringify(["obsidian-outliner"]),
);

debug(` Disabling Safe Mode`);
mkdirp.sync(OBSIDIAN_LOCAL_STORAGE_PATH);
const localStorage = levelup(leveldown(OBSIDIAN_LOCAL_STORAGE_PATH));
const key = Buffer.from(
"5f6170703a2f2f6f6273696469616e2e6d640001656e61626c652d706c7567696e2d35613135343733313236303931313131",
"hex"
"hex",
);
const value = Buffer.from("0174727565", "hex");
await promisify(localStorage.put.bind(localStorage))(key, value);
Expand Down
Loading

0 comments on commit 3bf2829

Please sign in to comment.