From 0f32c60267ea6dc5f301be540c45e686952e28b8 Mon Sep 17 00:00:00 2001 From: Takashi Arai Date: Wed, 15 May 2024 15:40:29 -0700 Subject: [PATCH] Add path to the help page. --- src/util/createRule.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/util/createRule.ts b/src/util/createRule.ts index 17b0e70..4a4e127 100644 --- a/src/util/createRule.ts +++ b/src/util/createRule.ts @@ -6,9 +6,8 @@ */ import { ESLintUtils } from '@typescript-eslint/utils'; +import { version, homepage } from '../../package.json'; export default ESLintUtils.RuleCreator( - // TODO: Add path to the doc like it is done here when the docs are ready - // https://github.com/salesforce/eslint-plugin-lwc-graph-analyzer/blob/main/lib/util/doc-url.js - (_name) => `` + name => `${homepage}/blob/v${version}/lib/docs/${name}.md` );