pasika 0.10.6 → 0.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2129,6 +2129,13 @@ var supportFolderShapeRule = {
|
|
|
2129
2129
|
return;
|
|
2130
2130
|
}
|
|
2131
2131
|
if (hasDirectExport) return;
|
|
2132
|
+
if (siblingModules.length === 1 && hasAnyReExport) {
|
|
2133
|
+
context.report({
|
|
2134
|
+
node,
|
|
2135
|
+
message: `${folder}/index.ts re-exports exactly one sibling module; define that module's exports directly in index.ts instead. See ${guide}`
|
|
2136
|
+
});
|
|
2137
|
+
return;
|
|
2138
|
+
}
|
|
2132
2139
|
const missing = siblingModules.filter((entry) => {
|
|
2133
2140
|
const stem = entry.replace(/\.(?:[cm]?tsx?|jsx?)$/, "");
|
|
2134
2141
|
return !exportedFiles.has(stem);
|