Skip to content

Commit

Permalink
migrate eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
lingcoder committed Jul 18, 2024
1 parent f7dbb75 commit df4628f
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 138 deletions.
5 changes: 5 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
"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",
"foundry-test-functions": "off"
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@types/chai": "^4.3.16",
"@types/fs-extra": "^11.0.4",
"@types/mocha": "^10.0.7",
"@types/node": "^20.14.10",
"@types/node": "^20.14.11",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"eslint": "^8.57.0",
Expand All @@ -47,7 +47,7 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-mocha": "^10.4.3",
"eslint-plugin-n": "^17.9.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^6.4.0",
"ethers": "^6.13.1",
"fs-extra": "^11.2.0",
Expand Down Expand Up @@ -86,7 +86,7 @@
"coverage": "npx hardhat coverage",
"size": "npx hardhat size-contracts",
"lint": "pnpm lint:sol && pnpm lint:ts && pnpm format:check",
"lint:sol": "solhint --max-warnings 0 'contracts/**/*.sol'",
"lint:sol": "solhint --max-warnings 0 contracts/**/*.sol",
"lint:ts": "eslint --ext .js,.ts .",
"format:check": "prettier --check **/*.{js,ts,sol,json}",
"format:write": "prettier --write **/*.{js,ts,sol,json}"
Expand Down
Loading

0 comments on commit df4628f

Please sign in to comment.