Skip to content

chore(hooks): let stories import webkit assets under camelCase bindings - #1052

Merged
isaque-bock-azion merged 1 commit into
mainfrom
chore/story-asset-imports
Oct 2, 2026
Merged

isaque-bock-azion merged 1 commit into
mainfrom
chore/story-asset-imports

Conversation

@gabriel-lisboa-azion

Copy link
Copy Markdown
Contributor

Summary

  • The story-source binding check expects every @aziontech/webkit/* default import to be a PascalCase component name, so a story could not import an asset file at all (ddos-protection.svg has no valid PascalCase binding). assets/ now joins utils/ and styles/ as non-component subpaths the check skips.

How to test

  1. node .claude/hooks/__tests__/run.mjs → the new "asset import keeps its camelCase binding (exit 0)" case passes; import Chip from '@aziontech/webkit/chips' still blocks.
  2. node .claude/hooks/validate-story-source.mjs --all → every story file complies.

Notes

@isaque-bock-azion
isaque-bock-azion merged commit 8bfbe45 into main Oct 2, 2026
@isaque-bock-azion
isaque-bock-azion deleted the chore/story-asset-imports branch October 2, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants