Skip to content

Commit d71ad7d

Browse files
committed
fix: safe frontmatter stringify + ignore web/ in eslint
- src/views/detail.ts: handle object/string/number/boolean explicitly to avoid [object Object] - eslint.config.mjs: re-enable no-base-to-string, ignore web/** - bump to 0.7.1
1 parent f285e81 commit d71ad7d

6 files changed

Lines changed: 8 additions & 7 deletions

File tree

eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ export default defineConfig([
3636
"@typescript-eslint/no-unsafe-argument": "off",
3737
"@typescript-eslint/no-unsafe-call": "off",
3838
"@typescript-eslint/no-unsafe-return": "off",
39-
"@typescript-eslint/no-base-to-string": "off",
39+
"@typescript-eslint/no-base-to-string": "error",
4040
},
4141
},
4242
{
43-
ignores: ["main.js", "node_modules/**", "*.mjs"],
43+
ignores: ["main.js", "node_modules/**", "*.mjs", "web/**"],
4444
},
4545
]);

main.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.

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "agentfiles",
33
"name": "Agentfiles",
4-
"version": "0.7.0",
4+
"version": "0.7.1",
55
"minAppVersion": "1.4.11",
66
"description": "Discover, organize, and edit AI agent skills, commands, and agents across Claude Code, Cursor, Codex, Windsurf, and more.",
77
"author": "Railly Hugo",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "agentfiles",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "AI Skills Manager for Obsidian",
55
"main": "main.js",
66
"scripts": {

src/views/detail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export class DetailPanel {
209209
prop.createSpan({ cls: "as-fm-key", text: key });
210210

211211
const valStr =
212-
(typeof value === "object" || Array.isArray(value)) ? JSON.stringify(value) : String(value);
212+
typeof value === "object" ? JSON.stringify(value) : typeof value === "string" ? value : typeof value === "number" || typeof value === "boolean" ? String(value) : JSON.stringify(value);
213213

214214
if (valStr.length > 200) {
215215
prop.createDiv({ cls: "as-fm-value-long", text: valStr });

versions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"0.3.0": "1.4.11",
66
"0.4.3": "1.4.11",
77
"0.6.0": "1.4.11",
8-
"0.7.0": "1.4.11"
8+
"0.7.0": "1.4.11",
9+
"0.7.1": "1.4.11"
910
}

0 commit comments

Comments
 (0)