Skip to content

Commit e428a79

Browse files
committed
add Obsidan eslint settings and update code to fix
1 parent 2e630e5 commit e428a79

8 files changed

Lines changed: 4606 additions & 99 deletions

File tree

eslint.config.mjs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import tseslint from "typescript-eslint";
2+
import obsidianmd from "eslint-plugin-obsidianmd";
3+
import globals from "globals";
4+
import { globalIgnores } from "eslint/config";
5+
6+
export default tseslint.config(
7+
{
8+
languageOptions: {
9+
globals: {
10+
...globals.browser,
11+
},
12+
parserOptions: {
13+
projectService: {
14+
allowDefaultProject: ["eslint.config.mjs", "manifest.json"],
15+
},
16+
tsconfigRootDir: import.meta.dirname,
17+
extraFileExtensions: [".json"],
18+
},
19+
},
20+
},
21+
...obsidianmd.configs.recommended,
22+
globalIgnores([
23+
"node_modules",
24+
"dist",
25+
"esbuild.config.mjs",
26+
"eslint.config.mjs",
27+
"main.js",
28+
"package.json",
29+
"package-lock.json",
30+
"scripts",
31+
])
32+
);

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "beeminder-sync",
33
"name": "Beeminder Task Sync",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"minAppVersion": "1.11.4",
66
"description": "Sync task completions to Beeminder goals. Works with the Tasks plugin.",
77
"author": "Leon Staufer",

0 commit comments

Comments
 (0)