Solhint
Linter for Solidity smart contracts that catches bugs and enforces code style rules.
Linting and formatting npm MIT
Used in agent projects
30
0.2% of 12,697 public repos built with AI coding agents
Rank in linting and formatting
#24 of 40
by use in those projects
Downloads
165K
npm, last 7 days, solhint
GitHub stars
1,127
last push Oct 8, 2026
How Solhint is used
Solhint is a dependency in 30 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #24 of 40 in linting and formatting. The most used alternative there is ESLint. Projects that use it most often also use Prettier (73.3%), OpenZeppelin Contracts (70.0%), Hardhat (60.0%).
Often used with Solhint
| Prettier | 73.3% of Solhint projects · 4.2× more than average |
|---|---|
| OpenZeppelin Contracts | 70.0% of Solhint projects · 53.5× more than average |
| Hardhat | 60.0% of Solhint projects · 34.2× more than average |
| dotenv | 60.0% of Solhint projects · 3.8× more than average |
| viem | 53.3% of Solhint projects · 4.3× more than average |
| ethers.js | 43.3% of Solhint projects · 9.6× more than average |
| ts-node | 43.3% of Solhint projects · 6.4× more than average |
| Hardhat ethers Plugin | 33.3% of Solhint projects · 73.0× more than average |
Install
| Package | npm install solhint |
|---|---|
| Main stacks | TypeScript / JavaScript (25), Rust (5) |
| Example projects | FairCrypto/XEN-crypto, zeta-chain/toolkit, kreskohq/kresko-protocol, code-423n4/2024-08-phi, smallbraineng/words3-contracts |
Alternatives to Solhint
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| ESLint npm Linter that finds and fixes JavaScript code patterns based on AST analysis. |
4,833 (38.1%) | 162M | 27.6K | MIT |
| Prettier npm Opinionated code formatter for JavaScript, TypeScript, and related languages. |
2,218 (17.5%) | 138M | 52.4K | MIT |
| Biome npm Fast web toolchain providing linting, formatting and code quality all in one. |
445 (3.5%) | 17.7M | 25.9K | MIT OR Apache-2.0 |
| oxlint npm Fast JavaScript linter written in Rust with zero-config defaults. |
206 (1.6%) | 25.7M | 23K | MIT |
| Knip npm Find and fix unused dependencies, exports and files in TypeScript/JavaScript projects. |
150 (1.2%) | 17.5M | 12.4K | ISC |
| stylelint npm Linter that finds and fixes CSS errors and enforces code style conventions. |
140 (1.1%) | 10.8M | 11.5K | MIT |
| oxfmt npm Fast JavaScript formatter from the Oxc compiler project. |
125 (1.0%) | 16.3M | 23K | MIT |
| ESLint Import Resolver TypeScript npm ESLint plugin resolver adding TypeScript support to import/export linting. |
119 (0.9%) | 48.8M | 825 | ISC |