@W-18909894 - add cursor rules for creating components#2702
Merged
snilakandan13 merged 15 commits intofeature/generated-project-cursor-rulesfrom Jul 14, 2025
Merged
Conversation
Collaborator
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
…/SalesforceCommerceCloud/pwa-kit into t/commerce/W-18909894/addCursorRules
yhsieh1
reviewed
Jul 2, 2025
.cursor/rules/product-component-requirements-mdc/product-detail-component.mdc
Outdated
Show resolved
Hide resolved
…pwa-kit into t/commerce/W-18909894/addCursorRules
yhsieh1
reviewed
Jul 11, 2025
| ## General Rules | ||
| Create components at: `**app/components/[component-name]/index.jsx` | ||
|
|
||
| ## Template |
Contributor
There was a problem hiding this comment.
Do we need to provide this template? Not sure if this will help Cursor to create a component. We only focus on java script project, what if the project is created in TypeScript.
Contributor
Author
There was a problem hiding this comment.
This is very generic, so true, I can remove it
yhsieh1
reviewed
Jul 11, 2025
yhsieh1
reviewed
Jul 11, 2025
yhsieh1
approved these changes
Jul 14, 2025
ff0cc39
into
feature/generated-project-cursor-rules
36 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@W-18909894
Added cursor rules for handling the component generation through cursor
These cursor go over the good practices and bad practices while creating components, making the LLM more aware of the PWA kit components and its structure
Description
Types of Changes
Changes
How to Test-Drive This PR
Checklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization