Skip to content

Commit

Permalink
fix(eslint-plugin-internal): version import (#6680)
Browse files Browse the repository at this point in the history
fix: version import in plugin-internal
  • Loading branch information
so1ve committed Mar 19, 2023
1 parent 3fc5c63 commit 312225f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin-internal/src/util/createRule.ts
Expand Up @@ -2,7 +2,7 @@ import { ESLintUtils } from '@typescript-eslint/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 }: { version: string } = require('../../package.json');

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

0 comments on commit 312225f

Please sign in to comment.