-
Notifications
You must be signed in to change notification settings - Fork 18
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
not compatible with commonjs #6
Comments
With CommonJS you export stuff by mutating the exports, while ES6 modules you declare it to be exported. So I think it’s normal. If I were to use this ESLint plugin, I would only use it for a certain directory or file patterns, and try to put as much stuff in it as possible. And only use it with ES6 modules. I think right now you might be able to get away with |
Well But
|
@despairblue good point about |
|
Made a PR fixing this. |
Seeing as there is no maintenance of the plugin, I've written my own where you can activate this exception. |
This module won't lint itself for example (this line)
I don't see a way to use this in node or with a commonjs module bundler, since exporting a module is basically mutating the
module
orexports
object. There seems to be no way around that.Disabling one rule in every module, on just one line, also seems like a dirty solution.
Maybe I'm missing something.
The text was updated successfully, but these errors were encountered: