/
githubmirror
/
eslint-plugin
Обзор
Документация
Войти
/
githubmirror
/
eslint-plugin
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/ruleCreator.ts
15 строк
488 B
saberzero1
refactor: streamline meta.docs.url for static analysis
10 июн 2026, 16:14
10 июн 2026, 16:14
13385bc
Код
Авторство
О чём код?
import { ESLintUtils } from "@typescript-eslint/utils"; /** * Base URL for rule documentation. * Update this single constant when migrating docs to a new host. */ const DOCS_BASE_URL = "https://github.com/obsidianmd/eslint-plugin/blob/master/docs/rules"; export function docsUrl(name: string, subdir?: string) { const prefix = subdir ? `${DOCS_BASE_URL}/${subdir}` : DOCS_BASE_URL; return `${prefix}/${name}.md`; } export const ruleCreator = ESLintUtils.RuleCreator.withoutDocs;