Skip to content

Commit

Permalink
chore: streamline package exports
Browse files Browse the repository at this point in the history
  • Loading branch information
igordanchenko committed May 23, 2024
1 parent 37f8f15 commit 0cf9e1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"rules": {
"react/prop-types": "off",
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off"
"react/jsx-props-no-spreading": "off",
"no-restricted-exports": ["error", { "restrictedNamedExports": ["then"] }]
}
}
7 changes: 2 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import PhotoAlbum from "./PhotoAlbum";

export * from "./types";
export { default, default as PhotoAlbum } from "./PhotoAlbum";

export { PhotoAlbum };
export default PhotoAlbum;

// experimental exports (no semver coverage)
export { default as unstable_computeRowsLayout } from "./layouts/rows";
export { default as unstable_computeColumnsLayout } from "./layouts/columns";
export { default as unstable_computeMasonryLayout } from "./layouts/masonry";

0 comments on commit 0cf9e1e

Please sign in to comment.