chore(contracts): Add solhint-plugin-prettier and tweak yarn scripts
This commit adds solhint-plugin-prettier which allows us to use both solhint and prettier on our solidity files, by ensure that solhint will throw an error when code is not formatted according to prettier rules. It also makes some slight modifications to yarn scripts which allows better separation between linting ts and solidity during CI runs
Showing
... | @@ -37,6 +37,7 @@ | ... | @@ -37,6 +37,7 @@ |
"patch-package": "^6.4.7", | "patch-package": "^6.4.7", | ||
"prettier": "^2.3.1", | "prettier": "^2.3.1", | ||
"prettier-plugin-solidity": "^1.0.0-beta.18", | "prettier-plugin-solidity": "^1.0.0-beta.18", | ||
"solhint-plugin-prettier": "^0.0.5", | |||
"typescript": "^4.3.5" | "typescript": "^4.3.5" | ||
}, | }, | ||
"scripts": { | "scripts": { | ||
... | @@ -45,6 +46,7 @@ | ... | @@ -45,6 +46,7 @@ |
"test": "yarn lerna run test --parallel", | "test": "yarn lerna run test --parallel", | ||
"test:coverage": "yarn lerna run test:coverage --parallel", | "test:coverage": "yarn lerna run test:coverage --parallel", | ||
"lint": "yarn lerna run lint", | "lint": "yarn lerna run lint", | ||
"lint:ts:check": "yarn lerna run lint:ts:check", | |||
"lint:check": "yarn lerna run lint:check", | "lint:check": "yarn lerna run lint:check", | ||
"lint:fix": "yarn lerna run lint:fix --parallel", | "lint:fix": "yarn lerna run lint:fix --parallel", | ||
"postinstall": "patch-package", | "postinstall": "patch-package", | ||
... | ... |
This diff is collapsed.
Please register or sign in to comment