{"id":23099978,"url":"https://github.com/keep-network/solhint-config-keep","last_synced_at":"2025-08-16T13:32:14.134Z","repository":{"id":52715022,"uuid":"358184752","full_name":"keep-network/solhint-config-keep","owner":"keep-network","description":"Standard configuration for linting Solidity code using Solhint.","archived":false,"fork":false,"pushed_at":"2023-10-26T19:04:26.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-13T00:15:17.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keep-network.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-15T08:29:16.000Z","updated_at":"2021-04-20T11:34:29.000Z","dependencies_parsed_at":"2022-08-21T20:40:26.485Z","dependency_job_id":null,"html_url":"https://github.com/keep-network/solhint-config-keep","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-network%2Fsolhint-config-keep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-network%2Fsolhint-config-keep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-network%2Fsolhint-config-keep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-network%2Fsolhint-config-keep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keep-network","download_url":"https://codeload.github.com/keep-network/solhint-config-keep/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230039808,"owners_count":18163466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-16T23:29:19.007Z","updated_at":"2024-12-16T23:29:19.578Z","avatar_url":"https://github.com/keep-network.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# solhint-config-keep\n\nStandard configuration for linting Solidity code using\n[Solhint](https://github.com/protofire/solhint).  \n`Solhint` is an alternative to [Solium(ethlint)](https://github.com/duaraghav8/Ethlint)\nwhich is no longer maintained.\n\nUses the `solhint:recommended` ruleset, which itself is taken from the\n[Solidity Style Guide](https://solidity.readthedocs.io/en/v0.5.9/style-guide.html).\n\n## Installation\n\n`npm i https://github.com/keep-network/solhint-config-keep.git`\n\n## Usage\n\n### Setting up a project\n\n 1. Install the linter and config - `npm i -D solhint https://github.com/keep-network/solhint-config-keep.git`\n 2. Create your `.solhint.json` (you can add additional rules or plugins):\n ```json\n{\n  \"extends\": \"keep\",\n  \"plugins\": [],\n  \"rules\": {\n  }\n}\n ```\n 3. Add commands for linting to your `package.json`:\n ```json\n{\n  \"scripts\": {\n    \"lint:sol\": \"solhint 'contracts/**/*.sol'\",\n    \"lint:fix:sol\": \"solhint 'contracts/**/*.sol' --fix\"\n  }\n}\n ```\n\n### Disabling the linter\n#### Directory\nEdit the `.solhint.json`.\n\n#### File\n`/* solhint-disable */`\n\n#### Code block\n`/* solhint-disable */`  \n`/* solhint-enable */`\n\n#### Line\nPrefer `/*` over `//`, as it looks different to a comment on the rationale of code.  \n`/* solhint-disable-next-line \u003crules\u003e */`\n\n### Adding a pre-commit hook\n```yaml\n- repo: local\n   hooks:\n    - id: solhint\n      name: Solidity linter\n      language: node\n      entry: solhint\n      files: '\\.sol$'\n      args:\n      - ./contracts/**/*.sol\n      - --config=./.solhint.json\n      additional_dependencies:\n      - solhint@3.3.4\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeep-network%2Fsolhint-config-keep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeep-network%2Fsolhint-config-keep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeep-network%2Fsolhint-config-keep/lists"}