Skip to content

Commit bf2f1f0

Browse files
committed
update solhint command to 6.x config customization syntax
1 parent 1f63fd8 commit bf2f1f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
"lint:fix": "npm run lint:js:fix && npm run lint:sol:fix",
2020
"lint:js": "prettier --log-level warn --ignore-path .gitignore '**/*.{js,ts}' --check && eslint .",
2121
"lint:js:fix": "prettier --log-level warn --ignore-path .gitignore '**/*.{js,ts}' --write && eslint . --fix",
22-
"lint:sol": "prettier --log-level warn --ignore-path .gitignore '{contracts,test}/**/*.sol' --check && solhint '{contracts,test}/**/*.sol'",
22+
"lint:sol": "prettier --log-level warn --ignore-path .gitignore '{contracts,test}/**/*.sol' --check && npm run solhint",
2323
"lint:sol:fix": "prettier --log-level warn --ignore-path .gitignore '{contracts,test}/**/*.sol' --write",
24+
"solhint": "solhint --config solhint.config.js --noPoster '{contracts,test}/**/*.sol'",
2425
"clean": "hardhat clean && rimraf build contracts/build",
2526
"prepack": "scripts/prepack.sh",
2627
"generate": "scripts/generate/run.js",
@@ -100,7 +101,7 @@
100101
],
101102
"*.sol": [
102103
"prettier --log-level warn --ignore-path .gitignore --check",
103-
"solhint"
104+
"solhint --config solhint.config.js --noPoster"
104105
]
105106
}
106107
}

0 commit comments

Comments
 (0)