Skip to content

Commit 07d9dd5

Browse files
committed
Add Solidity linter configuration: - Add .solhintrc for consistent code formatting
1 parent 36055ca commit 07d9dd5

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

.solhintrc

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"extends": "solhint:recommended",
3+
"rules": {
4+
"compiler-version": [
5+
"error",
6+
"^0.8.0"
7+
],
8+
"func-visibility": [
9+
"error",
10+
{
11+
"ignoreConstructors": true
12+
}
13+
],
14+
"not-rely-on-time": "off",
15+
"no-empty-blocks": "warn",
16+
"max-line-length": [
17+
"warn",
18+
145
19+
],
20+
"reason-string": [
21+
"warn",
22+
{
23+
"maxLength": 145
24+
}
25+
],
26+
"state-visibility": "error",
27+
"var-name-mixedcase": "warn",
28+
"func-name-mixedcase": "warn",
29+
"private-vars-leading-underscore": [
30+
"warn",
31+
{
32+
"strict": false
33+
}
34+
],
35+
"ordering": "warn",
36+
"reentrancy": "error",
37+
"avoid-low-level-calls": "warn",
38+
"operator-whitespace": "off"
39+
}
40+
}

chain/src/interfaces/IAccessControlFacet.sol

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity ^0.8.0;
33

4-
import { IAccessControlUpgradeable } from
5-
"openzeppelin-contracts-upgradeable/contracts/access/IAccessControlUpgradeable.sol";
4+
import { IAccessControl } from "openzeppelin-contracts/contracts/access/IAccessControl.sol";
65

7-
interface IAccessControlFacet is IAccessControlUpgradeable {
6+
interface IAccessControlFacet is IAccessControl {
87
/// @notice Error definitions from AccessControl
98
error AccessControlUnauthorized(address account, bytes32 role);
109
error AccessControlBadConfirmation();

0 commit comments

Comments
 (0)