Skip to content

Commit e3d5c48

Browse files
ryanioclaude
andauthored
chore(deps): consolidate and bump all dependencies (#838)
* chore(deps): bump all dependencies and migrate to eslint flat config Consolidates all pending dependency update PRs into a single update. Bumps dependencies to latest compatible versions, migrates from deprecated .eslintrc.js to eslint.config.mjs flat config, and fixes lint issues surfaced by updated rules. Bumps package version to 4.0.7. Key dependency updates: - eslint 8→9 (flat config) - typescript-eslint 7→8 - c8 10→11 - concurrently 8→9 - eslint-config-prettier 9→10 - eslint-plugin-promise 6→7 - sinon 18→19 - typescript 5.0→5.9 - prettier 3.0→3.8 - ethers 6.9→6.16 - hardhat 2.22→2.28 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: modernize husky pre-commit hook and lint-staged config Remove deprecated husky.sh sourcing (v10 compat) and remove unnecessary `git add` from lint-staged (auto-staged in modern versions). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9aa7aff commit e3d5c48

File tree

13 files changed

+2659
-3223
lines changed

13 files changed

+2659
-3223
lines changed

.eslintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx lint-staged

eslint.config.mjs

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
import prettierConfig from "eslint-config-prettier";
4+
import prettierPlugin from "eslint-plugin-prettier";
5+
import importPlugin from "eslint-plugin-import";
6+
7+
export default tseslint.config(
8+
{
9+
ignores: [
10+
"lib/**",
11+
"src/artifacts/**",
12+
"src/typechain-types/**",
13+
"cache/**",
14+
"coverage/**",
15+
"eslint.config.mjs",
16+
],
17+
},
18+
eslint.configs.recommended,
19+
...tseslint.configs.recommended,
20+
prettierConfig,
21+
{
22+
plugins: {
23+
prettier: prettierPlugin,
24+
import: importPlugin,
25+
},
26+
languageOptions: {
27+
parserOptions: {
28+
project: ["tsconfig.json"],
29+
},
30+
},
31+
rules: {
32+
"prettier/prettier": "error",
33+
"no-unused-expressions": "off",
34+
"no-unused-vars": "off",
35+
"@typescript-eslint/no-unused-expressions": "off",
36+
"@typescript-eslint/no-unused-vars": [
37+
"error",
38+
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
39+
],
40+
"@typescript-eslint/no-require-imports": "off",
41+
"@typescript-eslint/no-explicit-any": "off",
42+
"@typescript-eslint/require-await": "error",
43+
"object-shorthand": ["error", "always"],
44+
},
45+
},
46+
);

0 commit comments

Comments
 (0)