-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Add eslint env/config for ember-electron projects #357
Comments
Is there a reason we're running |
Rather than an eslint plugin, perhaps we could just add some rules in the |
Also, it looks like the |
Much of this is fixed in v3, however we kinda punted on linting. It does lint out-of-box, but we added At some point I do think it would make sense to revisit, and figure out a good default linting config for the |
I would argue for adding eslint-plugin-node, like ember does by default. Thoughts? |
Before suggesting solutions, perhaps we could try to make a list of the main goals / pain-points we'd like linting to help with. Things that come to mind immediately are If there isn't already a set of linting rules for electron, we might want consider creating a separate package for that and configuring ember-electron projects to use them for JS files in |
TL;DR: I think we should write up an FAQ on linting, and leave the blueprint as-is. My opinion here is that we should keep
Feel free to suggest other goals I'm maybe not thinking of. If someone were to make a feature request that has nothing to do with the above, but is entirely in the domain of Electron/ linting is kind of a tricky one, and we can definitely argue about it -- Ember provides out-of-box linting, so should we just be making sure it doesn't break the Electron project (which is what we're doing now by simply ignoring it in The linting story in the Electron ecosystem seems pretty un-developed. Try a google search and you'll mostly find results geared towards contributing to the Electron project itself. So I'm nervous about trying to forge (heh) our own path linting Electron projects, because I don't think we have enough experience with this new project layout to have a good sense of the right direction to go, and we have no guidance from Electron/ If y'all agree, I'd be happy to write up an FAQ on linting, with my config as an example (I do have full linting working in my |
@bendemboski I think documenting would be an adequate fix here. Linting is very personal to most folks anyway, so forcibly editing their config may not be what we want anyway. |
Would it make sense to make an eslint plugin that would get added during
ember install ember-electron
?Mainly, it'd be nice not to have to manually fix the
error 'requireNode' is not defined no-undef
entries, but perhaps there are other things to note.The text was updated successfully, but these errors were encountered: