Skip to content

Commit fa7809a

Browse files
committed
Revert "Dangling commas are now required. (OpenZeppelin#1359)"
This reverts commit a688977.
1 parent 86581c4 commit fa7809a

10 files changed

+26
-26
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
// Code style
2828
"camelcase": ["error", {"properties": "always"}],
29-
"comma-dangle": ["error", "always-multiline"],
29+
"comma-dangle": ["warn", "always-multiline"],
3030
"comma-spacing": ["error", {"before": false, "after": true}],
3131
"dot-notation": ["error", {"allowKeywords": true, "allowPattern": ""}],
3232
"eol-last": ["error", "always"],

test/crowdsale/AllowanceCrowdsale.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ contract('AllowanceCrowdsale', function ([_, investor, wallet, purchaser, tokenW
4242
purchaser: investor,
4343
beneficiary: investor,
4444
value: value,
45-
amount: expectedTokenAmount,
45+
amount: expectedTokenAmount
4646
});
4747
});
4848

test/crowdsale/Crowdsale.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ contract('Crowdsale', function ([_, investor, wallet, purchaser]) {
8383
purchaser: investor,
8484
beneficiary: investor,
8585
value: value,
86-
amount: expectedTokenAmount,
86+
amount: expectedTokenAmount
8787
});
8888
});
8989

@@ -106,7 +106,7 @@ contract('Crowdsale', function ([_, investor, wallet, purchaser]) {
106106
purchaser: purchaser,
107107
beneficiary: investor,
108108
value: value,
109-
amount: expectedTokenAmount,
109+
amount: expectedTokenAmount
110110
});
111111
});
112112

test/crowdsale/MintedCrowdsale.behavior.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function shouldBehaveLikeMintedCrowdsale ([_, investor, wallet, purchaser], rate
2121
purchaser: investor,
2222
beneficiary: investor,
2323
value: value,
24-
amount: expectedTokenAmount,
24+
amount: expectedTokenAmount
2525
});
2626
});
2727

test/payment/escrow/Escrow.behavior.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function shouldBehaveLikeEscrow (primary, [payee1, payee2]) {
3131
const { logs } = await this.escrow.deposit(payee1, { from: primary, value: amount });
3232
expectEvent.inLogs(logs, 'Deposited', {
3333
payee: payee1,
34-
weiAmount: amount,
34+
weiAmount: amount
3535
});
3636
});
3737

@@ -80,7 +80,7 @@ function shouldBehaveLikeEscrow (primary, [payee1, payee2]) {
8080
const { logs } = await this.escrow.withdraw(payee1, { from: primary });
8181
expectEvent.inLogs(logs, 'Withdrawn', {
8282
payee: payee1,
83-
weiAmount: amount,
83+
weiAmount: amount
8484
});
8585
});
8686
});

test/token/ERC20/ERC20.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ contract('ERC20', function ([_, owner, recipient, anotherAccount]) {
6060
expectEvent.inLogs(logs, 'Transfer', {
6161
from: owner,
6262
to: to,
63-
value: amount,
63+
value: amount
6464
});
6565
});
6666
});
@@ -88,7 +88,7 @@ contract('ERC20', function ([_, owner, recipient, anotherAccount]) {
8888
expectEvent.inLogs(logs, 'Approval', {
8989
owner: owner,
9090
spender: spender,
91-
value: amount,
91+
value: amount
9292
});
9393
});
9494

@@ -122,7 +122,7 @@ contract('ERC20', function ([_, owner, recipient, anotherAccount]) {
122122
expectEvent.inLogs(logs, 'Approval', {
123123
owner: owner,
124124
spender: spender,
125-
value: amount,
125+
value: amount
126126
});
127127
});
128128

@@ -192,7 +192,7 @@ contract('ERC20', function ([_, owner, recipient, anotherAccount]) {
192192
expectEvent.inLogs(logs, 'Transfer', {
193193
from: owner,
194194
to: to,
195-
value: amount,
195+
value: amount
196196
});
197197
});
198198

@@ -277,7 +277,7 @@ contract('ERC20', function ([_, owner, recipient, anotherAccount]) {
277277
expectEvent.inLogs(logs, 'Approval', {
278278
owner: owner,
279279
spender: spender,
280-
value: 0,
280+
value: 0
281281
});
282282
});
283283

