{"library":"solhint-plugin-prettier","title":"solhint-plugin-prettier","type":"library","description":"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.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install solhint-plugin-prettier"],"cli":null},"imports":["plugin is loaded via Solhint config (JSON) not JS import","Set rule in .solhint.json: 'prettier/prettier': 'error'","Add 'plugins': ['prettier'] to .solhint.json"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/solhint-plugin-prettier","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"// Install dependencies\nnpm install --save-dev solhint-community solhint-plugin-prettier prettier prettier-plugin-solidity\n\n// Create .solhint.json\n{\n  \"plugins\": [\"prettier\"],\n  \"rules\": {\n    \"prettier/prettier\": \"error\"\n  }\n}\n\n// Create .prettierrc (optional but recommended)\n{\n  \"plugins\": [\"prettier-plugin-solidity\"],\n  \"tabWidth\": 4,\n  \"overrides\": [\n    {\n      \"files\": \"*.sol\",\n      \"options\": {\n        \"parser\": \"solidity-parse\"\n      }\n    }\n  ]\n}\n\n// Run solhint\nnpx solhint 'contracts/**/*.sol'","lang":"javascript","description":"Installs dependencies, configures Solhint to use the prettier plugin, and runs Solhint to check formatting against Prettier.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}