Skip to content

Commit

Permalink
pnpm + male lint pass
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Feb 20, 2024
1 parent 3328dba commit 2df4bff
Show file tree
Hide file tree
Showing 11 changed files with 1,233 additions and 1,292 deletions.
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"plugins": ["prettier-plugin-solidity"],
"overrides": [
{"files": "*.sol", "options": {"parser": "solidity-parse"}}
]
}
4 changes: 3 additions & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"endOfLine": "auto"
}
],
"reason-string": ["warn", { "maxLength": 64 }]
"reason-string": ["warn", { "maxLength": 64 }],
"func-name-mixedcase": "off",
"no-inline-assembly": "off"
}
}
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,30 @@
"name": "clones-with-immutable-args",
"author": "wighawag",
"license": "BSD",
"version": "1.1.1",
"version": "1.1.2",
"description": "Factory for deploying clones with immutable parameters.",
"files": [
"*.sol"
],
"devDependencies": {
"copyfiles": "^2.4.1",
"prettier": "^2.4.1",
"prettier-plugin-solidity": "^1.0.0-beta.18",
"rimraf": "^3.0.2",
"solhint": "^3.3.6",
"solhint-plugin-prettier": "^0.0.5"
"prettier": "^3.2.5",
"prettier-plugin-solidity": "^1.3.1",
"rimraf": "^5.0.5",
"solhint": "^4.1.1",
"solhint-plugin-prettier": "^0.1.0"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"prepublishOnly": "copyfiles -u 1 \"./src/**/*.sol\" --exclude \"./src/test/**/*.sol\" ./",
"postpublish": "rimraf ./*.sol",
"prepack": "yarn prepublishOnly",
"postpack": "yarn postpublish",
"lint": "yarn prettier && yarn solhint",
"lint:check": "yarn prettier:check && yarn solhint:check",
"prettier": "yarn prettier:check --write",
"prepack": "pnpm prepublishOnly",
"postpack": "pnpm postpublish",
"lint": "pnpm prettier && pnpm solhint",
"lint:check": "pnpm prettier:check && pnpm solhint:check",
"prettier": "pnpm prettier:check --write",
"prettier:check": "prettier --check \"src/**/*.sol\"",
"solhint": "yarn solhint:check --fix",
"solhint": "pnpm solhint:check --fix",
"solhint:check": "solhint --config ./.solhint.json \"src/**/*.sol\""
}
}
Loading

0 comments on commit 2df4bff

Please sign in to comment.