When checkExportFrom
is activated in unicorn/import-style
you get the following error:
console:
TypeError: Missing required argument: node.
Occurred while linting C:\workspace\herold-solutions\libs\ts\helper\src\lib\enum\http-method.ts:1
Rule: "unicorn/import-style"
at SourceCode.getScope (C:\workspace\herold-solutions\node_modules\eslint\lib\source-code\source-code.js:617:19)
at ExportNamedDeclaration (C:\workspace\herold-solutions\node_modules\eslint-plugin-unicorn\rules\import-style.js:265:68)
at C:\workspace\herold-solutions\node_modules\eslint-plugin-unicorn\rules\utils\rule.js:39:18
at ruleErrorHandler (C:\workspace\herold-solutions\node_modules\eslint\lib\linter\linter.js:1050:28)
at C:\workspace\herold-solutions\node_modules\eslint\lib\linter\safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (C:\workspace\herold-solutions\node_modules\eslint\lib\linter\safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (C:\workspace\herold-solutions\node_modules\eslint\lib\linter\node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (C:\workspace\herold-solutions\node_modules\eslint\lib\linter\node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (C:\workspace\herold-solutions\node_modules\eslint\lib\linter\node-event-generator.js:340:14)
the linted file is the following:
export enum HttpMethod {
Get = "get",
Post = "post",
Put = "put",
Patch = "patch",
Delete = "delete",
}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too