Skip to content

Commit

Permalink
fix(eslint-plugin): fix doc url generation (#3475)
Browse files Browse the repository at this point in the history
Fixes #3473
  • Loading branch information
bradzacher committed Jun 1, 2021
1 parent b814e63 commit fc5f171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/src/util/createRule.ts
Expand Up @@ -2,7 +2,7 @@ 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-unsafe-assignment
const version: string = require('../../package.json');
const version: string = require('../../package.json').version;

export const createRule = ESLintUtils.RuleCreator(
name =>
Expand Down

0 comments on commit fc5f171

Please sign in to comment.