Skip to content

Commit f41f2b5

Browse files
committed
chore: update dependencies and add pnpm workspace configuration
1 parent cdeb8bf commit f41f2b5

File tree

8 files changed

+2364
-1233
lines changed

8 files changed

+2364
-1233
lines changed

contracts/Greeter.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* SPDX-License-Identifier: MIT */
2-
pragma solidity ^0.8.28;
2+
pragma solidity ^0.8.29;
33

44
import { console } from "hardhat/console.sol";
55
import { IGreeter } from "./interfaces/IGreeter.sol";

contracts/interfaces/IGreeter.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity ^0.8.28;
2+
pragma solidity ^0.8.29;
33

44
/**
55
* @title IGreeter

eslint.config.mjs

Lines changed: 97 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,121 @@
11
// eslint-disable-next-line strict
2-
import mocha from "eslint-plugin-mocha";
3-
import prettier from "eslint-plugin-prettier";
4-
import globals from "globals";
5-
import tsParser from "@typescript-eslint/parser";
6-
import path from "node:path";
7-
import {fileURLToPath} from "node:url";
2+
import { FlatCompat } from "@eslint/eslintrc";
83
import js from "@eslint/js";
9-
import {FlatCompat} from "@eslint/eslintrc";
4+
import tsParser from "@typescript-eslint/parser";
5+
import globals from "globals";
106

11-
const __filename = fileURLToPath(import.meta.url);
12-
const __dirname = path.dirname(__filename);
137
const compat = new FlatCompat({
148
baseDirectory: __dirname,
159
recommendedConfig: js.configs.recommended,
1610
allConfig: js.configs.all,
1711
});
1812

1913
export default [
20-
...compat.extends('eslint:recommended', 'plugin:prettier/recommended', 'prettier'),
14+
...compat.extends("eslint:recommended", "plugin:prettier/recommended", "prettier"),
2115
{
22-
files: ["**/*.ts", "**/*.tsx"],
23-
ignores: [
24-
"**/node_modules",
25-
"**/.eslintrc*",
26-
"**/artifacts",
27-
"**/cache",
28-
"**/constants",
29-
"**/coverage",
30-
"lib/murky",
31-
"lib/openzeppelin-contracts",
32-
"typechain-types/*",
33-
],
34-
}, {
35-
plugins: {
36-
mocha, prettier
16+
files: ["**/*.ts", "**/*.tsx"],
17+
ignores: [
18+
"**/node_modules",
19+
"**/.eslintrc*",
20+
"**/artifacts",
21+
"**/cache",
22+
"**/constants",
23+
"**/coverage",
24+
"lib/murky",
25+
"lib/openzeppelin-contracts",
26+
"typechain-types/*",
27+
],
3728
},
38-
39-
languageOptions: {
40-
globals: {
41-
...globals.browser,
42-
...globals.node,
43-
...globals.mocha,
44-
...globals.jest,
45-
artifacts: false,
46-
contract: false,
47-
assert: false,
48-
web3: false,
49-
usePlugin: false,
50-
extendEnvironment: false,
29+
{
30+
plugins: {
31+
mocha,
32+
prettier,
5133
},
5234

53-
parser: tsParser,
54-
ecmaVersion: 2020,
55-
sourceType: "commonjs",
56-
},
35+
languageOptions: {
36+
globals: {
37+
...globals.browser,
38+
...globals.node,
39+
...globals.mocha,
40+
...globals.jest,
41+
artifacts: false,
42+
contract: false,
43+
assert: false,
44+
web3: false,
45+
usePlugin: false,
46+
extendEnvironment: false,
47+
},
5748

58-
rules: {
59-
strict: ["error", "global"],
60-
"array-bracket-spacing": ["off"],
49+
parser: tsParser,
50+
ecmaVersion: 2020,
51+
sourceType: "commonjs",
52+
},
6153

62-
camelcase: ["error", {
63-
properties: "always",
64-
}],
54+
rules: {
55+
strict: ["error", "global"],
56+
"array-bracket-spacing": ["off"],
6557

66-
"comma-dangle": ["error", "always-multiline"],
58+
camelcase: [
59+
"error",
60+
{
61+
properties: "always",
62+
},
63+
],
6764

68-
"comma-spacing": ["error", {
69-
before: false,
70-
after: true,
71-
}],
65+
"comma-dangle": ["error", "always-multiline"],
7266

73-
"dot-notation": ["error", {
74-
allowKeywords: true,
75-
allowPattern: "",
76-
}],
67+
"comma-spacing": [
68+
"error",
69+
{
70+
before: false,
71+
after: true,
72+
},
73+
],
7774

78-
"eol-last": ["error", "always"],
79-
eqeqeq: ["error", "smart"],
80-
"generator-star-spacing": ["error", "before"],
81-
indent: ["error", 2],
82-
"linebreak-style": ["error", "unix"],
83-
"max-len": ["error", 120, 2],
84-
"no-debugger": "off",
85-
"no-dupe-args": "error",
86-
"no-dupe-keys": "error",
87-
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
75+
"dot-notation": [
76+
"error",
77+
{
78+
allowKeywords: true,
79+
allowPattern: "",
80+
},
81+
],
8882

89-
"no-redeclare": ["error", {
90-
builtinGlobals: true,
91-
}],
83+
"eol-last": ["error", "always"],
84+
eqeqeq: ["error", "smart"],
85+
"generator-star-spacing": ["error", "before"],
86+
indent: ["error", 2],
87+
"linebreak-style": ["error", "unix"],
88+
"max-len": ["error", 120, 2],
89+
"no-debugger": "off",
90+
"no-dupe-args": "error",
91+
"no-dupe-keys": "error",
92+
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
9293

93-
"no-trailing-spaces": ["error", {
94-
skipBlankLines: false,
95-
}],
94+
"no-redeclare": [
95+
"error",
96+
{
97+
builtinGlobals: true,
98+
},
99+
],
96100

97-
"no-undef": "error",
98-
"no-use-before-define": "off",
99-
"no-var": "error",
100-
"object-curly-spacing": "off",
101-
"prefer-const": "error",
102-
quotes: "off",
103-
semi: ["error", "always"],
104-
"space-before-function-paren": "off",
105-
"mocha/no-exclusive-tests": ["error"],
106-
"promise/always-return": "off",
107-
"promise/avoid-new": "off",
101+
"no-trailing-spaces": [
102+
"error",
103+
{
104+
skipBlankLines: false,
105+
},
106+
],
107+
108+
"no-undef": "error",
109+
"no-use-before-define": "off",
110+
"no-var": "error",
111+
"object-curly-spacing": "off",
112+
"prefer-const": "error",
113+
quotes: "off",
114+
semi: ["error", "always"],
115+
"space-before-function-paren": "off",
116+
"mocha/no-exclusive-tests": ["error"],
117+
"promise/always-return": "off",
118+
"promise/avoid-new": "off",
119+
},
108120
},
109-
}];
121+
];

eslint.config.mjs~

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
// eslint-disable-next-line strict
2+
import mocha from "eslint-plugin-mocha";
3+
import prettier from "eslint-plugin-prettier";
4+
import globals from "globals";
5+
import tsParser from "@typescript-eslint/parser";
6+
import path from "node:path";
7+
import {fileURLToPath} from "node:url";
8+
import js from "@eslint/js";
9+
import {FlatCompat} from "@eslint/eslintrc";
10+
11+
const __filename = fileURLToPath(import.meta.url);
12+
const __dirname = path.dirname(__filename);
13+
const compat = new FlatCompat({
14+
baseDirectory: __dirname,
15+
recommendedConfig: js.configs.recommended,
16+
allConfig: js.configs.all,
17+
});
18+
19+
export default [
20+
...compat.extends("eslint:recommended", "plugin:prettier/recommended", "prettier"),
21+
{
22+
files: ["**/*.ts", "**/*.tsx"],
23+
ignores: [
24+
"**/node_modules",
25+
"**/.eslintrc*",
26+
"**/artifacts",
27+
"**/cache",
28+
"**/constants",
29+
"**/coverage",
30+
"lib/murky",
31+
"lib/openzeppelin-contracts",
32+
"typechain-types/*",
33+
],
34+
}, {
35+
plugins: {
36+
mocha, prettier
37+
},
38+
39+
languageOptions: {
40+
globals: {
41+
...globals.browser,
42+
...globals.node,
43+
...globals.mocha,
44+
...globals.jest,
45+
artifacts: false,
46+
contract: false,
47+
assert: false,
48+
web3: false,
49+
usePlugin: false,
50+
extendEnvironment: false,
51+
},
52+
53+
parser: tsParser,
54+
ecmaVersion: 2020,
55+
sourceType: "commonjs",
56+
},
57+
58+
rules: {
59+
strict: ["error", "global"],
60+
"array-bracket-spacing": ["off"],
61+
62+
camelcase: ["error", {
63+
properties: "always",
64+
}],
65+
66+
"comma-dangle": ["error", "always-multiline"],
67+
68+
"comma-spacing": ["error", {
69+
before: false,
70+
after: true,
71+
}],
72+
73+
"dot-notation": ["error", {
74+
allowKeywords: true,
75+
allowPattern: "",
76+
}],
77+
78+
"eol-last": ["error", "always"],
79+
eqeqeq: ["error", "smart"],
80+
"generator-star-spacing": ["error", "before"],
81+
indent: ["error", 2],
82+
"linebreak-style": ["error", "unix"],
83+
"max-len": ["error", 120, 2],
84+
"no-debugger": "off",
85+
"no-dupe-args": "error",
86+
"no-dupe-keys": "error",
87+
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
88+
89+
"no-redeclare": ["error", {
90+
builtinGlobals: true,
91+
}],
92+
93+
"no-trailing-spaces": ["error", {
94+
skipBlankLines: false,
95+
}],
96+
97+
"no-undef": "error",
98+
"no-use-before-define": "off",
99+
"no-var": "error",
100+
"object-curly-spacing": "off",
101+
"prefer-const": "error",
102+
quotes: "off",
103+
semi: ["error", "always"],
104+
"space-before-function-paren": "off",
105+
"mocha/no-exclusive-tests": ["error"],
106+
"promise/always-return": "off",
107+
"promise/avoid-new": "off",
108+
},
109+
}];

hardhat.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default {
137137
flat: false,
138138
},
139139
solidity: {
140-
version: "0.8.28",
140+
version: "0.8.29",
141141
settings: {
142142
optimizer: {
143143
enabled: false,

0 commit comments

Comments
 (0)