Add Prettier for linting and fix Solhint config (#2697)
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Showing
.prettierrc
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
| ... | @@ -17,10 +17,11 @@ | ... | @@ -17,10 +17,11 @@ |
| "docs:watch": "npm run docs watch contracts 'docs/*.hbs'", | "docs:watch": "npm run docs watch contracts 'docs/*.hbs'", | ||
| "prepare-docs": "scripts/prepare-docs.sh", | "prepare-docs": "scripts/prepare-docs.sh", | ||
| "lint": "npm run lint:js && npm run lint:sol", | "lint": "npm run lint:js && npm run lint:sol", | ||
| "lint:fix": "npm run lint:js:fix", | "lint:fix": "npm run lint:js:fix && npm run lint:sol:fix", | ||
| "lint:js": "eslint --ignore-path .gitignore .", | "lint:js": "eslint --ignore-path .gitignore .", | ||
| "lint:js:fix": "eslint --ignore-path .gitignore . --fix", | "lint:js:fix": "eslint --ignore-path .gitignore . --fix", | ||
| "lint:sol": "echo 'solidity linter currently disabled' # solhint --max-warnings 0 \"contracts/**/*.sol\"", | "lint:sol": "solhint 'contracts/**/*.sol' && prettier -c 'contracts/**/*.sol'", | ||
| "lint:sol:fix": "prettier --write \"contracts/**/*.sol\"", | |||
| "prepublish": "rimraf build contracts/build artifacts cache", | "prepublish": "rimraf build contracts/build artifacts cache", | ||
| "prepare": "env COMPILE_MODE=production npm run compile", | "prepare": "env COMPILE_MODE=production npm run compile", | ||
| "prepack": "scripts/prepack.sh", | "prepack": "scripts/prepack.sh", | ||
| ... | @@ -48,7 +49,6 @@ | ... | @@ -48,7 +49,6 @@ |
| }, | }, | ||
| "homepage": "https://openzeppelin.com/contracts/", | "homepage": "https://openzeppelin.com/contracts/", | ||
| "devDependencies": { | "devDependencies": { | ||
| "@nomiclabs/hardhat-solhint": "^2.0.0", | |||
| "@nomiclabs/hardhat-truffle5": "^2.0.0", | "@nomiclabs/hardhat-truffle5": "^2.0.0", | ||
| "@nomiclabs/hardhat-web3": "^2.0.0", | "@nomiclabs/hardhat-web3": "^2.0.0", | ||
| "@openzeppelin/docs-utils": "^0.1.0", | "@openzeppelin/docs-utils": "^0.1.0", | ||
| ... | @@ -72,8 +72,10 @@ | ... | @@ -72,8 +72,10 @@ |
| "merkletreejs": "^0.2.13", | "merkletreejs": "^0.2.13", | ||
| "micromatch": "^4.0.2", | "micromatch": "^4.0.2", | ||
| "mocha": "^8.0.1", | "mocha": "^8.0.1", | ||
| "prettier": "^2.3.0", | |||
| "prettier-plugin-solidity": "^1.0.0-beta.13", | |||
| "rimraf": "^3.0.2", | "rimraf": "^3.0.2", | ||
| "solhint": "^3.2.0", | "solhint": "^3.3.6", | ||
| "solidity-coverage": "^0.7.11", | "solidity-coverage": "^0.7.11", | ||
| "solidity-docgen": "^0.5.3", | "solidity-docgen": "^0.5.3", | ||
| "web3": "^1.3.0", | "web3": "^1.3.0", | ||
| ... | ... |
Please
register
or
sign in
to comment