Skip to content

Commit fce8f74

Browse files
authored
chore: update token-distribution to use our linting packages (#954)
Signed-off-by: Tomás Migone <[email protected]>
1 parent 0d46406 commit fce8f74

21 files changed

+200
-617
lines changed

packages/eslint-graph-config/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export default [
4444
ignoreCase: true,
4545
allowSeparatedGroups: true,
4646
}],
47+
'@stylistic/brace-style': ['error', '1tbs'],
4748
},
4849
},
4950
]

packages/token-distribution/.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/token-distribution/.eslintrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/token-distribution/.prettierignore

Whitespace-only changes.

packages/token-distribution/.prettierrc.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

packages/token-distribution/.solhint.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/token-distribution/.solhintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/token-distribution/contracts/L2GraphTokenLockManager.sol

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ contract L2GraphTokenLockManager is GraphTokenLockManager, ICallhookReceiver {
136136
* @return Hash of the initialization calldata
137137
* @return Address of the created contract
138138
*/
139-
function _deployFromL1(bytes32 _salt, TransferredWalletData memory _walletData) internal returns (bytes32, address) {
139+
function _deployFromL1(
140+
bytes32 _salt,
141+
TransferredWalletData memory _walletData
142+
) internal returns (bytes32, address) {
140143
bytes memory initializer = _encodeInitializer(_walletData);
141144
address contractAddress = _deployProxy2(_salt, masterCopy, initializer);
142145
return (keccak256(initializer), contractAddress);

packages/token-distribution/contracts/MinimalProxyFactory.sol

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,14 @@ contract MinimalProxyFactory {
1414
/// @dev Emitted when a new proxy is created
1515
event ProxyCreated(address indexed proxy);
1616

17-
1817
/**
1918
* @notice Gets the deterministic CREATE2 address for MinimalProxy with a particular implementation
2019
* @dev Uses address(this) as deployer to compute the address. Only for backwards compatibility.
2120
* @param _salt Bytes32 salt to use for CREATE2
2221
* @param _implementation Address of the proxy target implementation
2322
* @return Address of the counterfactual MinimalProxy
2423
*/
25-
function getDeploymentAddress(
26-
bytes32 _salt,
27-
address _implementation
28-
) public view returns (address) {
24+
function getDeploymentAddress(bytes32 _salt, address _implementation) public view returns (address) {
2925
return getDeploymentAddress(_salt, _implementation, address(this));
3026
}
3127

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const config = require('eslint-graph-config')
2+
3+
module.exports = [
4+
...config.default,
5+
{
6+
rules: {
7+
'@typescript-eslint/no-unsafe-assignment': 'off',
8+
'@typescript-eslint/no-var-requires': 'off',
9+
'@typescript-eslint/no-unsafe-call': 'off',
10+
'@typescript-eslint/no-unsafe-member-access': 'off',
11+
'@typescript-eslint/no-unsafe-argument': 'off',
12+
},
13+
},
14+
]

0 commit comments

Comments
 (0)