Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
lingcoder committed Aug 11, 2024
1 parent 14bf482 commit 6cfc6fa
Show file tree
Hide file tree
Showing 7 changed files with 362 additions and 693 deletions.
10 changes: 3 additions & 7 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "solhint:all",
"extends": "solhint:recommended",
"plugins": [],
"rules": {
"compiler-version": ["error", ">=0.8.21"],
"func-visibility": ["warn", { "ignoreConstructors": true }],
Expand All @@ -12,15 +13,10 @@
"max-line-length": ["warn", 120],
"function-max-lines": "off",
"code-complexity": ["warn", 15],
"gas-named-return-values": "off",
"no-console": "off",
"gas-multitoken1155": "off",
"immutable-vars-naming": "off",
"gas-length-in-loops": "off",
"gas-increment-by-one": "off",
"comprehensive-interface": "off",
"named-return-values": "off",
"imports-order": "off",
"foundry-test-functions": "off"
"foundry-test-functions": "off"
}
}
9 changes: 6 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// eslint-disable-next-line strict
import mocha from "eslint-plugin-mocha";
import prettier from "eslint-plugin-prettier";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
Expand All @@ -15,7 +16,9 @@ const compat = new FlatCompat({
allConfig: js.configs.all,
});

export default [{
export default [
...compat.extends('eslint:recommended', 'plugin:prettier/recommended', 'prettier'),
{
files: ["**/*.ts", "**/*.tsx"],
ignores: [
"**/node_modules",
Expand All @@ -28,9 +31,9 @@ export default [{
"lib/openzeppelin-contracts",
"typechain-types/*",
],
}, ...compat.extends("standard"), {
}, {
plugins: {
mocha,
mocha, prettier
},

languageOptions: {
Expand Down
2 changes: 2 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

import "./task/accounts";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-verify";
Expand Down
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"contract",
"solidity"
],
"type": "module",
"engines": {
"node": ">=20.0.0",
"pnpm": ">=9.5.0"
Expand All @@ -32,7 +31,7 @@
"@nomicfoundation/hardhat-network-helpers": "^1.0.11",
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
"@nomicfoundation/hardhat-verify": "^2.0.9",
"@nomiclabs/hardhat-solhint": "^3.1.0",
"@nomiclabs/hardhat-solhint": "^4.0.0",
"@openzeppelin/contracts": "^5.0.2",
"@openzeppelin/contracts-upgradeable": "^5.0.2",
"@openzeppelin/docs-utils": "^0.1.5",
Expand All @@ -43,18 +42,17 @@
"@types/fs-extra": "^11.0.4",
"@types/mocha": "^10.0.7",
"@types/node": "^20.14.14",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"eslint": "^8.57.0",
"@typescript-eslint/eslint-plugin": "^8.0.1",
"@typescript-eslint/parser": "^8.0.1",
"chai": "^4.5.0",
"eslint": "^9.9.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-mocha": "^10.5.0",
"eslint-plugin-n": "^17.10.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-promise": "^7.1.0",
"ethers": "^6.13.2",
"fs-extra": "^11.2.0",
"glob": "^11.0.0",
"globals": "^15.9.0",
"hardhat": "^2.22.8",
"hardhat-abi-exporter": "^2.10.1",
Expand All @@ -66,6 +64,7 @@
"mocha": "^10.7.0",
"prettier": "^3.3.3",
"prettier-plugin-solidity": "^1.3.1",
"rimraf": "^6.0.1",
"solhint": "^5.0.3",
"solidity-ast": "^0.4.56",
"solidity-docgen": "0.6.0-beta.36",
Expand All @@ -84,15 +83,15 @@
"clean": "npx hardhat clean",
"deploy:polygon": "npx hardhat run --network polygon scripts/deploy.ts",
"deploy:mumbai": "npx hardhat run --network mumbai scripts/deploy.ts",
"deploy:goerli": "npx hardhat run --network goerli scripts/deploy.ts",
"deploy:sepolia": "npx hardhat run --network sepolia scripts/deploy.ts",
"deploy:": "npx hardhat run --network mainnet scripts/deploy.ts",
"test": "npx hardhat test",
"abi": "npx hardhat export-abi",
"coverage": "npx hardhat coverage",
"size": "npx hardhat size-contracts",
"lint": "pnpm solhint && pnpm eslint && pnpm format:check",
"lint": "pnpm solhint && pnpm lint:ts && pnpm format:check",
"solhint": "solhint --max-warnings 0 contracts/**/*.sol",
"eslint": "eslint",
"lint:ts": "eslint scripts/**/*.ts test/**/*.ts",
"format:check": "prettier --check **/*.{ts,sol}",
"format:write": "prettier --write **/*.{ts,sol}"
},
Expand Down
Loading

0 comments on commit 6cfc6fa

Please sign in to comment.