Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions packages/eslint-plugin-react-hooks/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import RulesOfHooks from './RulesOfHooks';
import ExhaustiveDeps from './ExhaustiveDeps';

const {name, version} = require('../package.json');

// All rules
export const rules = {
'rules-of-hooks': RulesOfHooks,
Expand All @@ -32,7 +30,7 @@ const legacyRecommendedConfig = {

// Base plugin object
const reactHooksPlugin = {
meta: {name, version},
meta: {name: 'eslint-plugin-react-hooks'},
rules,
};

Expand Down
Loading