Skip to content
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 support for asynchronous processors #2502

Closed
ismay opened this issue Apr 14, 2017 · 4 comments
Closed

Add support for asynchronous processors #2502

ismay opened this issue Apr 14, 2017 · 4 comments
Labels
status: ready to implement is ready to be worked on by someone type: enhancement a new feature that isn't related to rules

Comments

@ismay
Copy link
Contributor

ismay commented Apr 14, 2017

I'm in the middle of writing a stylelint-processor for glamorous, but it needs postcss-js to parse the css-in-js, which works async. So I can't return a result synchronously. The docs only show a sync example, so my question is if there is a way to define an async processor.

@davidtheclark
Copy link
Contributor

@ismay: Probably not. Didn't think of that. We can build it in as a new feature — it's a good idea.

@jeddy3 jeddy3 changed the title Does a processor have to be synchronous? Allow asynchronous processors Apr 15, 2017
@jeddy3 jeddy3 added status: ready to implement is ready to be worked on by someone type: enhancement a new feature that isn't related to rules labels Apr 15, 2017
@jeddy3
Copy link
Member

jeddy3 commented Apr 15, 2017

@ismay Feel free to help contribute this feature. Support for async plugins was recently added, and might be useful as a reference.

@ismay
Copy link
Contributor Author

ismay commented Apr 15, 2017

Cool, I'll look into it if I have the time!

@jeddy3 jeddy3 changed the title Allow asynchronous processors Add support for asynchronous processors Sep 10, 2017
@jeddy3
Copy link
Member

jeddy3 commented Jan 17, 2022

Closing as processors are discouraged in favour of custom syntaxes.

@jeddy3 jeddy3 closed this as completed Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready to implement is ready to be worked on by someone type: enhancement a new feature that isn't related to rules
Development

No branches or pull requests

3 participants