-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Allow linting JS as modules #128
Comments
What would your suggestion to solve it be? And what does eslint do in this case? I'm wondering if #39 is enough of a solution or if there should be more to configure it. |
ESlint has this option in eslintrc
"sourceType" can be either "module" or "script" |
bump, https://nodejs.org/api/packages.html#determining-module-system |
Fixed in 7bc011e |
[parser]
source-type = "module" Add this to your |
Great! btw You should secure rslint package name ASAP!!! Otherwise someone else will register it, maybe even out of good will but then will stop updating it and will waste it. |
Thanks for the tip. Will do that! |
In most projects I've seen people using .js for modules and almost never .mjs. Being unable to configure this requires entire codebase refactor just to try rslint so making this configurable should make adoption by the community much faster.
The text was updated successfully, but these errors were encountered: