-
Notifications
You must be signed in to change notification settings - Fork 4
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
Auto-fix, modernization/cleanup, and more! #6
Conversation
Hey, thanks for this! Haven’t had a chance to dive in yet, but will take a look over the next couple of days. |
I tried running this locally, but it refused to work! |
@gggritso That's really strange. I haven't seen paths like that before. I just pushed a change to normalize paths before trying to lint them, can you try that? |
Another option (but a largish refactor) is to use the eslint nodejs api directly (and use |
@apexskier I think it might have been a Nova bug! I'm on b12 now, and the code works great before and after your patch! |
@apexskier @gggritso I would love to use these improvements in the latest b16 version. Does it run on b16?? |
@apexskier @gggritso @jsmecham Anything I can do to get this merged and updated in the Nova extensions library? I would love to keep 1 eslint extension instead of having multiple versions because this isn't updated. |
I'll be taking a look at bringing these changes into my project shortly. I may modify things to my preferences, however. |
Hey everyone, I just pushed some minor changes to how eslint executable setting work, to pull in some of what I've learned while writing https://github.com/apexskier/nova-typescript. This is working fine for me on beta 17, I'm also hoping we can get it merged soon! |
@apexskier 's version works like a charm. Good work, thanks! |
Hows the progress on this? |
I'm going to be working on this over the weekend before the release. Thank you everyone for your contributions! |
@jsmecham Looking forward to it. Let me know if you need any help. |
@apexskier Any reason the ESLint appears to be incredibly slow? Or is it a local issue for me? Testing your branch. |
None that I know, no |
@apexskier Just to make sure, no as in you don't know what causes the slowdown or no as in you don't experience it as slow? |
Both |
@jsmecham with Nova's official release being out now, you sure you don't want help to get this merged? ✌️ |
Can you please publish a competing extension! Everyone I know can't use Nova because ESLint doesn't work. ESLint should always be installed and run as a project dev dependency. |
To be fair this was intended to be merged already in April this year, I think having this in a competing extension is the way to go by now. |
I've published a fork of this extension to the Nova extension library. I've done a bit of work on top of this PR, including properly disposing of listeners (which may have been contributing to @henrikdahl's slowness issues - there was exponential growth involved on each save) and converting to typescript (which exposed a few bugs). |
@apexskier Great work! Definitely feels faster now. Seems that the config for fix on save is redundant right now, seems to always console the fixing message on save. |
Filed that here - apexskier/nova-eslint#6 |
I started writing a different plugin, then realized there were some improvements I wanted to make to yours. Because I originally wasn't working off your source, there are a lot of changes here. I'd rather not have competing extensions in the Library, though, so I'd like to contribute to yours.
I've also added a few features
And I've made one change that could be controversial
If a global eslint is needed, you can configure its path.
I'm also planning on a few things in the future.