Skip to content

Commit

Permalink
fix: the documentation path should point to the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
darraghoriordan committed Nov 6, 2021
1 parent 8a6df93 commit bce5f17
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/utils/createRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ import {ESLintUtils} from "@typescript-eslint/experimental-utils";

// Note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder
// eslint-disable-next-line @typescript-eslint/no-var-requires, unicorn/prefer-module
const {version} = require("../../package.json");
//const {version} = require("../../package.json");
// eslint-disable-next-line new-cap
export const createRule = ESLintUtils.RuleCreator(
(name) =>
`https://github.com/darraghoriordan/eslint-plugin-nestjs/blob/v${
version as string
}/packages/eslint-plugin/docs/rules/${name}.md`
// (name) =>
// `https://github.com/darraghoriordan/eslint-plugin-nestjs-typed/blob/v${
// version as string
// }/packages/eslint-plugin/docs/rules/${name}.md`
() =>
`https://github.com/darraghoriordan/eslint-plugin-nestjs-typed/blob/main/README.md`
);

0 comments on commit bce5f17

Please sign in to comment.