Skip to content

Commit 56f346f

Browse files
committed
fix codes as lintFix and remove deprecated file
work - fix class-methods-use-this - remove .eslintrc
1 parent e7708c9 commit 56f346f

File tree

6 files changed

+7
-45
lines changed

6 files changed

+7
-45
lines changed

.babelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"presets": ["@babel/preset-env"],
3-
"plugins": ["@babel/plugin-external-helpers", "@babel/plugin-transform-runtime"]
2+
"presets": ["@babel/preset-env"],
3+
"plugins": ["@babel/plugin-external-helpers", "@babel/plugin-transform-runtime"]
44
}

.eslintrc

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

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ module.exports = {
88
plugins: ['prettier'],
99
rules: {
1010
'prettier/prettier': ['error'],
11-
'radix': 0,
12-
'eqeqeq': 0,
11+
radix: 0,
12+
eqeqeq: 0,
1313
'new-cap': 0,
1414
'no-empty': 0,
1515
'no-console': 0,

packages/caver-klay/caver-klay-accounts/src/accountKey/accountKeyMultiSig.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ class AccountKeyMultiSig {
1212
if (isDuple(keys)) throw new Error('There is a duplicate key.')
1313

1414
this._keys = keys
15-
}
16-
17-
get type() {
18-
return AccountKeyEnum.ACCOUNT_KEY_MULTISIG
15+
this.type = AccountKeyEnum.ACCOUNT_KEY_MULTISIG
1916
}
2017

2118
get defaultKey() {

packages/caver-klay/caver-klay-accounts/src/accountKey/accountKeyPublic.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ class AccountKeyPublic {
66

77
if (typeof key !== 'string') throw new Error('To create AccountKeyPublic, a private key strings is required.')
88
this._key = key
9-
}
10-
11-
get type() {
12-
return AccountKeyEnum.ACCOUNT_KEY_PUBLIC
9+
this.type = AccountKeyEnum.ACCOUNT_KEY_PUBLIC
1310
}
1411

1512
get defaultKey() {

packages/caver-klay/caver-klay-accounts/src/accountKey/accountKeyRoleBased.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ class AccountKeyRoleBased {
1414
this._transactionKey = makeAccountKey(keyObj.transactionKey)
1515
this._updateKey = makeAccountKey(keyObj.updateKey)
1616
this._feePayerKey = makeAccountKey(keyObj.feePayerKey)
17-
}
18-
19-
get type() {
20-
return AccountKeyEnum.ACCOUNT_KEY_ROLEBASED
17+
this.type = AccountKeyEnum.ACCOUNT_KEY_ROLEBASED
2118
}
2219

2320
get defaultKey() {

0 commit comments

Comments
 (0)