From a71f79fbbcfe2ccdaf741cc33d781607c6769314 Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Fri, 13 Dec 2024 17:54:45 +0100 Subject: [PATCH] Remove relative path in solhint.config.js in favor of npm virtual package (#5368) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ernesto GarcĂ­a --- package-lock.json | 5 ++++- scripts/solhint-custom/package.json | 5 ++++- solhint.config.js | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 79968635c..900b58845 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12203,7 +12203,10 @@ "scripts/solhint-custom": { "name": "solhint-plugin-openzeppelin", "version": "0.0.0", - "dev": true + "dev": true, + "dependencies": { + "minimatch": "^3.1.2" + } } } } diff --git a/scripts/solhint-custom/package.json b/scripts/solhint-custom/package.json index 075eb929d..ce9690d74 100644 --- a/scripts/solhint-custom/package.json +++ b/scripts/solhint-custom/package.json @@ -1,5 +1,8 @@ { "name": "solhint-plugin-openzeppelin", "version": "0.0.0", - "private": true + "private": true, + "dependencies": { + "minimatch": "^3.1.2" + } } diff --git a/solhint.config.js b/solhint.config.js index f0bd7994f..47c1cebfe 100644 --- a/solhint.config.js +++ b/solhint.config.js @@ -1,4 +1,4 @@ -const customRules = require('./scripts/solhint-custom'); +const customRules = require('solhint-plugin-openzeppelin'); const rules = [ 'avoid-tx-origin',