-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix lint warnings in blockly-samples #1978
Comments
Hi there! Could you please assign this to me? I'd like to work on this issue! Thanks! |
Go for it @sdthaker =) If you have any questions don't hesitate to ask! |
I'd want to test the plugin |
I was looking into this warning and seems like the |
Yes that sounds perfect!
You can do |
One of the warnings that I'm dealing with is somewhat ambiguous since it doesn't say exactly what's the issue with the type definition. The warning is coming from L50. Warning: warning Syntax error in type: {
import: string,
oldIdentifier?: string,
newIdentifier: string,
newImport: string,
newRequire: string,
} jsdoc/valid-types Currently trying to fix it, any help would be appreciated! Thanks! |
Hmm is that the full text of the error or is there other information? My guess is that it might be a problem with the |
Proposed code changesWarning post adding proposed changesTS Error post adding proposed changes |
My wild guess is it's the trailing comma after The and valid closure types here |
I did try removing the trailing comma and I still received the warning! :) |
@sdthaker I think the easiest thing to do now is to put up a PR with what you've got, then I can pull it down and figure out what's up with this specific type =) |
I was actually thinking of doing that today! LOL! Perfect, so I’d silence the warning through an ESLint rule for that piece if code and we can take it up later if the code changes needs to be removed based on your feedback! |
You can also just leave it un-silenced. Warnings don't block the CI or anything, and this is one we should probably actually resolve if there's really an invalid type, so it's fine to not be silenced. Thanks for looking into this, Beka! |
Check for duplicates
Component
multiple
Description
After #1946 is submitted:
There are several lint warnings in blockly-samples that we should fix or ignore the linter. Run the linter and fix the warnings shown.
Note that several of the warnings are about missing JsDoc comments, so you may need to write small amounts of documentation to fix this issue.
unexpected any
warnings may need refactorings to avoid theany
type, or may need to just add an ignore statement to silence the warning, if the use ofany
is appropriate.Reproduction steps
npm run lint
from the root of blockly-samplesStack trace
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: