Skip to content

Commit 06dc866

Browse files
authored
Merge pull request #15609 from ethereum/node-22
config: update eslint 8.57.1, pnpm 10.11.1
2 parents e54da7a + 976bebc commit 06dc866

File tree

11 files changed

+905
-714
lines changed

11 files changed

+905
-714
lines changed

.eslintrc.json

Lines changed: 45 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
{
2-
"extends": [
3-
"eslint:recommended",
4-
"plugin:@typescript-eslint/recommended",
5-
"next/core-web-vitals",
6-
"prettier",
7-
"plugin:storybook/recommended"
8-
],
2+
"extends": ["eslint:recommended", "next/core-web-vitals", "prettier"],
93
"env": {
10-
"es6": true
4+
"es6": true,
5+
"node": true,
6+
"browser": true
117
},
128
"plugins": ["simple-import-sort", "@typescript-eslint", "unused-imports"],
139
"parser": "@typescript-eslint/parser",
10+
"parserOptions": {
11+
"ecmaVersion": "latest",
12+
"sourceType": "module",
13+
"ecmaFeatures": {
14+
"jsx": true
15+
}
16+
},
1417
"rules": {
1518
"simple-import-sort/imports": [
1619
"error",
@@ -34,7 +37,7 @@
3437
// From the `constants` directory.
3538
["^@/lib/constants"],
3639
// `.storybook` directory and utils files`
37-
["^@/storybook","^@/storybook-utils"],
40+
["^@/storybook", "^@/storybook-utils"],
3841
// Parent imports. Put `..` last.
3942
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
4043
// Other relative imports. Put same-folder imports and `.` last.
@@ -48,13 +51,6 @@
4851
],
4952
"simple-import-sort/exports": "error",
5053
"no-unused-vars": "off",
51-
"@typescript-eslint/no-unused-vars": "off",
52-
"@typescript-eslint/no-explicit-any": [
53-
"error",
54-
{
55-
"fixToUnknown": true
56-
}
57-
],
5854
"unused-imports/no-unused-vars": [
5955
"error",
6056
{
@@ -63,6 +59,37 @@
6359
"varsIgnorePattern": "^_$"
6460
}
6561
],
66-
"unused-imports/no-unused-imports-ts": "warn"
67-
}
62+
"unused-imports/no-unused-imports": "warn"
63+
},
64+
"overrides": [
65+
{
66+
"files": ["**/*.{ts,tsx}"],
67+
"extends": ["plugin:@typescript-eslint/recommended"],
68+
"rules": {
69+
"@typescript-eslint/no-explicit-any": [
70+
"error",
71+
{
72+
"fixToUnknown": true
73+
}
74+
]
75+
}
76+
},
77+
{
78+
"files": ["**/*.stories.@(js|jsx|ts|tsx|mdx)"],
79+
"extends": ["plugin:storybook/recommended"]
80+
}
81+
],
82+
"ignorePatterns": [
83+
"node_modules/",
84+
".next/",
85+
"out/",
86+
"dist/",
87+
"build/",
88+
".vercel/",
89+
".netlify/",
90+
"coverage/",
91+
"storybook-static/",
92+
"**/*.d.ts",
93+
"src/intl/"
94+
]
6895
}

.mise.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[settings]
2+
# tools can read the versions files used by other version managers
3+
# for example, .nvmrc in the case of node's nvm
4+
idiomatic_version_file_enable_tools = ['node']

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
20.19.2

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,17 @@
116116
"@types/react": "18.2.57",
117117
"@types/react-dom": "18.2.19",
118118
"@types/xml2js": "^0.4.14",
119-
"@typescript-eslint/eslint-plugin": "^6.19.0",
120-
"@typescript-eslint/parser": "^6.19.0",
119+
"@typescript-eslint/eslint-plugin": "^7.18.0",
120+
"@typescript-eslint/parser": "^7.18.0",
121121
"autoprefixer": "^10.4.19",
122122
"chromatic": "10.9.6",
123123
"decompress": "^4.2.1",
124-
"eslint": "^8.45.0",
124+
"eslint": "^8.57.1",
125125
"eslint-config-next": "^14.2.2",
126-
"eslint-config-prettier": "9.1.0",
126+
"eslint-config-prettier": "^9",
127127
"eslint-plugin-simple-import-sort": "^10.0.0",
128128
"eslint-plugin-storybook": "0.8.0",
129-
"eslint-plugin-unused-imports": "^3.0.0",
129+
"eslint-plugin-unused-imports": "^3.2.0",
130130
"husky": "^9.0.11",
131131
"image-size": "^1.0.2",
132132
"lint-staged": "^15.2.5",
@@ -150,5 +150,5 @@
150150
"unist-util-visit": "^5.0.0",
151151
"xml2js": "^0.6.2"
152152
},
153-
"packageManager": "[email protected].0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977"
153+
"packageManager": "[email protected].1+sha512.e519b9f7639869dc8d5c3c5dfef73b3f091094b0a006d7317353c72b124e80e1afd429732e28705ad6bfa1ee879c1fce46c128ccebd3192101f43dd67c667912"
154154
}

0 commit comments

Comments
 (0)