Skip to content

fix: resolve npm install peer dependency conflict#7

Merged
PierrickGT merged 3 commits into
mainfrom
fix/solhint-pluggin
Jan 14, 2026
Merged

fix: resolve npm install peer dependency conflict#7
PierrickGT merged 3 commits into
mainfrom
fix/solhint-pluggin

Conversation

@Khrafts
Copy link
Copy Markdown
Member

@Khrafts Khrafts commented Jan 14, 2026

Summary

  • Remove solhint-plugin-prettier which requires prettier-plugin-solidity@^1.0.0 but the project uses v2.x, causing npm install to fail
  • Fix npm audit vulnerabilities (brace-expansion, js-yaml)

Prettier enforcement is already handled via lint-staged, so the plugin was redundant.

The plugin requires prettier-plugin-solidity@^1.0.0 but the project
uses v2.x, causing npm install to fail. Prettier is already run
separately via lint-staged, so this plugin is redundant.
- brace-expansion: 2.0.1 → 2.0.2 (ReDoS fix)
- js-yaml: 4.1.0 → 4.1.1 (prototype pollution fix)
@Khrafts Khrafts requested review from PierrickGT and Copilot January 14, 2026 13:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR resolves npm installation issues by removing the solhint-plugin-prettier package which has a peer dependency conflict with the project's prettier-plugin-solidity version (requires v1.x but project uses v2.x). The removal is safe since prettier formatting is already enforced through lint-staged configuration.

Changes:

  • Removed solhint-plugin-prettier package dependency
  • Removed prettier plugin configuration from .solhint.json

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
package.json Removed solhint-plugin-prettier dependency to resolve peer dependency conflict
.solhint.json Removed prettier plugin and rule references from solhint configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 14, 2026

LCOV of commit bf4583f during Forge Coverage #24

Summary coverage rate:
  lines......: 100.0% (2 of 2 lines)
  functions..: 100.0% (1 of 1 function)
  branches...: no data found

Files changed coverage rate: n/a

@PierrickGT PierrickGT merged commit 0045a99 into main Jan 14, 2026
2 checks passed
@PierrickGT PierrickGT deleted the fix/solhint-pluggin branch January 14, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants