Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "oxc", "import"],
"jsPlugins": ["eslint-plugin-obsidianmd"],
"jsPlugins": ["eslint-plugin-obsidianmd", "svelte-policy/oxlint"],
"categories": {
"correctness": "error"
},
Expand Down Expand Up @@ -43,6 +43,7 @@
"obsidianmd/no-global-this": "error",
"obsidianmd/settings-tab/no-manual-html-headings": "error",
"obsidianmd/commands/no-plugin-name-in-command-name": "error",
"svelte-policy/no-svelte-internal": "error",
"no-restricted-globals": [
"error",
{
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ root symlinks for local Obsidian loading.
- `npm ci`: install the locked dependencies for local development.
- `npm run dev`: watch-mode development build via Vite.
- `npm run typecheck`: run TypeScript 7's native `tsc --noEmit` for source and test projects.
- `npm run lint`: run oxlint against TypeScript sources and tooling scripts (includes the obsidianmd guideline rules via jsPlugins).
- `npm run lint`: run oxlint against TypeScript sources and tooling scripts (includes the obsidianmd guideline rules and the `svelte-policy` internals guard via jsPlugins), then the `svelte-policy` component checker, configured by `svelte-policy.json`.
- `npm run format:check`: run the configured oxfmt check (`npm run format` to write).
- `npm run check:a11y`: patch svelte-check if needed, run `lint:tsconfig`, then run `svelte-check --tsgo-experimental-api --fail-on-warnings` for source and test projects.
- `npm run lint:tsconfig`: fail with TS18003 when `tsconfig.json` or `tsconfig.test.json` matches no files, using the native compiler without type checking.
Expand Down
33 changes: 27 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"size:data": "node scripts/persistence-size.mjs",
"count:writes": "node scripts/write-counts.mjs",
"typecheck": "node node_modules/@typescript/native/bin/tsc --project tsconfig.json --noEmit && node node_modules/@typescript/native/bin/tsc --project tsconfig.test.json --noEmit",
"lint": "oxlint --deny-warnings src tests/e2e tests/tooling scripts patches .claude/skills/verify",
"lint": "oxlint --deny-warnings src tests/e2e tests/tooling scripts patches .claude/skills/verify && svelte-policy",
"lint:tsconfig": "node node_modules/@typescript/native/bin/tsc --project tsconfig.json --noEmit --noCheck && node node_modules/@typescript/native/bin/tsc --project tsconfig.test.json --noEmit --noCheck",
"format:check": "npm run format -- --check",
"test": "npm run check:a11y && vitest --configLoader bundle",
Expand All @@ -40,7 +40,7 @@
"check:a11y": "node patches/svelte-check.mjs && npm run lint:tsconfig && svelte-check --tsconfig ./tsconfig.json --tsgo-experimental-api --fail-on-warnings && svelte-check --tsconfig ./tsconfig.test.json --tsgo-experimental-api --fail-on-warnings",
"docs:build": "npm ci --prefix docs && npm run build --prefix docs",
"docs:deploy": "npm run docs:build && wrangler pages deploy docs/dist --project-name podnotes --branch master",
"format": "oxfmt src tests scripts patches .claude/skills/verify .github package.json manifest.json versions.json tsconfig.base.json tsconfig.json tsconfig.test.json .oxlintrc.json .oxfmtrc.json vite.config.ts vitest.config.ts vitest.e2e.config.ts vitest.setup.ts vitest.setup.dom.ts obsidian-e2e.config.mjs docs/wrangler.jsonc docs/astro.config.mjs docs/package.json docs/src/content.config.ts docs/src/markdown.ts docs/src/site.mjs docs/src/pages docs/scripts docs/legacy-fragments.json docs/tsconfig.json",
"format": "oxfmt src tests scripts patches .claude/skills/verify .github package.json manifest.json versions.json tsconfig.base.json tsconfig.json tsconfig.test.json .oxlintrc.json .oxfmtrc.json svelte-policy.json vite.config.ts vitest.config.ts vitest.e2e.config.ts vitest.setup.ts vitest.setup.dom.ts obsidian-e2e.config.mjs docs/wrangler.jsonc docs/astro.config.mjs docs/package.json docs/src/content.config.ts docs/src/markdown.ts docs/src/site.mjs docs/src/pages docs/scripts docs/legacy-fragments.json docs/tsconfig.json",
"test:tooling": "vitest run --config tests/tooling/vitest.config.ts"
},
"devDependencies": {
Expand All @@ -58,6 +58,7 @@
"postcss": "^8.5.29",
"svelte": "^5.57.1",
"svelte-check": "4.7.6",
"svelte-policy": "^0.1.0",
"typescript": "6.0.3",
"vite": "^8.3.2",
"vitest": "^5.0.3",
Expand Down
2 changes: 1 addition & 1 deletion src/ui/PodcastView/ChapterList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

{#if isExpanded}
<ul class="chapters" id={listId}>
{#each chapters as chapter, index}
{#each chapters as chapter, index (index)}
<li class:active={index === currentChapterIndex}>
<button
type="button"
Expand Down
6 changes: 6 additions & 0 deletions svelte-policy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"rules": {
"no-at-debug-tags": "error",
"no-inspect": "error"
}
}
Loading