Skip to content

Commit

Permalink
fix: docs links (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhamlin authored Jan 17, 2023
1 parent a54d95b commit 98796d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/utils/create-rule.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ESLintUtils } from '@typescript-eslint/utils';

import { version } from '../../package.json';

// Create rule function
export const createRule = ESLintUtils.RuleCreator(
(ruleName) => `https://github.com/adamhamlin/eslint-plugin/docs/rules/${ruleName}.md`
(ruleName) => `https://github.com/adamhamlin/eslint-plugin/blob/v${version}/docs/rules/${ruleName}.md`
);
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "@tsconfig/recommended/tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"declaration": true
"declaration": true,
"resolveJsonModule": true
},
"exclude": ["node_modules", "dist/**/*"]
}

0 comments on commit 98796d3

Please sign in to comment.