chore: add linting rules#49
Open
danielpeintner wants to merge 3 commits intoeclipse-thingweb:mainfrom
Open
Conversation
Member
Author
|
Running the current code causes some errors which we might want to fix... |
Member
Author
|
Note: I also wonder why the CI build runs fine... I assume it should fail 🤷♂️ EDIT: It seems to run |
Member
|
I wanted to give this a new try but we have way too many stuff to fix here :( |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #49 +/- ##
===========================================
+ Coverage 69.33% 87.14% +17.81%
===========================================
Files 1 6 +5
Lines 300 428 +128
Branches 79 139 +60
===========================================
+ Hits 208 373 +165
+ Misses 70 48 -22
+ Partials 22 7 -15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Author
We can also try to tackle eslint rules one by one ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note: I tried to take over the rules/options from node-wot.
However, I removed for now the following rules since they seem to require tsconfig files etc also (can be added later)
"@typescript-eslint/prefer-nullish-coalescing": "error","@typescript-eslint/strict-boolean-expressions": "error",fixes #46