Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
remove redundant entries from hardhat plugin
  • Loading branch information
ItsNickBarry committed Jun 3, 2025
commit 7e29484c6da4c3708f5152a2dec50edae9fb742f
1 change: 1 addition & 0 deletions packages/knip/fixtures/plugins/hardhat/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "@solidstate/hardhat-contract-sizer";
import type { HardhatUserConfig } from "../../../src/plugins/hardhat/types.js";

const config: HardhatUserConfig = {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/knip/fixtures/plugins/hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@plugins/hardhat",
"devDependencies": {
"@solidstate/contracts": "*",
"@solidstate/hardhat-contract-sizer": "*",
"hardhat": "*"
}
}
3 changes: 0 additions & 3 deletions packages/knip/src/plugins/hardhat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const enablers = ["hardhat"];
const isEnabled: IsPluginEnabled = ({ dependencies }) =>
hasDependency(dependencies, enablers);

const entry: string[] = ["hardhat.config.{js,cjs,mjs,ts}"];

const config = ["hardhat.config.{js,cjs,mjs,ts}"];

const resolve: Resolve = async () => {
Expand All @@ -42,7 +40,6 @@ export default {
title,
enablers,
isEnabled,
entry,
config,
resolve,
resolveConfig,
Expand Down