已知限制
此规则不检查再导出声明中源模块的内容。特别是,如果您从另一个模块的导出中重新导出所有内容,则该导出可能包含受限名称。此规则无法检测此类情况。
This rule doesn't inspect the content of source modules in re-export declarations. In particular, if you are re-exporting everything from another module's export, that export may include a restricted name. This rule cannot detect such cases.
//----- some_module.js -----
export function foo() {}
//----- my_module.js -----
/*eslint no-restricted-exports: ["error", { "restrictedNamedExports": ["foo"] }]*/
export * from "some_module"; // allowed, although this declaration exports "foo" from my_module