Skip to content

readProjectEslintVersion

Reads the version of the eslint installed in the project root, which is the one npx eslint runs.

Import:

import { readProjectEslintVersion } from '@mnaoumov/obsidian-dev-toolkit/linters/obsidianmd-eslint-nesting';

Signature:

function readProjectEslintVersion(): string | null

Returns: string | null — The version, or null when the project root resolves no eslint.