This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Remove Relative File Paths for style-attributes Imports #6866
Labels
type: enhancement
The issue is a request for an enhancement.
type: refactor
The issue/PR is related to refactoring.
We want to try avoiding relative paths as much as possible, unless the imports specifically belong together.
For the
style-attributes
imports (e.g.,import { useTypographyProps } from '../../hooks/style-attributes';
), there is a@woocommerce/base-hooks
alias that can be used.The hook will need to be moved into the directory that houses our other hooks. With that, we'll want to ensure that this change does not have any unintended impact on any other scripts that rely on the current location (and make the proper adjustments where needed).
See this conversation for context.
The text was updated successfully, but these errors were encountered: