Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to target only jsx #6

Merged
merged 1 commit into from May 28, 2022
Merged

option to target only jsx #6

merged 1 commit into from May 28, 2022

Conversation

thetarnav
Copy link
Member

this changes the file naming convention to be able to specifically target only jsx or tsx files. To not show jsx snippets in ts/js files.
Examples:

snippets/
  # snippets for "Category Name" category only for .ts and tsx files
  Category-Name.ts.json
  # "Context" snippets only for .jsx
  context.jsx.json
  # "Component" snippets only for .tsx
  component.tsx.json
  # "Component" snippets for both .jsx and .tsx
  component.jsx.tsx.json
  # universal snippets for all languages (js, jsx, ts, tsx)
  effect.json

@thetarnav thetarnav merged commit 812672b into main May 28, 2022
@thetarnav thetarnav deleted the change-file-naming branch May 28, 2022 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant