Skip to content

Commit 9fd2bdc

Browse files
committed
Udpate eslint configuration
Update the configuration to match the one in ecdsa project.
1 parent 7fdd04a commit 9fd2bdc

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

solidity/random-beacon/.eslintrc

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
{
22
"root": true,
33
"extends": ["@thesis-co"],
4-
"parserOptions": {
5-
"ecmaVersion": 2017,
6-
"sourceType": "module"
7-
},
8-
"env": {
9-
"es6": true,
10-
"mocha": true
11-
},
124
"rules": {
13-
"new-cap": "off",
14-
"import/no-extraneous-dependencies": "off",
5+
"import/no-extraneous-dependencies": [
6+
"error",
7+
{ "devDependencies": ["./test/**/*.ts", "hardhat.config.ts"] }
8+
],
159
"@typescript-eslint/no-use-before-define": "off",
16-
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }]
10+
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
11+
"@typescript-eslint/consistent-type-imports": "warn",
12+
"import/order": [
13+
"warn",
14+
{
15+
"groups": ["builtin", "external", "parent", "sibling", "index", "type"],
16+
"newlines-between": "always"
17+
}
18+
]
1719
}
1820
}

solidity/random-beacon/.prettierrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ module.exports = {
88
},
99
},
1010
],
11-
};
11+
}

solidity/random-beacon/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
"@types/mocha": "^9.0.0",
3838
"@types/node": "^16.10.5",
3939
"chai": "^4.3.4",
40-
"eslint": "^7.30.0",
41-
"eslint-plugin-import": "^2.18.2",
40+
"eslint": "^7.32.0",
4241
"ethereum-waffle": "^3.4.0",
4342
"ethers": "^5.4.7",
4443
"hardhat": "^2.6.4",

solidity/random-beacon/yarn.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -3502,7 +3502,7 @@ eslint-module-utils@^2.6.2:
35023502
debug "^3.2.7"
35033503
pkg-dir "^2.0.0"
35043504

3505-
eslint-plugin-import@^2.18.2, eslint-plugin-import@^2.23.4:
3505+
eslint-plugin-import@^2.23.4:
35063506
version "2.24.2"
35073507
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.24.2.tgz#2c8cd2e341f3885918ee27d18479910ade7bb4da"
35083508
integrity sha512-hNVtyhiEtZmpsabL4neEj+6M5DCLgpYyG9nzJY8lZQeQXEn5UPW1DpUdsMHMXsq98dbNm7nt1w9ZMSVpfJdi8Q==
@@ -3661,7 +3661,7 @@ eslint@^5.6.0:
36613661
table "^5.2.3"
36623662
text-table "^0.2.0"
36633663

3664-
eslint@^7.30.0:
3664+
eslint@^7.32.0:
36653665
version "7.32.0"
36663666
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d"
36673667
integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==

0 commit comments

Comments
 (0)