We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ce72d3 commit bf70419Copy full SHA for bf70419
src/utils.ts
@@ -1,4 +1,5 @@
1
import { ESLintUtils, TSESLint } from '@typescript-eslint/utils';
2
+import { version } from '../package.json';
3
4
export function createRegExpForWords(
5
config: string | string[],
@@ -26,7 +27,9 @@ export interface RxjsXRuleDocs {
26
27
requiresTypeChecking?: boolean;
28
}
29
30
+const REPO_URL = 'https://github.com/JasonWeinzierl/eslint-plugin-rxjs-x';
31
+
32
export const ruleCreator = ESLintUtils.RuleCreator<RxjsXRuleDocs>(
33
(name) =>
- `https://github.com/JasonWeinzierl/eslint-plugin-rxjs-x/blob/main/docs/rules/${name}.md`,
34
+ `${REPO_URL}/blob/v${version}/docs/rules/${name}.md`,
35
);
0 commit comments