11 Commits
Author SHA1 Message Date
saberzero1 23c165fd36 chore: bumped eslint plugin version 2026-06-30 23:58:57 +02:00
saberzero1 f8667cee6b feat: modernize sample plugin
Check whether the target version key already exists in versions.json
instead of whether the minAppVersion value exists. The old check
incorrectly skipped writing a new entry when a prior version mapped
to the same minAppVersion.

Modernize TypeScript and esbuild configuration

- Set target to ES2021 (Obsidian runs on modern Electron/Chromium)
- Replace individual strict flags with strict: true
- Update lib to ES2021 + DOM
- Remove importHelpers and allowJs
- Add skipLibCheck, forceConsistentCasingInFileNames,
noFallthroughCasesInSwitch
- Align esbuild target to es2021

Update dependencies

- Bump @types/node from ^16.11.6 to ^22.15.17 (Node 16 is EOL)
- Bump eslint-plugin-obsidianmd from 0.1.9 to 0.2.4
- Bump globals from 14.0.0 to 16.1.0
- Bump typescript-eslint from 8.35.1 to 8.32.1
- Remove tslib (no longer needed without importHelpers)

Fix code issues and update minimum app version

- Prefix unused parameters with _ (evt, view)
- Use definite assignment assertion on settings property
- Fix editorCallback parameter type (MarkdownView | MarkdownFileInfo)
- Replace document/window with activeDocument/activeWindow
- Replace let with const in SampleModal.onOpen
- Bump minAppVersion from 0.15.0 to 1.0.0
- Update eslint config for obsidianmd plugin 0.2.4 compatibility

Update documentation

- Fix entry point references (main.ts -> src/main.ts)
- Update minimum Node.js version to v18
- Replace outdated eslint instructions with npm run lint
- Update code examples for strict mode and activeWindow
- Remove yarn as alternative to npm

Update eslint configuration

Bump to eslint 10

Return to eslint 9

chore: formatting

feat: add release CI

chore: bumped obsidian eslint plugin to latest version

chore: cleanup redundant code

chore: moved obsidian to devDependencies

fix: apply ignore patterns before rulesets

docs: updated AGENTS.md to match codebase

fix: set quote_style to single

chore: formatting
2026-05-29 19:15:56 +02:00
Johannes Theiner 123fc4a870 update eslint plugin version
remove builtin-modules external dependency
2025-11-14 14:28:33 +01:00
Johannes Theiner 0eca98adda update package.json 2025-11-10 22:27:46 +01:00
Johannes Theiner 92cba25647 update sample plugin with eslint instructions 2025-11-10 12:26:07 +01:00
Johannes Theiner 9984b040b6 remove testing code 2025-10-17 12:36:26 +02:00
Johannes Theiner e0485eb3ba add lock file to repo 2025-07-04 13:28:27 +02:00
Johannes Theiner 90290a8af5 Update to use released eslint plugin 2025-07-03 12:00:06 +02:00
Johannes Theiner 68ab547f2c Update to use released eslint plugin 2025-06-02 12:10:29 +02:00
Johannes Theiner 55f5080882 Add linting of dependencies, throwing errors when including using telemetry libraries 2025-01-02 16:48:03 +01:00
Johannes Theiner 15e343739e Add stylelint and configure eslint to add custom plugin.
- Split up main.ts into multiple files.
2024-07-31 22:59:59 +02:00