Browse Source

Remove relative path in solhint.config.js in favor of npm virtual package (#5368)

Co-authored-by: Ernesto García <ernestognw@gmail.com>
Hadrien Croubois 10 months ago
parent
commit
a71f79fbbc
3 changed files with 9 additions and 3 deletions
  1. 4 1
      package-lock.json
  2. 4 1
      scripts/solhint-custom/package.json
  3. 1 1
      solhint.config.js

+ 4 - 1
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"
+      }
     }
   }
 }

+ 4 - 1
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"
+  }
 }

+ 1 - 1
solhint.config.js

@@ -1,4 +1,4 @@
-const customRules = require('./scripts/solhint-custom');
+const customRules = require('solhint-plugin-openzeppelin');
 
 const rules = [
   'avoid-tx-origin',