Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b814e63 commit fc5f171Copy full SHA for fc5f171
packages/eslint-plugin/src/util/createRule.ts
@@ -2,7 +2,7 @@ import { ESLintUtils } from '@typescript-eslint/experimental-utils';
2
3
// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder
4
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
5
-const version: string = require('../../package.json');
+const version: string = require('../../package.json').version;
6
7
export const createRule = ESLintUtils.RuleCreator(
8
name =>
0 commit comments