@@ -334,7 +334,7 @@ contract('ERC20', function ([_, owner, recipient, anotherAccount]) {
334334
expectEvent.inLogs(logs, 'Approval', {
335335
owner: owner,
336336
spender: spender,
337-
value: amount,
337+
value: amount
338338
});
339339
});
340340

@@ -368,7 +368,7 @@ contract('ERC20', function ([_, owner, recipient, anotherAccount]) {
368368
expectEvent.inLogs(logs, 'Approval', {
369369
owner: owner,
370370
spender: spender,
371-
value: amount,
371+
value: amount
372372
});
373373
});
374374

test/token/ERC20/behaviors/ERC20Burnable.behavior.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function shouldBehaveLikeERC20Burnable (owner, initialBalance, [burner]) {
2828
expectEvent.inLogs(this.logs, 'Transfer', {
2929
from: owner,
3030
to: ZERO_ADDRESS,
31-
value: amount,
31+
value: amount
3232
});
3333
});
3434
}
@@ -74,7 +74,7 @@ function shouldBehaveLikeERC20Burnable (owner, initialBalance, [burner]) {
7474
expectEvent.inLogs(this.logs, 'Transfer', {
7575
from: owner,
7676
to: ZERO_ADDRESS,
77-
value: amount,
77+
value: amount
7878
});
7979
});
8080
}

test/token/ERC20/behaviors/ERC20Mintable.behavior.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function shouldBehaveLikeERC20Mintable (minter, [anyone]) {
3333
expectEvent.inLogs(this.logs, 'Transfer', {
3434
from: ZERO_ADDRESS,
3535
to: anyone,
36-
value: amount,
36+
value: amount
3737
});
3838
});
3939
}

test/token/ERC721/ERC721.behavior.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ function shouldBehaveLikeERC721 (
8787
expectEvent.inLogs(logs, 'Transfer', {
8888
from: owner,
8989
to: this.toWhom,
90-
tokenId: tokenId,
90+
tokenId: tokenId
9191
});
9292
});
9393
} else {
9494
it('emits only a transfer event', async function () {
9595
expectEvent.inLogs(logs, 'Transfer', {
9696
from: owner,
9797
to: this.toWhom,
98-
tokenId: tokenId,
98+
tokenId: tokenId
9999
});
100100
});
101101
}
@@ -160,7 +160,7 @@ function shouldBehaveLikeERC721 (
160160
expectEvent.inLogs(logs, 'Transfer', {
161161
from: owner,
162162
to: owner,
163-
tokenId: tokenId,
163+
tokenId: tokenId
164164
});
165165
});
166166

@@ -336,7 +336,7 @@ function shouldBehaveLikeERC721 (
336336
expectEvent.inLogs(logs, 'Approval', {
337337
owner: owner,
338338
approved: address,
339-
tokenId: tokenId,
339+
tokenId: tokenId
340340
});
341341
});
342342
};
@@ -446,7 +446,7 @@ function shouldBehaveLikeERC721 (
446446
expectEvent.inLogs(logs, 'ApprovalForAll', {
447447
owner: owner,
448448
operator: operator,
449-
approved: true,
449+
approved: true
450450
});
451451
});
452452
});
@@ -468,7 +468,7 @@ function shouldBehaveLikeERC721 (
468468
expectEvent.inLogs(logs, 'ApprovalForAll', {
469469
owner: owner,
470470
operator: operator,
471-
approved: true,
471+
approved: true
472472
});
473473
});
474474

@@ -496,7 +496,7 @@ function shouldBehaveLikeERC721 (
496496
expectEvent.inLogs(logs, 'ApprovalForAll', {
497497
owner: owner,
498498
operator: operator,
499-
approved: true,
499+
approved: true
500500
});
501501
});
502502
});

test/token/ERC721/ERC721MintBurn.behavior.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function shouldBehaveLikeMintAndBurnERC721 (
4141
expectEvent.inLogs(logs, 'Transfer', {
4242
from: ZERO_ADDRESS,
4343
to: newOwner,
44-
tokenId: thirdTokenId,
44+
tokenId: thirdTokenId
4545
});
4646
});
4747
});
@@ -86,7 +86,7 @@ function shouldBehaveLikeMintAndBurnERC721 (
8686
expectEvent.inLogs(logs, 'Transfer', {
8787
from: owner,
8888
to: ZERO_ADDRESS,
89-
tokenId: tokenId,
89+
tokenId: tokenId
9090
});
9191
});
9292
});

0 commit comments

Comments
 (0)