Practical overview
When it fits
Use Ethlint when adding command-line style and security checks to a Solidity development workflow, or when you need project-specific lint configuration and partial automatic fixes.
Who it is for
- Solidity developers who want command-line style and security checks for smart-contract code.
- Teams maintaining Solidity repositories that need configurable lint rules and ignore patterns.
Documented uses
- Lint an individual Solidity file or a contracts directory.
- Configure style and security rules, plugins, shared configurations, and ignored paths.
- Apply automatic fixes to issues Ethlint can resolve.
- Suppress selected lint rules for specific lines or files with comment directives.
Requirements & limits
The project documents installation through npm and identifies the repository license as MIT.
- The documented workflow uses the
soliumexecutable, including when theethlintnpm package is installed. - Linting supports an individual file or a directory, with an option to request automatic fixes.
- Rule configuration can include plugins and shared configurations; comment directives can disable selected rules in code.
- The project says its conventions do not strictly follow the Solidity Style Guide.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up Ethlint configuration for a Solidity project
Create the project’s ignore and lint-configuration files, then set rules and plugins.
Before you start
- A DApp or Solidity project directory
- npm to install the ethlint package
Steps
Install Ethlint with the command below.
npm install -g ethlintFrom the project root, run
solium --init.Edit
.soliumrc.jsonto configure rules, plugins, and shared configurations.
Expected outcome
The project has `.soliumignore` and `.soliumrc.json` files to guide linting.
Guide limitations
- Initialization creates configuration files; linting or fixing code is a separate step.
Lint Solidity files or a contracts directory and apply available fixes
Run configured checks against a selected Solidity file or directory and request automatic fixes.
Before you start
- Ethlint installed and project lint configuration available
- A Solidity file or contracts directory
Steps
Run
solium -f foobar.solto lint a file, orsolium -d contracts/to lint a directory.To request automatic fixes for a directory, run
solium -d contracts/ --fix.
Expected outcome
Ethlint reports lint issues and automatically fixes issues it can resolve when `--fix` is used.
Guide limitations
- Automatic fixing only resolves issues the tool can fix.
- Ethlint does not strictly adhere to the Solidity Style Guide.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 14 October 2026
- Original website title
- duaraghav8/Ethlint · Official homepage title · retained in its source language

