Skip to content

[Bug]: Solhint Doesn't Run #975

@SocksNFlops

Description

@SocksNFlops

Describe the bug

It's impossible to run solhint because all of the dev-dependencies are missing. Namely:

"devDependencies": {
+    "prettier": "^3.6.0",
+    "prettier-plugin-solidity": "^1.4.3",
+    "solhint-community": "^4.0.1",
+    "solhint-plugin-prettier": "^0.1.0"
   }

Secondly, none of the github tasks actually reference solhint, they just use prettier. So it's probably better to just remove .solhint.json altogether since it's not even being used.

If you do install all of the dependencies, you get:

✖ 410 problems (410 errors, 0 warnings)

All from the the single rule defined in .solhint.json.

Expected Behavior

Running npx solhint 'src/**/*.sol' (or the yarn version) should be able to run. Additionally, it probably shouldn't have 410 errors.

To Reproduce

Run npx solhint 'src/**/*.sol' or similar. You'll get this:

> npx solhint 'src/**/*.sol'
[solhint] Error: Could not load solhint-plugin-prettier, make sure it's installed.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions