-
Notifications
You must be signed in to change notification settings - Fork 978
chore: Improve project-wide prettier formatting and ignored files #5505
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
42e51c8
chore: Improve project-wide prettier formatting and ignored files
mafredri e3a2751
chore: `Run make fmt/prettier`
mafredri 292382f
Fix gitignore for `.vscode` folder so that ! works
mafredri 09214c5
Add comment in `.prettierrc.yaml` to explain editorconfig
mafredri 01f4d78
Remove scripts/apidocgen/markdown-template/README.md
mafredri fe5fd6a
Fix Makefile comments
mafredri d27ada7
Use a more standard generated comment format
mafredri 9cf9a44
Use `yq` for processing prettierrc, update lib.sh dependency check
mafredri f612e75
Add `yq` to Dockerfile and Nix
mafredri 2ab3e5e
Merge branch 'main' into mafredri/chore-prettier-formatting
mafredri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
// For format details, see https://aka.ms/devcontainer.json | ||
{ | ||
"name": "Development environments on your infrastructure", | ||
"name": "Development environments on your infrastructure", | ||
|
||
// Sets the run context to one level up instead of the .devcontainer folder. | ||
"context": ".", | ||
// Sets the run context to one level up instead of the .devcontainer folder. | ||
"context": ".", | ||
|
||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | ||
"dockerFile": "Dockerfile", | ||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | ||
"dockerFile": "Dockerfile", | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
"postStartCommand": "dockerd", | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// privileged is required by GitHub codespaces - https://github.com/microsoft/vscode-dev-containers/issues/727 | ||
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined", "--privileged", "--init" ] | ||
"postStartCommand": "dockerd", | ||
|
||
// privileged is required by GitHub codespaces - https://github.com/microsoft/vscode-dev-containers/issues/727 | ||
"runArgs": [ | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt", | ||
"seccomp=unconfined", | ||
"--privileged", | ||
"--init" | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
{ | ||
"ignorePatterns": [ | ||
{ | ||
"pattern": ":\/\/localhost" | ||
}, | ||
{ | ||
"pattern": ":\/\/.*.?example\\.com" | ||
}, | ||
{ | ||
"pattern": "developer.github.com" | ||
}, | ||
{ | ||
"pattern": "docs.github.com" | ||
}, | ||
{ | ||
"pattern": "support.google.com" | ||
}, | ||
{ | ||
"pattern": "tailscale.com" | ||
} | ||
] | ||
"ignorePatterns": [ | ||
{ | ||
"pattern": "://localhost" | ||
}, | ||
{ | ||
"pattern": "://.*.?example\\.com" | ||
}, | ||
{ | ||
"pattern": "developer.github.com" | ||
}, | ||
{ | ||
"pattern": "docs.github.com" | ||
}, | ||
{ | ||
"pattern": "support.google.com" | ||
}, | ||
{ | ||
"pattern": "tailscale.com" | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# | ||
# Generated from [.gitignore .prettierignore.include] by Makefile; DO NOT EDIT. | ||
# | ||
# .gitignore: | ||
# Common ignore patterns, these rules applies in both root and subdirectories. | ||
.DS_Store | ||
.eslintcache | ||
.gitpod.yml | ||
.idea | ||
**/*.swp | ||
gotests.coverage | ||
gotests.xml | ||
gotestsum.json | ||
node_modules/ | ||
vendor/ | ||
yarn-error.log | ||
|
||
# VSCode settings. | ||
.vscode/ | ||
# Allow VSCode recommendations and default settings in project root. | ||
!/.vscode/extensions.json | ||
!/.vscode/settings.json | ||
|
||
# Front-end ignore patterns. | ||
.next/ | ||
site/**/*.typegen.ts | ||
site/build-storybook.log | ||
site/coverage/ | ||
site/storybook-static/ | ||
site/test-results/ | ||
|
||
# Make target for updating golden files. | ||
cli/testdata/.gen-golden | ||
|
||
# Build | ||
/build/ | ||
/dist/ | ||
site/out/ | ||
|
||
*.tfstate | ||
*.tfstate.backup | ||
*.tfplan | ||
*.lock.hcl | ||
.terraform/ | ||
|
||
/.coderv2/* | ||
**/__debug_bin | ||
|
||
# direnv | ||
.envrc | ||
# .prettierignore.include: | ||
# Helm templates contain variables that are invalid YAML and can't be formatted | ||
# by Prettier. | ||
helm/templates/*.yaml | ||
|
||
# Terraform state files used in tests, these are automatically generated. | ||
# Example: provisioner/terraform/testdata/instance-id/instance-id.tfstate.json | ||
**/testdata/**/*.tf*.json | ||
|
||
# Testdata shouldn't be formatted. | ||
scripts/apitypings/testdata/**/*.ts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Helm templates contain variables that are invalid YAML and can't be formatted | ||
# by Prettier. | ||
helm/templates/*.yaml | ||
|
||
# Terraform state files used in tests, these are automatically generated. | ||
# Example: provisioner/terraform/testdata/instance-id/instance-id.tfstate.json | ||
**/testdata/**/*.tf*.json | ||
|
||
# Testdata shouldn't be formatted. | ||
scripts/apitypings/testdata/**/*.ts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
printWidth: 80 | ||
semi: false | ||
trailingComma: all | ||
overrides: | ||
- files: | ||
- README.md | ||
options: | ||
proseWrap: preserve | ||
- files: | ||
- "site/**/*.yaml" | ||
- "site/**/*.yml" | ||
options: | ||
proseWrap: always |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.