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

feat(config): add support for fallback formatters #446

Merged
merged 1 commit into from
Sep 1, 2024

Conversation

hougesen
Copy link
Owner

@hougesen hougesen commented Sep 1, 2024

This pr adds support for global formatters that are ran on all snippets, and fallback formatters which are only ran on files with no existing formatter (or global formatters).

* is used to signify global formatters.

  • Fallback formatter
{
  "languages": {
    "*": "typos"
  }
}

_ is used for fallback formatters.

{
  "languages": {
    "_": "prettier"
  }
}

@hougesen hougesen merged commit 092cc56 into main Sep 1, 2024
6 checks passed
@hougesen hougesen deleted the feat/fallback-formatters branch September 1, 2024 11:48
@hougesen hougesen self-assigned this Sep 1, 2024
@hougesen hougesen added the enhancement New feature or request label Sep 1, 2024
Copy link
Contributor

@ccoVeille ccoVeille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea

@hougesen
Copy link
Owner Author

hougesen commented Sep 1, 2024

Glad you like it 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants