Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

get-docs-url.ts

7 lines304 Bytes

1/**
2 * Builds the URL of a rule's documentation page.
3 * @param ruleName - The rule's name, e.g. `exhaustive-deps`.
4 * @returns The URL of the rule's page in the ESLint plugin docs.
5 */
6export const getDocsUrl = (ruleName: string): string =>
7 `https://tanstack.com/query/latest/docs/eslint/${ruleName}`