Conversation
a02863a to
8c932f7
Compare
8c932f7 to
f4d5927
Compare
mnaamani
left a comment
There was a problem hiding this comment.
Great!
Can you also run yarn format and check-in the changed files.
The reason the --fix argument when you ran linter didn't sort those out is because the lint script is only linting .ts files /src folder I think.
Perhaps update it the lint script to cover the whole directory. So format, lint, and checks all cover the same files.
Perhaps also update .github/workflows/joystream-cli.yml
to run yarn workspace joystream-cli checks in place of yarn workspace joystream-cli build
|
I think ideally but will need to fix: I think adding mocha to the |
|
Fixed the mentioned issues. Perhaps this can be part of the common standard? |
mnaamani
left a comment
There was a problem hiding this comment.
Fixed the mentioned issues.
While testing I noticed the lack of unused imports check for the CLI.
I found this check very helpful in Pioneer. so I added@typescript-eslint/no-unused-varsrule to CLI's.eslintrc.jstoo. Also set"noUnusedLocals": trueintsconfig.json(the latter will additionaly cause the build to fail if there are any unused imports spotted).Perhaps this can be part of the common standard?
Yes those rules look very good and can catch a tonne of bugs. I'm surprised the no-unused-vars isn't on by default in the rule-sets we have.
Added reminder in #664
Introduces fixes to all linter errors following #917