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
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 - [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 - [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 - [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 ## Getting Started

View File

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

13
pnpm-lock.yaml generated
View File

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