From 0058055fe74c4177a33e611c70754da9c8882306 Mon Sep 17 00:00:00 2001 From: zkbenny Date: Thu, 21 Mar 2024 19:28:44 +0800 Subject: [PATCH] upgrade solhint --- .solhint.json | 1 - package-lock.json | 23 ++++++++++------------- package.json | 2 +- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/.solhint.json b/.solhint.json index 6d39340..48a3ace 100644 --- a/.solhint.json +++ b/.solhint.json @@ -3,7 +3,6 @@ "plugins": [], "rules": { "compiler-version": "off", - "custom-errors": "off", "func-name-mixedcase": "off", "func-visibility": ["warn",{"ignoreConstructors": true}], "mark-callable-contracts": "off", diff --git a/package-lock.json b/package-lock.json index 3e54d57..8703b5b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "hardhat": "^2.19.3", "prettier": "^3.0.0", "prettier-plugin-solidity": "^1.1.0", - "solhint": "^4.1.1" + "solhint": "^4.5.2" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -8806,14 +8806,14 @@ } }, "node_modules/solhint": { - "version": "4.1.1", - "resolved": "https://registry.npmmirror.com/solhint/-/solhint-4.1.1.tgz", - "integrity": "sha512-7G4iF8H5hKHc0tR+/uyZesSKtfppFIMvPSW+Ku6MSL25oVRuyFeqNhOsXHfkex64wYJyXs4fe+pvhB069I19Tw==", + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/solhint/-/solhint-4.5.2.tgz", + "integrity": "sha512-o7MNYS5QPgE6l+PTGOTAUtCzo0ZLnffQsv586hntSHBe2JbSDfkoxfhAOcjZjN4OesTgaX4UEEjCjH9y/4BP5w==", "dev": true, "dependencies": { - "@solidity-parser/parser": "^0.16.0", + "@solidity-parser/parser": "^0.18.0", "ajv": "^6.12.6", - "antlr4": "^4.11.0", + "antlr4": "^4.13.1-patch-1", "ast-parents": "^0.0.1", "chalk": "^4.1.2", "commander": "^10.0.0", @@ -8838,13 +8838,10 @@ } }, "node_modules/solhint/node_modules/@solidity-parser/parser": { - "version": "0.16.2", - "resolved": "https://registry.npmmirror.com/@solidity-parser/parser/-/parser-0.16.2.tgz", - "integrity": "sha512-PI9NfoA3P8XK2VBkK5oIfRgKDsicwDZfkVq9ZTBCQYGOP1N2owgY2dyLGyU5/J/hQs8KRk55kdmvTLjy3Mu3vg==", - "dev": true, - "dependencies": { - "antlr4ts": "^0.5.0-alpha.4" - } + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.18.0.tgz", + "integrity": "sha512-yfORGUIPgLck41qyN7nbwJRAx17/jAIXCTanHOJZhB6PJ1iAk/84b/xlsVKFSyNyLXIj0dhppoE0+CRws7wlzA==", + "dev": true }, "node_modules/solhint/node_modules/ajv": { "version": "6.12.6", diff --git a/package.json b/package.json index 0906974..d00b989 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "hardhat": "^2.19.3", "prettier": "^3.0.0", "prettier-plugin-solidity": "^1.1.0", - "solhint": "^4.1.1" + "solhint": "^4.5.2" }, "scripts": { "compile": "npx hardhat compile",