SimCoderYoutube/TiktokClone

50+ syntax errors in GH version of backend/functions/index.js

Closed this issue · 0 comments

using the index.js file from this GH repo, i got errors like the ones below (indentation, strings must use double quote, missing semicolon). attached is original file with syntax errors resolved, perhaps will save time if others run into same issue. thank you SimCoderYoutube for making the source code available & creating the youtube tutorials.

 9:1   error  Expected indentation of 2 spaces but found 4          indent
  10:1   error  Expected indentation of 6 spaces but found 8          indent
  11:1   error  Expected indentation of 6 spaces but found 8          indent
  12:1   error  Expected indentation of 6 spaces but found 8          indent
  12:50  error  Missing semicolon                                     semi
  13:3   error  Missing semicolon                                     semi
  16:1   error  This line has a length of 102. Maximum allowed is 80  max-len
  16:51  error  Strings must use doublequote                          quotes
  17:1   error  Expected indentation of 2 spaces but found 4          indent
  17:23  error  Missing semicolon                                     semi
  18:1   error  Expected indentation of 2 spaces but found 4          indent
  18:32  error  Strings must use doublequote                          quotes
  19:1   error  Expected indentation of 4 spaces but found 8          indent
  20:1   error  Expected indentation of 6 spaces but found 12         indent
  20:67  error  Missing trailing comma                                comma-dangle
  21:1   error  Expected indentation of 4 spaces but found 8          indent
  21:10  error  Missing semicolon                                     semi
  22:1   error  Expected indentation of 2 spaces but found 4          indent
  23:1   error  Expected indentation of 2 spaces but found 4          indent
  23:32  error  Strings must use doublequote                          quotes
  24:1   error  Expected indentation of 4 spaces but found 8          indent
  25:1   error  Expected indentation of 6 spaces but found 12         indent
  25:64  error  Missing trailing comma                                comma-dangle
  26:1   error  Expected indentation of 4 spaces but found 8          indent
  26:10  error  Missing semicolon                                     semi
  27:1   error  Expected indentation of 2 spaces but found 4          indent
  28:1   error  Expected indentation of 2 spaces but found 4          indent
  29:1   error  Expected indentation of 6 spaces but found 8          indent
  30:1   error  Expected indentation of 6 spaces but found 8          indent
  31:1   error  Expected indentation of 6 spaces but found 8          indent
  31:27  error  Missing semicolon                                     semi
  32:3   error  Missing semicolon                                     semi
  34:1   error  This line has a length of 102. Maximum allowed is 80  max-len
  34:51  error  Strings must use doublequote                          quotes
  35:1   error  Expected indentation of 2 spaces but found 4          indent
  35:23  error  Missing semicolon                                     semi
  36:1   error  Expected indentation of 2 spaces but found 4          indent
  36:32  error  Strings must use doublequote                          quotes
  37:1   error  Expected indentation of 4 spaces but found 8          indent
  38:1   error  Expected indentation of 6 spaces but found 12         indent
  38:68  error  Missing trailing comma                                comma-dangle
  39:1   error  Expected indentation of 4 spaces but found 8          indent
  39:10  error  Missing semicolon                                     semi
  40:1   error  Expected indentation of 2 spaces but found 4          indent
  41:1   error  Expected indentation of 2 spaces but found 4          indent
  41:32  error  Strings must use doublequote                          quotes
  42:1   error  Expected indentation of 4 spaces but found 8          indent
  43:1   error  Expected indentation of 6 spaces but found 12         indent
  43:65  error  Missing trailing comma                                comma-dangle
  44:1   error  Expected indentation of 4 spaces but found 8          indent
  44:10  error  Missing semicolon                                     semi
  45:1   error  Expected indentation of 2 spaces but found 4          indent
  46:1   error  Expected indentation of 2 spaces but found 4          indent
  47:1   error  Expected indentation of 6 spaces but found 8          indent
  48:1   error  Expected indentation of 6 spaces but found 8          indent
  49:1   error  Expected indentation of 6 spaces but found 8          indent
  49:27  error  Missing semicolon                                     semi
  50:3   error  Missing semicolon                                     semi

index.js.zip