From 220629d51846eb513356043079b961e3336749b3 Mon Sep 17 00:00:00 2001 From: "A.L." Date: Sat, 9 Nov 2024 17:52:39 +0800 Subject: [PATCH] lint: add exception rule for require with custom errors --- package-lock.json | 14 +++++++------- package.json | 2 +- src/.solhint.json | 3 ++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index b02861b..57e5fd2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "markdownlint": "0.34.0", "markdownlint-cli": "0.31.1", "prettier": "3.3.1", - "solhint": "5.0.1", + "solhint": "5.0.3", "ts-node": "10.8.1" } }, @@ -1402,9 +1402,9 @@ } }, "node_modules/solhint": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/solhint/-/solhint-5.0.1.tgz", - "integrity": "sha512-QeQLS9HGCnIiibt+xiOa/+MuP7BWz9N7C5+Mj9pLHshdkNhuo3AzCpWmjfWVZBUuwIUO3YyCRVIcYLR3YOKGfg==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/solhint/-/solhint-5.0.3.tgz", + "integrity": "sha512-OLCH6qm/mZTCpplTXzXTJGId1zrtNuDYP5c2e6snIv/hdRVxPfBBz/bAlL91bY/Accavkayp2Zp2BaDSrLVXTQ==", "dev": true, "dependencies": { "@solidity-parser/parser": "^0.18.0", @@ -2745,9 +2745,9 @@ } }, "solhint": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/solhint/-/solhint-5.0.1.tgz", - "integrity": "sha512-QeQLS9HGCnIiibt+xiOa/+MuP7BWz9N7C5+Mj9pLHshdkNhuo3AzCpWmjfWVZBUuwIUO3YyCRVIcYLR3YOKGfg==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/solhint/-/solhint-5.0.3.tgz", + "integrity": "sha512-OLCH6qm/mZTCpplTXzXTJGId1zrtNuDYP5c2e6snIv/hdRVxPfBBz/bAlL91bY/Accavkayp2Zp2BaDSrLVXTQ==", "dev": true, "requires": { "@solidity-parser/parser": "^0.18.0", diff --git a/package.json b/package.json index 6f3fa5e..59de569 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "markdownlint": "0.34.0", "markdownlint-cli": "0.31.1", "prettier": "3.3.1", - "solhint": "5.0.1", + "solhint": "5.0.3", "ts-node": "10.8.1" } } diff --git a/src/.solhint.json b/src/.solhint.json index 74001ce..d6f3959 100644 --- a/src/.solhint.json +++ b/src/.solhint.json @@ -4,6 +4,7 @@ "compiler-version": ["error", ">=0.8.0"], "func-visibility": ["error", { "ignoreConstructors": true }], "not-rely-on-time": "off", - "no-inline-assembly": "off" + "no-inline-assembly": "off", + "gas-custom-errors": "off" } }