Skip to content

Commit f25439e

Browse files
committed
chore: update deps
1 parent 14bf482 commit f25439e

File tree

7 files changed

+379
-710
lines changed

7 files changed

+379
-710
lines changed

.solhint.json

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"extends": "solhint:all",
2+
"extends": "solhint:recommended",
3+
"plugins": [],
34
"rules": {
45
"compiler-version": ["error", ">=0.8.21"],
56
"func-visibility": ["warn", { "ignoreConstructors": true }],
@@ -12,15 +13,10 @@
1213
"max-line-length": ["warn", 120],
1314
"function-max-lines": "off",
1415
"code-complexity": ["warn", 15],
15-
"gas-named-return-values": "off",
1616
"no-console": "off",
17-
"gas-multitoken1155": "off",
1817
"immutable-vars-naming": "off",
19-
"gas-length-in-loops": "off",
20-
"gas-increment-by-one": "off",
2118
"comprehensive-interface": "off",
2219
"named-return-values": "off",
23-
"imports-order": "off",
24-
"foundry-test-functions": "off"
20+
"foundry-test-functions": "off"
2521
}
2622
}

eslint.config.mjs

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// eslint-disable-next-line strict
22
import mocha from "eslint-plugin-mocha";
3+
import prettier from "eslint-plugin-prettier";
34
import globals from "globals";
45
import tsParser from "@typescript-eslint/parser";
56
import path from "node:path";
@@ -15,7 +16,9 @@ const compat = new FlatCompat({
1516
allConfig: js.configs.all,
1617
});
1718

18-
export default [{
19+
export default [
20+
...compat.extends('eslint:recommended', 'plugin:prettier/recommended', 'prettier'),
21+
{
1922
files: ["**/*.ts", "**/*.tsx"],
2023
ignores: [
2124
"**/node_modules",
@@ -28,9 +31,9 @@ export default [{
2831
"lib/openzeppelin-contracts",
2932
"typechain-types/*",
3033
],
31-
}, ...compat.extends("standard"), {
34+
}, {
3235
plugins: {
33-
mocha,
36+
mocha, prettier
3437
},
3538

3639
languageOptions: {

hardhat.config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use strict";
2+
13
import "./task/accounts";
24
import "@nomicfoundation/hardhat-toolbox";
35
import "@nomicfoundation/hardhat-verify";

package.json

+14-15
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"contract",
1212
"solidity"
1313
],
14-
"type": "module",
1514
"engines": {
1615
"node": ">=20.0.0",
1716
"pnpm": ">=9.5.0"
@@ -24,15 +23,15 @@
2423
"@commitlint/cli": "^19.4.0",
2524
"@commitlint/config-conventional": "^19.2.2",
2625
"@eslint/eslintrc": "^3.1.0",
27-
"@eslint/js": "^9.8.0",
26+
"@eslint/js": "^9.9.0",
2827
"@metamask/eth-sig-util": "^7.0.3",
2928
"@nomicfoundation/hardhat-chai-matchers": "^2.0.7",
3029
"@nomicfoundation/hardhat-ethers": "^3.0.6",
3130
"@nomicfoundation/hardhat-foundry": "^1.1.2",
3231
"@nomicfoundation/hardhat-network-helpers": "^1.0.11",
3332
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
3433
"@nomicfoundation/hardhat-verify": "^2.0.9",
35-
"@nomiclabs/hardhat-solhint": "^3.1.0",
34+
"@nomiclabs/hardhat-solhint": "^4.0.0",
3635
"@openzeppelin/contracts": "^5.0.2",
3736
"@openzeppelin/contracts-upgradeable": "^5.0.2",
3837
"@openzeppelin/docs-utils": "^0.1.5",
@@ -42,19 +41,18 @@
4241
"@types/chai": "^4.3.17",
4342
"@types/fs-extra": "^11.0.4",
4443
"@types/mocha": "^10.0.7",
45-
"@types/node": "^20.14.14",
46-
"@typescript-eslint/eslint-plugin": "^7.18.0",
47-
"@typescript-eslint/parser": "^7.18.0",
48-
"eslint": "^8.57.0",
44+
"@types/node": "^20.14.15",
45+
"@typescript-eslint/eslint-plugin": "^8.1.0",
46+
"@typescript-eslint/parser": "^8.1.0",
47+
"chai": "^4.5.0",
48+
"eslint": "^9.9.0",
4949
"eslint-config-prettier": "^9.1.0",
50-
"eslint-config-standard": "^17.1.0",
51-
"eslint-plugin-import": "^2.29.1",
5250
"eslint-plugin-mocha": "^10.5.0",
53-
"eslint-plugin-n": "^17.10.2",
5451
"eslint-plugin-prettier": "^5.2.1",
55-
"eslint-plugin-promise": "^6.6.0",
52+
"eslint-plugin-promise": "^7.1.0",
5653
"ethers": "^6.13.2",
5754
"fs-extra": "^11.2.0",
55+
"glob": "^11.0.0",
5856
"globals": "^15.9.0",
5957
"hardhat": "^2.22.8",
6058
"hardhat-abi-exporter": "^2.10.1",
@@ -63,9 +61,10 @@
6361
"hardhat-ignore-warnings": "^0.2.11",
6462
"lodash": "^4.17.21",
6563
"micromatch": "^4.0.7",
66-
"mocha": "^10.7.0",
64+
"mocha": "^10.7.3",
6765
"prettier": "^3.3.3",
6866
"prettier-plugin-solidity": "^1.3.1",
67+
"rimraf": "^6.0.1",
6968
"solhint": "^5.0.3",
7069
"solidity-ast": "^0.4.56",
7170
"solidity-docgen": "0.6.0-beta.36",
@@ -84,15 +83,15 @@
8483
"clean": "npx hardhat clean",
8584
"deploy:polygon": "npx hardhat run --network polygon scripts/deploy.ts",
8685
"deploy:mumbai": "npx hardhat run --network mumbai scripts/deploy.ts",
87-
"deploy:goerli": "npx hardhat run --network goerli scripts/deploy.ts",
86+
"deploy:sepolia": "npx hardhat run --network sepolia scripts/deploy.ts",
8887
"deploy:": "npx hardhat run --network mainnet scripts/deploy.ts",
8988
"test": "npx hardhat test",
9089
"abi": "npx hardhat export-abi",
9190
"coverage": "npx hardhat coverage",
9291
"size": "npx hardhat size-contracts",
93-
"lint": "pnpm solhint && pnpm eslint && pnpm format:check",
92+
"lint": "pnpm solhint && pnpm lint:ts && pnpm format:check",
9493
"solhint": "solhint --max-warnings 0 contracts/**/*.sol",
95-
"eslint": "eslint",
94+
"lint:ts": "eslint scripts/**/*.ts test/**/*.ts",
9695
"format:check": "prettier --check **/*.{ts,sol}",
9796
"format:write": "prettier --write **/*.{ts,sol}"
9897
},

0 commit comments

Comments
 (0)