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

Use an object for sub config #24

Open
dsherret opened this issue Mar 11, 2023 · 0 comments
Open

Use an object for sub config #24

dsherret opened this issue Mar 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@dsherret
Copy link
Member

dsherret commented Mar 11, 2023

This is too verbose:

"exec": {
    "associations": [
      "**/*.{sh,bash}",
      "**/package.json"
    ],
    "prettier-package-json.associations": "**/package.json",
    "prettier-package-json": "node_modules/.bin/prettier-package-json --write",
    "prettier-package-json.stdin": false
}

It should allow for something along these lines now that dprint supports it:

"exec": {
    "associations": [
      "**/*.{sh,bash}",
      "**/package.json"
    ],
    "prettier-package-json": {
      "associations": "**/package.json",
      "command": "node_modules/.bin/prettier-package-json --write",
      "stdin": false
  }
}
@dsherret dsherret added the enhancement New feature or request label Mar 11, 2023
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

No branches or pull requests

1 participant