-
Notifications
You must be signed in to change notification settings - Fork 46
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
Watch Mode Plugin: jest-runner-eslint/watch #43
Comments
I think it makes sense here. |
Yes, this sounds really interesting! Currently, I don't think that there is a good way of sending that information from the plugin to the runner. It would be awesome find a way that could enable these type of features! |
I think I have some vague idea, I'll try to hack something today |
I think having it in the same repo would make a lot of sense, given that it is a watch plugin really specific to this runner. Here is a PoC:There are still a couple of hiccups with the implementation, but I first wanted to be on the same page from a product perspective. It is still pretty rough but I would love to get your thoughts 🙃@ljharb, @azz
@SimenB any thoughts on this? |
This is insanely awesome! I think it'd be cool to attach it to
😍 |
Nice! I can't think of any other ESLint flags that I would want to change during a run. |
What about |
I’d also see the value in being able to enable/disable/reconfigure rules during the run. |
As in switching from all to just
That could be tricky if you want to persist back to disk. Would need to locate config file and patch it. Easy for JSON, YAML and standard |
Or from .js to Why would you need to patch the config file? eslint on the CLI supports |
Oh I see what you mean - ephemeral overrides, like if you want to ignore |
That looks great for rules! what about other things like parserOptions, env, globals, "settings", things like that? |
I think messing with rules makes the most sense as a first iteration - parser and plugin stuff is more of a permanent change. Fine to revisit, of course, but a first iteration doesn't need it |
Combining jestjs/jest#5212 and the new Jest Watch Plugins API, it would be really cool to have:
Which, when an ESLint error is reported, exposes an option in watch mode:
I think it makes sense for it to live in this repo, but it could equally be a standalone repo.
I'd be happy to work on a PR if it is desired here 😄
Related: #10
The text was updated successfully, but these errors were encountered: