-
Notifications
You must be signed in to change notification settings - Fork 81
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
Errors for commented out imports and exports #42
Comments
@alubbe Nice find! The current logic utilizes pattern matching to find imports and exports. It should of course ignore commented out lines. |
Okay so then ignoring lines with a preceding |
Ok so JavaScript does not have nested comments, so it suffices to find the last |
or, more economically, find the nearest preceding |
anyways, thanks for this tool - I hope to try it again once it ignores comments (atm our code base is just too large and littered with comments for me to clean up by hand) |
@alubbe There are plenty of ways to solve this problem. I'll ping you once it is done. Cheers for the input. 👍 |
@alubbe This should now be fixed on the next release of |
amazing, thanks! |
@alubbe This is now released. |
The tool does not recognize when an invalid import statement has been commented out, like this:
// export { nonsense } from './invalid/path';
It throws this error until we delete the line:
It would be great if it would ignore these lines - does the currently logic depend on pattern matching or does it parse the AST of the files?
The text was updated successfully, but these errors were encountered: