Skip to content

Commit

Permalink
fix scripts & prttier
Browse files Browse the repository at this point in the history
  • Loading branch information
peersky committed Oct 8, 2023
1 parent 2f1469a commit 54c0bb3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
25 changes: 13 additions & 12 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"printWidth": 120,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "avoid",
"overrides": [
{
"files": "*.sol",
"options": {
"singleQuote": false
}
"printWidth": 120,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "avoid",
"plugins": ["prettier-plugin-solidity"],
"overrides": [
{
"files": "*.sol",
"options": {
"singleQuote": false
}
]
}
}
]
}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
],
"description": "Contracts for vote4best.app",
"scripts": {
"lint:fix": "eslint ./ --ext js,jsx,ts,tsx --fix && yarn run lint:sol:fix",
"lint": "eslint ./ --ext js,jsx,ts,tsx && yarn run lint:sol",
"upgrade:game:mumbai": "source .secrets/hh_mumbai.env && yarn hardhat --network mumbai deploy --tags upgrade_game",
"test": "export NODE_ENV=TEST && yarn hardhat test",
"test:parallel": "export NODE_ENV=TEST && yarn hardhat test --parallel",
"build": "yarn hardhat compile",
"lint:fix": "eslint ./ --ext js,jsx,ts,tsx --fix && pnpm run lint:sol:fix",
"lint": "eslint ./ --ext js,jsx,ts,tsx && pnpm run lint:sol",
"upgrade:game:mumbai": "source .secrets/hh_mumbai.env && pnpm hardhat --network mumbai deploy --tags upgrade_game",
"test": "export NODE_ENV=TEST && pnpm hardhat test",
"test:parallel": "export NODE_ENV=TEST && pnpm hardhat test --parallel",
"build": "pnpm hardhat compile",
"lint:sol": "prettier --loglevel warn --ignore-path .gitignore '{src,test}/**/*.sol' --check && solhint '{contracts,test}/**/*.sol'",
"lint:sol:fix": "prettier --loglevel warn --ignore-path .gitignore '{src,test}/**/*.sol' --write"
},
Expand Down Expand Up @@ -58,7 +58,7 @@
"ipfs-http-client": "60.0.1",
"keccak": "^3.0.1",
"mocha": "^10.0.0",
"prettier-plugin-solidity": "^1.0.0-beta.19",
"prettier-plugin-solidity":"^1.1.3",
"solhint": "^3.6.2",
"solidity-coverage": "^0.8.5",
"solidity-docgen": "^0.6.0-beta.36",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 54c0bb3

Please sign in to comment.