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: add inputs for specifiable config #9

Merged
merged 3 commits into from
Jan 24, 2023
Merged

feat: add inputs for specifiable config #9

merged 3 commits into from
Jan 24, 2023

Conversation

kachick
Copy link
Contributor

@kachick kachick commented Jan 24, 2023

Motivation

I would like to have another config between editor integration and CI.

Because I'm using https://github.com/dprint/dprint-plugin-exec to hook other formatters in vscode.
However, as far I I know https://github.com/dprint/dprint-vscode cannot specify another config in the same directory structure.
So...

  • I use dprint.json in vscode for now.
  • I would like to use a different config than dprint.json in dprint/check. # This PR
  • Dare I say, I would specify another config as dprint-editor.json in the vscode integration.

I didn't have confidence for...

Added an old version test to the CI to make sure this change does not break current usage.
But 0.14.0 or earlier didn't work with the current dprint.json, even without adding this change.

kachick added a commit to kachick/ruby-ulid that referenced this pull request Jan 24, 2023
kachick added a commit to kachick/ruby-ulid that referenced this pull request Jan 24, 2023
action.yml Outdated Show resolved Hide resolved
action.yml Outdated Show resolved Hide resolved
action.yml Outdated Show resolved Hide resolved
action.yml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
action.yml Show resolved Hide resolved
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @kachick!

@dsherret dsherret merged commit 23e4f05 into dprint:main Jan 24, 2023
@kachick
Copy link
Contributor Author

kachick commented Jan 25, 2023

Thank you for improving a few things that I could not decide which way to go! (if syntax, require bool, input name, copying config file as a fixture, etc) 🙏

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.

2 participants