obsidian-plugin-lintlisted
Install: claude install-skill tcyeee/obsidian-plugin-lint
# Obsidian Plugin Lint
## Overview
Static analysis pass for Obsidian plugin code. Covers both official Obsidian ESLint rules and general CSS best practices. Run before every release.
## Rules
### Official Obsidian ESLint Plugin Rules (`obsidianmd/eslint-plugin`)
Source: https://github.com/obsidianmd/eslint-plugin
| Rule | What to check | Fix |
|------|---------------|-----|
| `no-static-styles-assignment` | `el.style.color = ...`, `el.style.cssText = ...`, `el.style.display = ...` (any inline style via JS) | CSS class: `el.addClass('my-class')`. For dynamic values: `setCssProps(el, { '--my-var': value })` or `setCssStyles(el, { display: value })` |
| `no-unsupported-api` | An API whose current signature is newer than `minAppVersion` (e.g. `workspace.revealLeaf` returning `Promise<void>` requires 1.7.2) | Bump `manifest.json` `minAppVersion` to the version that introduced the API; see section below |
| `obsidianmd/commands` (no plugin name) | `addCommand({ name })` repeats the plugin name (`"Open Day Echo timeline"` for plugin "Day Echo") | Drop the plugin name — Obsidian already prefixes it. `name: "Open timeline"` |
| Sentence case | Button labels, settings headings, command names must use sentence case | Capitalize only first word and proper nouns |
| No default hotkeys | `addCommand()` must not set `hotkeys: [...]` | Remove default hotkeys; let user configure |
| No `innerHTML` | Any `el.innerHTML = ...` assignment (not just user input) | Use `el.createEl()`, `el.cre