eslint-plugin-obsidianmd weekly downloads statistics
By obsidianmd · npm · ESLint plugins
Validates guidelines for Obsidian plugins
eslint-plugin-obsidianmd has 49,762 recorded weekly downloads on npm, a decrease of 15.8% over the past 30 days, ranking #786 of 3,247 tracked listings.
About eslint-plugin-obsidianmd
eslint-plugin-obsidianmd
Upgrading from 0.5.x? See Upgrading to 0.6.0, and from 0.5.0 also Upgrading to 0.5.1. From 0.4? Start with Upgrading to 0.5.0. All are summed up in the changelog.
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-obsidianmd:
npm install eslint-plugin-obsidianmd --save-dev
The plugin needs Node.js 20.19+, 22.13+ or 24+, ESLint 9.19 or later, typescript-eslint 8.35.1 or later, and a TypeScript version your typescript-eslint supports (4.8.4 or later; typescript-eslint 8 supports up to 6.0). npm installs typescript and typescript-eslint alongside the plugin if your project does not already have them. TypeScript 7, the native compiler, has no JavaScript API yet, so typescript-eslint and this plugin cannot use it; npm refuses typescript@7 next to typescript-eslint 8 with an ERESOLVE error. Keep TypeScript 5 or 6 in your devDependencies. typescript-eslint 8.70.1 or later is recommended: it fixes a no-unnecessary-type-assertion false positive on an empty object asserted to a Record type alias (typescript-eslint#12856). The configuration examples below import defineConfig and globalIgnores from eslint/config, which ESLint added in 9.22. On an older ESLint, write { ignores: [...] } instead of globalIgnores([...]), and export the array without defineConfig, or, where an example uses extends, wrap it in tseslint.config(...) instead.
On ESLint 10, npm prints ERESOLVE overriding peer dependency warnings when it installs the plugin, and npm ls --all and npm ls eslint exit with invalid: eslint@10…. Three packages the plugin bundles do not declare ESLint 10 support yet: @microsoft/eslint-plugin-sdl, eslint-plugin-import, and eslint-plugin-react, which @microsoft/eslint-plugin-sdl installs. Linting works, so you can ignore the warnings. With npm's strict-peer-deps setting on, the install fails instead; turn the setting off or use ESLint 9.
The plugin reads Obsidian's own type definitions rather than bundling a copy, so your project needs obsidian installed as well. Plugin projects generated from the sample plugin already have it:
npm install obsidian --save-dev
Without it, no-unsupported-api silently reports nothing. See that rule's docs for which obsidian versions give useful results.
Usage
Add the recommended configuration to your eslint.config.mjs. This enables all recommended rules, including ESLint core, typescript-eslint type-checked rules, and Obsidian-specific rules.
// eslint.config.mjs
import { defineConfig, globalIgnores } from "eslint/config";
import obsidianmd from "eslint-plugin-obsidianmd";
export default defineConfig([
// Build output and the sample plugin's Node build scripts are not plugin code.
globalIgnores(["node_modules", "dist", "main.js", "esbuild.config.mjs", "version-bump.mjs"]),
...obsidianmd.configs.recommended,
{
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ["eslint.config.*"],
},
},
},
rules: {
// example: turn off a rule from the recommended set
"obsidianmd/sample-names": "off",
// Set @typescript-eslint/* rules to "warn" or "error" in a block with
// `files: ["**/*.ts"]`; see "Overriding rules" in docs/configuration.md.
},
},
]);
The globalIgnores entry follows the official sample plugin's layout: main.js is the bundled build, and esbuild.config.mjs and version-bump.mjs are Node scripts. None of them is plugin source or in your tsconfig.json, so without it ESLint fails on them with "was not found by the project service". List your own build output and scripts there.
If your plugin has no build step and you write main.js yourself, it is your source: leave it out of globalIgnores, add it to allowDefaultProject, and declare the CommonJS globals Obsidian loads it with. Ignoring files shows the full setup. For a plugin written in JavaScript with its sources in src/ or elsewhere, see Plugins written in JavaScript: with the parserOptions block above and no jsconfig.json, every file fails with "was not found by the project service".
The parserOptions block is required because the recommended config includes type-checked rules that need access to your TypeScript project. allowDefaultProject ensures files not listed in your tsconfig.json (like the ESLint config file itself) are still linted without errors. See the configuration guide for details on why this is needed and how to customize it.
Note: You do not need to separately add
eslint.configs.recommendedortseslint.configs.recommended— both are already included in the recommended config.
The recommended config also lints files that are not source, matching package.json,
manifest.json and LICENSE by name. Run ESLint from the project root: a lint script scoped to your sources —
eslint src — never visits them, and their checks silently do nothing. See
Files linted beyond your source.
For advanced usage, see the configuration guide:…
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- obsidian
- obsdmd
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm ESLint plugins plugins
All 20 eslint-plugin-obsidianmd alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-plugin-obsidianmd. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.