use solhint-community (#25)

* use solhint-community fork

We're trying to keep solhint afloat with a fork, and done some work on
it so far, mainly the no-unused-imports rule.

Any feedback is appreciated, hope this helps 

see announcement:
https://blog.capu.tech/announcing-solhint-community.html

* docs: update README

---------

Co-authored-by: Paul Razvan Berg <paul.razvan.berg@gmail.com>
This commit is contained in:
Juan Pablo Capurro 2023-06-09 05:30:56 -03:00 committed by GitHub
parent bce0b0e689
commit 8209998bd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 7 deletions

View File

@ -18,7 +18,7 @@ A Foundry-based template for developing Solidity smart contracts, with sensible
- [Forge Std](https://github.com/foundry-rs/forge-std): collection of helpful contracts and cheatcodes for testing
- [PRBTest](https://github.com/PaulRBerg/prb-test): modern collection of testing assertions and logging utilities
- [Prettier](https://github.com/prettier/prettier): code formatter for non-Solidity files
- [Solhint](https://github.com/protofire/solhint): linter for Solidity code
- [Solhint Community](https://github.com/solhint-community/solhint-community): linter for Solidity code
## Getting Started

View File

@ -8,7 +8,7 @@
},
"devDependencies": {
"prettier": "^2.8.7",
"solhint": "^3.4.0"
"solhint-community": "^3.5.0"
},
"keywords": [
"blockchain",

View File

@ -8,9 +8,9 @@ devDependencies:
prettier:
specifier: ^2.8.7
version: 2.8.7
solhint:
specifier: ^3.4.0
version: 3.4.1
solhint-community:
specifier: ^3.5.0
version: 3.5.0
packages:
@ -259,6 +259,7 @@ packages:
/js-yaml@4.1.0:
resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}
hasBin: true
dependencies:
argparse: 2.0.1
dev: true
@ -350,6 +351,7 @@ packages:
/semver@6.3.0:
resolution: {integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==}
hasBin: true
dev: true
/slice-ansi@4.0.0:
@ -361,8 +363,9 @@ packages:
is-fullwidth-code-point: 3.0.0
dev: true
/solhint@3.4.1:
resolution: {integrity: sha512-pzZn2RlZhws1XwvLPVSsxfHrwsteFf5eySOhpAytzXwKQYbTCJV6z8EevYDiSVKMpWrvbKpEtJ055CuEmzp4Xg==}
/solhint-community@3.5.0:
resolution: {integrity: sha512-kSntBbwcPRVqIQuKMOmbuzIyDv/liLy0mjPaA5Gpw2ov3IZ5PlFXiG9ZoYhhhJQm/1iFCHmAjQcgOGmR18CkgA==}
hasBin: true
dependencies:
'@solidity-parser/parser': 0.16.0
ajv: 6.12.6