Initial import with skill sheet working
This commit is contained in:
11
node_modules/eslint-plugin-jsdoc/dist/import-worker.mjs
generated
vendored
Normal file
11
node_modules/eslint-plugin-jsdoc/dist/import-worker.mjs
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
import { runAsWorker } from 'synckit'
|
||||
|
||||
runAsWorker(async (imprt) => {
|
||||
const { parseImports } = await import('parse-imports');
|
||||
try {
|
||||
// ESLint doesn't support async rules
|
||||
return [...await parseImports(imprt)];
|
||||
} catch (err) {
|
||||
return false;
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user