Skip to content

Commit 12381da

Browse files
committed
🔁 Update Dependencies and Modernise eslint.config.js Files
Signed-off-by: pcaversaccio <pascal.caversaccio@hotmail.ch>
1 parent 2467f81 commit 12381da

File tree

9 files changed

+226
-210
lines changed

9 files changed

+226
-210
lines changed

eslint.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
const eslint = require("@eslint/js");
33
const tseslint = require("typescript-eslint");
44
const eslintConfigPrettier = require("eslint-config-prettier");
5+
const globals = require("globals");
6+
const { defineConfig } = require("eslint/config");
57
/* eslint-enable @typescript-eslint/no-require-imports */
68

7-
/** @type {import('typescript-eslint').TSESLint.FlatConfig.ConfigArray} */
8-
module.exports = tseslint.config(
9+
module.exports = defineConfig(
910
{
1011
files: ["**/*.{js,ts}"],
1112
extends: [
@@ -20,6 +21,9 @@ module.exports = tseslint.config(
2021
languageOptions: {
2122
ecmaVersion: "latest",
2223
parser: tseslint.parser,
24+
globals: {
25+
...globals.node,
26+
},
2327
parserOptions: {
2428
project: true,
2529
tsconfigRootDir: __dirname,

foundry.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
"lib/forge-std": {
33
"branch": {
44
"name": "master",
5-
"rev": "799589bfa97698c2bdf0ba8df4d461b607e36c57"
5+
"rev": "ebc60f500bc6870baaf321a0196fddc24d6edb03"
66
}
77
},
88
"lib/openzeppelin-contracts": {
99
"branch": {
1010
"name": "master",
11-
"rev": "0e8e34ae536d939c8939c97c055022b8f6d9a598"
11+
"rev": "ce5e6ed9e87172d13b4dc325a299487bc9edd3f4"
1212
}
1313
},
1414
"lib/solady": {
1515
"branch": {
1616
"name": "main",
17-
"rev": "73f13dd1483707ef6b4d16cb0543570b7e1715a8"
17+
"rev": "cbcfe0009477aa329574f17e8db0a05703bb8bdd"
1818
}
1919
}
2020
}

interface/eslint.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ const next = require("@next/eslint-plugin-next");
55
const react = require("eslint-plugin-react");
66
const reactHooks = require("eslint-plugin-react-hooks");
77
const eslintConfigPrettier = require("eslint-config-prettier");
8+
const globals = require("globals");
9+
const { defineConfig } = require("eslint/config");
810
/* eslint-enable @typescript-eslint/no-require-imports */
911

10-
/** @type {import('typescript-eslint').TSESLint.FlatConfig.ConfigArray} */
11-
module.exports = tseslint.config(
12+
module.exports = defineConfig(
1213
{
1314
files: ["**/*.{js,mjs,ts,tsx}"],
1415
extends: [
@@ -31,6 +32,9 @@ module.exports = tseslint.config(
3132
languageOptions: {
3233
ecmaVersion: "latest",
3334
parser: tseslint.parser,
35+
globals: {
36+
...globals.node,
37+
},
3438
parserOptions: {
3539
project: true,
3640
tsconfigRootDir: __dirname,

interface/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"dependencies": {
3333
"@headlessui/react": "^2.2.9",
3434
"@heroicons/react": "^2.2.0",
35-
"next": "^16.0.7",
35+
"next": "^16.0.8",
3636
"next-themes": "^0.4.6",
3737
"prismjs": "^1.30.0",
3838
"react": "^19.2.1",
@@ -41,23 +41,24 @@
4141
},
4242
"devDependencies": {
4343
"@eslint/js": "^9.39.1",
44-
"@next/eslint-plugin-next": "^16.0.7",
44+
"@next/eslint-plugin-next": "^16.0.8",
4545
"@tailwindcss/postcss": "^4.1.17",
4646
"@trivago/prettier-plugin-sort-imports": "^6.0.0",
47-
"@types/node": "^24.10.1",
47+
"@types/node": "^24.10.2",
4848
"@types/react": "^19.2.7",
4949
"@types/react-dom": "^19.2.3",
5050
"autoprefixer": "^10.4.22",
5151
"eslint": "^9.39.1",
52-
"eslint-config-next": "^16.0.7",
52+
"eslint-config-next": "^16.0.8",
5353
"eslint-plugin-react": "^7.37.5",
5454
"eslint-plugin-react-hooks": "^7.0.1",
55+
"globals": "^16.5.0",
5556
"next-seo": "^7.0.1",
5657
"postcss": "^8.5.6",
5758
"prettier": "^3.7.4",
5859
"prettier-plugin-tailwindcss": "^0.7.2",
5960
"tailwindcss": "^4.1.17",
6061
"typescript": "^5.9.3",
61-
"typescript-eslint": "^8.48.1"
62+
"typescript-eslint": "^8.49.0"
6263
}
6364
}

lib/forge-std

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"author": "pcaversaccio (https://pcaversaccio.com), Matt Solomon (https://mattsolomon.dev)",
2323
"license": "AGPL-3.0-only",
24-
"packageManager": "pnpm@10.24.0",
24+
"packageManager": "pnpm@10.25.0",
2525
"scripts": {
2626
"clean": "npx hardhat clean && forge clean",
2727
"test": "forge test --out forge-artifacts",
@@ -255,6 +255,7 @@
255255
"eslint": "^9.39.1",
256256
"eslint-config-prettier": "^10.1.8",
257257
"ethers": "^6.16.0",
258+
"globals": "^16.5.0",
258259
"hardhat": "^2.27.1",
259260
"hardhat-abi-exporter": "^2.11.0",
260261
"hardhat-contract-sizer": "^2.10.1",
@@ -265,6 +266,6 @@
265266
"ts-node": "^10.9.2",
266267
"typechain": "^8.3.2",
267268
"typescript": "^5.9.3",
268-
"typescript-eslint": "^8.48.1"
269+
"typescript-eslint": "^8.49.0"
269270
}
270271
}

0 commit comments

Comments
 (0)