Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc5f171

Browse files
authored
fix(eslint-plugin): fix doc url generation (typescript-eslint#3475)
Fixes typescript-eslint#3473
1 parent b814e63 commit fc5f171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/eslint-plugin/src/util/createRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ESLintUtils } from '@typescript-eslint/experimental-utils';
22

33
// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder
44
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
5-
const version: string = require('../../package.json');
5+
const version: string = require('../../package.json').version;
66

77
export const createRule = ESLintUtils.RuleCreator(
88
name =>

0 commit comments

Comments
 (0)