有没有办法禁止eslint中的批量导出?我想禁止这些出口:
export * from './module-name';找不到合适的eslint规则。
发布于 2020-05-19 14:33:21
找到解决方案了!我们需要使用以下eslint规则:
{
"rules": {
"no-restricted-syntax": ["error", "ExportAllDeclaration"]
}
}更多详细信息,请访问eslint docs。可以在here中找到no-restricted-syntax规则的所有可用值。
https://stackoverflow.com/questions/61360343
复制相似问题