Skip to content

Instantly share code, notes, and snippets.

@gaboesquivel
Created July 29, 2018 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaboesquivel/92bfcf6ef8a243aa8c656190bd8a74cf to your computer and use it in GitHub Desktop.
Save gaboesquivel/92bfcf6ef8a243aa8c656190bd8a74cf to your computer and use it in GitHub Desktop.
EOSJS StandardJS fixes
➜ eosjs git:(standardjs) standard --fix
standard: Use JavaScript Standard Style (https://standardjs.com)
/Users/gabo/Code/forks/eosjs/bin/eosio-abi-update.js:14:8: 'name' is not defined.
/Users/gabo/Code/forks/eosjs/bin/eosio-abi-update.js:14:14: 'type' is not defined.
/Users/gabo/Code/forks/eosjs/bin/eosio-abi-update.js:14:47: 'type' is not defined.
/Users/gabo/Code/forks/eosjs/bin/eosio-abi-update.js:14:55: 'name' is not defined.
/Users/gabo/Code/forks/eosjs/src/abi-cache.js:26:15: Expected '===' and instead saw '=='.
/Users/gabo/Code/forks/eosjs/src/abi-cache.js:57:7: Return statement should not contain assignment.
/Users/gabo/Code/forks/eosjs/src/format.js:21:7: 'signed' is assigned a value but never used.
/Users/gabo/Code/forks/eosjs/src/index.js:213:5: Unreachable code.
/Users/gabo/Code/forks/eosjs/src/index.js:240:11: 'isPublic' is assigned a value but never used.
/Users/gabo/Code/forks/eosjs/src/index.js:251:59: Identifier 'required_keys' is not in camel case.
/Users/gabo/Code/forks/eosjs/src/index.js:256:5: Split initialized 'const' declarations into multiple statements.
/Users/gabo/Code/forks/eosjs/src/index.js:258:29: Identifier 'required_keys' is not in camel case.
/Users/gabo/Code/forks/eosjs/src/index.test.js:125:81: Identifier 'eosio_token' is not in camel case.
/Users/gabo/Code/forks/eosjs/src/index.test.js:282:11: 'pubkey' is assigned a value but never used.
/Users/gabo/Code/forks/eosjs/src/index.test.js:379:21: Expected an object to be thrown.
/Users/gabo/Code/forks/eosjs/src/index.test.js:380:14: Expected error to be handled.
/Users/gabo/Code/forks/eosjs/src/index.test.js:395:29: Expected '===' and instead saw '=='.
/Users/gabo/Code/forks/eosjs/src/index.test.js:402:20: Identifier 'eosio_token' is not in camel case.
/Users/gabo/Code/forks/eosjs/src/index.test.js:412:61: Identifier 'eosio_token' is not in camel case.
/Users/gabo/Code/forks/eosjs/src/index.test.js:413:57: Identifier 'eosio_token' is not in camel case.
/Users/gabo/Code/forks/eosjs/src/index.test.js:419:44: Identifier 'eosio_token' is not in camel case.
/Users/gabo/Code/forks/eosjs/src/index.test.js:444:21: Expected an object to be thrown.
/Users/gabo/Code/forks/eosjs/src/index.test.js:452:36: Expected an object to be thrown.
/Users/gabo/Code/forks/eosjs/src/index.test.js:453:21: Expected an object to be thrown.
/Users/gabo/Code/forks/eosjs/src/index.test.js:461:34: Expected the Promise rejection reason to be an Error.
/Users/gabo/Code/forks/eosjs/src/index.test.js:462:21: Expected an object to be thrown.
/Users/gabo/Code/forks/eosjs/src/structs.js:9:3: 'isName' is assigned a value but never used.
/Users/gabo/Code/forks/eosjs/src/structs.js:200:18: Expected '===' and instead saw '=='.
/Users/gabo/Code/forks/eosjs/src/structs.js:499:35: Expected '===' and instead saw '=='.
/Users/gabo/Code/forks/eosjs/src/structs.js:513:35: Expected '===' and instead saw '=='.
/Users/gabo/Code/forks/eosjs/src/structs.js:521:54: 'new Buffer()' was deprecated since v6. Use 'Buffer.alloc()' or 'Buffer.from()' (use 'https://www.npmjs.com/package/safe-buffer' for '<4.5.0') instead.
/Users/gabo/Code/forks/eosjs/src/structs.js:532:28: Expected '===' and instead saw '=='.
/Users/gabo/Code/forks/eosjs/src/structs.js:537:21: 'new Buffer()' was deprecated since v6. Use 'Buffer.alloc()' or 'Buffer.from()' (use 'https://www.npmjs.com/package/safe-buffer' for '<4.5.0') instead.
/Users/gabo/Code/forks/eosjs/src/structs.js:550:28: Expected '===' and instead saw '=='.
/Users/gabo/Code/forks/eosjs/src/structs.test.js:4:7: 'ByteBuffer' is assigned a value but never used.
/Users/gabo/Code/forks/eosjs/src/structs.test.js:54:12: 'structs' is assigned a value but never used.
/Users/gabo/Code/forks/eosjs/src/structs.test.js:102:41: Identifier 'eosio_token' is not in camel case.
/Users/gabo/Code/forks/eosjs/src/structs.test.js:114:21: 'types' is assigned a value but never used.
/Users/gabo/Code/forks/eosjs/src/structs.test.js:131:21: 'types' is assigned a value but never used.
/Users/gabo/Code/forks/eosjs/src/structs.test.js:148:21: 'types' is assigned a value but never used.
/Users/gabo/Code/forks/eosjs/src/write-api.js:50:20: 'options' is assigned a value but never used.
/Users/gabo/Code/forks/eosjs/src/write-api.js:386:9: Identifier 'ref_block_num' is not in camel case.
/Users/gabo/Code/forks/eosjs/src/write-api.js:387:9: Identifier 'ref_block_prefix' is not in camel case.
/Users/gabo/Code/forks/eosjs/src/write-api.js:388:9: Identifier 'net_usage_words' is not in camel case.
/Users/gabo/Code/forks/eosjs/src/write-api.js:389:9: Identifier 'max_cpu_usage_ms' is not in camel case.
/Users/gabo/Code/forks/eosjs/src/write-api.js:390:9: Identifier 'delay_sec' is not in camel case.
/Users/gabo/Code/forks/eosjs/src/write-api.js:443:28: 'new Buffer()' was deprecated since v6. Use 'Buffer.alloc()' or 'Buffer.from()' (use 'https://www.npmjs.com/package/safe-buffer' for '<4.5.0') instead.
/Users/gabo/Code/forks/eosjs/src/write-api.js:444:39: 'new Buffer()' was deprecated since v6. Use 'Buffer.alloc()' or 'Buffer.from()' (use 'https://www.npmjs.com/package/safe-buffer' for '<4.5.0') instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment