Solhint plugin that integrates Prettier formatting checks for Solidity files. Version 0.1.0 released as a stable package. It requires solhint-community, prettier >=3.0.0, and prettier-plugin-solidity >=1.0.0 as peer dependencies. The plugin reports each formatting difference as an individual lint issue, enabling consistent code style enforcement in Solidity projects. Unlike using Prettier directly in CI, this plugin runs formatting checks as part of the Solhint linting workflow, making it easy to integrate with existing lint configurations and reporting tools.
npm install solhint-plugin-prettierVerified import paths — ran on the pinned version, not inferred.
Installs dependencies, configures Solhint to use the prettier plugin, and runs Solhint to check formatting against Prettier.
Use 'solhint-community' instead of 'solhint' in your npm install and config.
Ensure prettier@^3.0.0 and prettier-plugin-solidity@^1.0.0 are installed.
Use 'severity: error' only; 'warning' will be treated as error by Solhint.
Ensure solhint-plugin-prettier is installed and add 'plugins': ['prettier'] to .solhint.json.
npm install --save-dev prettier-plugin-solidity
Add 'prettier/prettier': 'error' to rules in .solhint.json.