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
New: Implement processorOptions #12068
Conversation
840e2f0
to
1f12c2d
Compare
I'm marking this as ready for review. I've added some minimal docs for this. I'm not sure what else is wanted here. I also have some questions about what sorts of tests should be added and where they should live. Should they focus on config extraction? Something else? Thanks! |
About tests, we should add the tests of user-facing behaviors. I think there are two.
And, sorry that I had overlooked while writing RFC, So...
|
Should |
I think |
Hi. The implementation looks good to me. Would you add some tests I mentioned in #12068 (comment) ? If you need helps, let tell me! |
Hi, sorry about the big delay on this! I'll try to add some tests within the next day and will let you know if I get confused about something. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a "request changes" review just to avoid accidental merge. @Conduitry Please feel free to ping me when you've added some tests and feel this is ready for review. Thanks!
@Conduitry Friendly ping! We'd love to merge this. |
Hey! Sorry again about the even bigger delay. I'm taking a look at this again. I'll let you know if I'd like some more guidance on specifically what sort of tests I should be writing for this. I was also looking into why the tests are currently failing but it looks like that's just #12662. |
@Conduitry are you still planning on working on this? |
@Conduitry I'm going to close this so that others feel free to contribute. Please don't hesitate to reopen if/when you have the time! |
@kaicataldo so just to confirm, the status for this one is that the RFC remains approved and the team will accept a new implementation PR from anybody at any time? (I have a use-case for this within |
@JamesHenry That's right! Here's the relevant RFC: https://github.com/eslint/rfcs/tree/master/designs/2019-processor-shared-settings |
Whoops, meant to just comment, not reopen 😅 |
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[X] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
This implements
processorOptions
, as described in this RFC.This isn't ready yet, and I'm marking this PR as a draft. This is working for me locally, but I'd like to get more eyes on this now that the RFC has been merged.
TODO:
Is there anything you'd like reviewers to focus on?
Tests, mostly. I'd appreciate some pointers about where tests should go and what I should look at.
I'd also like confirmation that I've updated the type comments appropriately.