Support async processing
See original GitHub issueSubject of the issue
eslint-mdx
uses .processSync instead of .process, causing async plugins to fail.
Error: `processSync` finished async. Use `process` instead
Occurred while linting /Users/tilde/Code/oss/mdx/packages/remark-mdx/readme.md:1
at assertDone (/Users/tilde/Code/oss/mdx/node_modules/unified/index.js:469:11)
at Function.processSync (/Users/tilde/Code/oss/mdx/node_modules/unified/index.js:401:5)
at Program (/Users/tilde/Code/oss/mdx/node_modules/eslint-plugin-mdx/lib/cjs.js:361:44)
at /Users/tilde/Code/oss/mdx/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/Users/tilde/Code/oss/mdx/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/Users/tilde/Code/oss/mdx/node_modules/eslint/lib/linter/node-event-generator.js:254:26)
at NodeEventGenerator.applySelectors (/Users/tilde/Code/oss/mdx/node_modules/eslint/lib/linter/node-event-generator.js:283:22)
at NodeEventGenerator.enterNode (/Users/tilde/Code/oss/mdx/node_modules/eslint/lib/linter/node-event-generator.js:297:14)
at CodePathAnalyzer.enterNode (/Users/tilde/Code/oss/mdx/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:634:23)
Your environment
- OS: osx latest
- Packages:
- Env: node 13.10, 6.14, yarn 1.22
Steps to reproduce
yarn format
in mdx-js/mdx
(with changes on a branch)
Expected behaviour
Support async plugins: https://github.com/mdx-js/eslint-mdx/blob/96fc83affd7f63d52d6b7fce6c15816e9a034a6b/packages/eslint-plugin-mdx/src/rules/remark.ts#L40
Actual behaviour
Crash.
P.S. aside: you may be interested in vfile-to-eslint
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Asynchronous processing - Akamai TechDocs
The first change you'll see when using "async" is that async ensures that a function always returns a promise. Instead of having to...
Read more >Introduction to Asynchronous Processing - Hookdeck
Asynchronous processing allows you to achieve parallel execution of client requests, while synchronous processing requests can only be processed ...
Read more >17.12 Asynchronous Processing - Java Platform, Enterprise ...
The javax.servlet.AsyncContext class provides the functionality that you need to perform asynchronous processing inside service methods. To obtain an instance ...
Read more >Asynchronous Request-Reply pattern - Azure - Microsoft Learn
Decouple backend processing from a frontend host, where backend processing needs to be asynchronous, but the frontend still needs a clear response.
Read more >How To Do @Async in Spring - Baeldung
1. Overview · 2. Enable Async Support · 3. The @Async Annotation · 4. The Executor · 5. Exception Handling · 6. Conclusion....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cannot do much before ESLint changes.
v1.13.0 has been released!