Eslint Development Issues
@jejebecarte @Amxgh Please have a look at these ESLint error's that I have solved. Thanks in advance.
Hello! Looks mostly good! I took a quick look and a some things popped out:
- you should use consola (this doesn't have winston yet) for those log statements you used
eslint-disablefor - it's best to keep it consistent and also avoid@ignores whenever possible - looking at the
package.jsonfor the above I saw you ended up usingg... please remove is possible :pray: - you might want to check your use of async/await in some area -
handleStatsCommandfor example. You use it asynchronously but based on it's implementation it doesn't look like it's actually necessary. There might be other bits like that too. - you'll probably want to move
joindata.jsonout of the root folder - be cautious of synchronous file reading - I think I did that back when I wrote the blacklist logic but it should really be async
The file structure is looking good though! Big fan.
P.S. - I would also recommend squashing when you merge so the timeline is neater.
@jejebecarte
- I have removed
gfrompackage.json. - I have removed the
console.logstatements to includelogger.logwith their respectable imports on the right place. -
joindata.jsonis still in root folder since I've looked into it and figured it is somewhere the same as.envfile and thus is better at it's place inroot. - Synchronous file reading does not really impact this function as I see.
-
Async&AwaitforhandleStatsCommandis required since we are working in a Event file. It breaks if it isn't Asynchronous.
I don't know what squashing is ;)
Ok awesome thanks.
joindata.json is still in root folder since I've looked into it and figured it is somewhere the same as .env file and thus is better at it's place in root.
I don't quite understand what you mean by this...
Synchronous file reading does not really impact this function as I see.
Pretty sure it does. If I find it I'll point it out in the GH code comment thing.
See more info on squashing branches here.