brigadecore / brigade

Event-driven scripting for Kubernetes
https://brigade.sh/
Apache License 2.0
2.4k stars 247 forks source link

use prettier to enforce TS/JS styles #1877

Closed krancour closed 2 years ago

krancour commented 2 years ago

Fixes #1862

This PR sets up prettier for the three TS-based components, similar to how we have already done for the SDK for JS/TS and the Dashboard.

The difference here is that there's separate prettier config for each of the three components in question, because the tool seems to expect that its config and package.json live in the same dir. Event if you use the --config to point it elsewhere for config, it ends up looking for your package.json there also. 🤷‍♂️

The PR is decomposed into separate commits for:

netlify[bot] commented 2 years ago

✅ Deploy Preview for brigade-docs ready!

🔨 Explore the source changes: 422f4430ab75721cd70928493a096a82717d3832

🔍 Inspect the deploy log: https://app.netlify.com/sites/brigade-docs/deploys/6238c55715645a0009e99c3c

😎 Browse the preview: https://deploy-preview-1877--brigade-docs.netlify.app

krancour commented 2 years ago

/brig run