Use disable-next-line instead of disable and always put rule that is being disabled

This commit is contained in:
Fabio Berger 2017-05-29 15:59:42 +02:00
parent 80ce567834
commit a331943c11
2 changed files with 3 additions and 6 deletions

View File

@ -12,9 +12,8 @@ export const utils = {
return new BN(value.toString(), 10); return new BN(value.toString(), 10);
}, },
consoleLog(message: string): void { consoleLog(message: string): void {
/* tslint:disable */ // tslint:disable-next-line: no-console
console.log(message); console.log(message);
/* tslint:enable */
}, },
isParityNode(nodeVersion: string): boolean { isParityNode(nodeVersion: string): boolean {
return _.includes(nodeVersion, 'Parity'); return _.includes(nodeVersion, 'Parity');

View File

@ -182,9 +182,8 @@ describe('ZeroEx library', () => {
it ('should return the correct ECSignature on Party > V1.6.6', async () => { it ('should return the correct ECSignature on Party > V1.6.6', async () => {
const newParityNodeVersion = 'Parity//v1.6.7-beta-e128418-20170518/x86_64-macos/rustc1.17.0'; const newParityNodeVersion = 'Parity//v1.6.7-beta-e128418-20170518/x86_64-macos/rustc1.17.0';
const orderHash = '0x34decbedc118904df65f379a175bb39ca18209d6ce41d5ed549d54e6e0a95004'; const orderHash = '0x34decbedc118904df65f379a175bb39ca18209d6ce41d5ed549d54e6e0a95004';
/* tslint:disable */ // tslint:disable-next-line: max-line-length
const signature = '0x22109d11d79cb8bf96ed88625e1cd9558800c4073332a9a02857499883ee5ce3050aa3cc1f2c435e67e114cdce54b9527b4f50548342401bc5d2b77adbdacb021b'; const signature = '0x22109d11d79cb8bf96ed88625e1cd9558800c4073332a9a02857499883ee5ce3050aa3cc1f2c435e67e114cdce54b9527b4f50548342401bc5d2b77adbdacb021b';
/* tslint:enable */
const expectedECSignature = { const expectedECSignature = {
v: 27, v: 27,
r: '0x22109d11d79cb8bf96ed88625e1cd9558800c4073332a9a02857499883ee5ce3', r: '0x22109d11d79cb8bf96ed88625e1cd9558800c4073332a9a02857499883ee5ce3',
@ -207,9 +206,8 @@ describe('ZeroEx library', () => {
it ('should return the correct ECSignature on Party < V1.6.6', async () => { it ('should return the correct ECSignature on Party < V1.6.6', async () => {
const newParityNodeVersion = 'Parity//v1.6.6-beta-8c6e3f3-20170411/x86_64-macos/rustc1.16.0'; const newParityNodeVersion = 'Parity//v1.6.6-beta-8c6e3f3-20170411/x86_64-macos/rustc1.16.0';
const orderHash = '0xc793e33ffded933b76f2f48d9aa3339fc090399d5e7f5dec8d3660f5480793f7'; const orderHash = '0xc793e33ffded933b76f2f48d9aa3339fc090399d5e7f5dec8d3660f5480793f7';
/* tslint:disable */ // tslint:disable-next-line: max-line-length
const signature = '0x1bc80bedc6756722672753413efdd749b5adbd4fd552595f59c13427407ee9aee02dea66f25a608bbae457e020fb6decb763deb8b7192abab624997242da248960'; const signature = '0x1bc80bedc6756722672753413efdd749b5adbd4fd552595f59c13427407ee9aee02dea66f25a608bbae457e020fb6decb763deb8b7192abab624997242da248960';
/* tslint:enable */
const expectedECSignature = { const expectedECSignature = {
v: 27, v: 27,
r: '0xc80bedc6756722672753413efdd749b5adbd4fd552595f59c13427407ee9aee0', r: '0xc80bedc6756722672753413efdd749b5adbd4fd552595f59c13427407ee9aee0',