Commit graph

28 commits

Author SHA1 Message Date
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
dbc9096f81 Add lint action 2025-07-04 13:27:53 +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
Johannes Theiner
b9a0e401e0
configure eslint 2024-02-29 13:18:14 +01:00
Tim Rogers
0b5e5a2f6e
Upgrade esbuild to v0.17.x (#47) 2023-01-25 13:49:50 -05:00
lishid
b46f6c9322 Update for 0.15 2022-08-09 13:38:50 -04:00
lishid
04432b2ebf Upgrade dependencies, add strictNullChecks. 2022-06-24 15:41:39 -04:00
lishid
af0d47c19c Always use latest obsidian package. 2022-03-09 10:29:32 -05:00
Lishid
43a3b5eaeb
Update package.json 2022-02-24 00:17:16 -05:00
aidenlx
f3286063d3
add version bump script (#10) 2022-01-22 16:13:50 -05:00
fyears
fe035a3008
add type check (#22) 2022-01-16 10:07:19 -05:00
lishid
db18a36e65 Update build script to include external node packages. 2021-11-01 15:18:11 -04:00
TfTHacker
6fdd374cb8
Adding eslint for code .\src\ (#17) 2021-10-30 14:04:07 -04:00
Phillip
02ac033b15
Use ESBuild API instead of passing command line arguments (#16) 2021-10-25 11:45:15 -04:00
lishid
3afc9d78ab Update sample plugin to use ESBuild. 2021-10-19 13:34:58 -04:00
lishid
3b38a36a07 Upgrade dependencies. 2021-04-23 17:01:55 -04:00
lishid
f3f000a6b2 Update dependencies. 2021-04-12 19:06:03 -04:00
lishid
e1efb17322 Rollup: Don't include source code in distribution. 2021-04-06 08:48:36 -04:00
lishid
245339d8e0 Use rollup for bundling. 2020-10-26 12:02:41 -04:00
lishid
2889865881 Refactor: Use new version of obsidian.d.ts from remote. 2020-10-26 11:07:18 -04:00
lishid
ed3770792a Initial commit! 2020-10-25 16:58:31 -04:00