mirror of
https://github.com/vacp2p/foundry-template.git
synced 2026-01-09 15:17:57 -05:00
refactor: substitute "forge fmt" for "prettier-plugin-solidity"
build: remove "prettier-plugin-solidity" and "solhint-plugin-prettier" deps chore: add "fmt" configuration in Foundry config chore: delete solidity override from Prettier rules chore: delete solidity rules from Solhint config chore: modify scripts to run Prettier on all files except "*.sol" test: document "setUp" function
This commit is contained in:
10
package.json
10
package.json
@@ -14,10 +14,8 @@
|
||||
"husky": "^8.0.2",
|
||||
"lint-staged": "^13.0.3",
|
||||
"prettier": "^2.7.1",
|
||||
"prettier-plugin-solidity": "^1.0.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"solhint": "^3.3.7",
|
||||
"solhint-plugin-prettier": "^0.0.5"
|
||||
"solhint": "^3.3.7"
|
||||
},
|
||||
"keywords": [
|
||||
"blockchain",
|
||||
@@ -36,9 +34,9 @@
|
||||
"scripts": {
|
||||
"clean": "rimraf cache out",
|
||||
"lint": "yarn lint:sol && yarn prettier:check",
|
||||
"lint:sol": "solhint \"{src,test}/**/*.sol\"",
|
||||
"lint:sol": "forge fmt --check && solhint \"{src,test}/**/*.sol\"",
|
||||
"postinstall": "husky install",
|
||||
"prettier:check": "prettier --check \"**/*.{json,md,sol,yml}\"",
|
||||
"prettier:write": "prettier --write \"**/*.{json,md,sol,yml}\""
|
||||
"prettier:check": "prettier --check \"**/*.{json,md,yml}\"",
|
||||
"prettier:write": "prettier --write \"**/*.{json,md,yml}\""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user