Skip to content

chore: configure prettier & apply formatting #315

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 1 commit into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions .github/ISSUE_TEMPLATE/1-bug.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: "Bug"
description: "Report a bug to help us improve the proxy system."
type: "Bug 🐞"
title: "-- Provide a general summary of the issue --"
labels: ["bug", "needs-triage"]
assignees: "-"
name: 'Bug'
description: 'Report a bug to help us improve the proxy system.'
type: 'Bug 🐞'
title: '-- Provide a general summary of the issue --'
labels: ['bug', 'needs-triage']
assignees: '-'
body:
- type: markdown
attributes:
Expand All @@ -12,24 +12,24 @@ body:
- type: textarea
id: what-happened
attributes:
label: "Describe the issue"
description: "A clear and concise description of what the bug is. If applicable, add screenshots to illustrate the problem."
label: 'Describe the issue'
description: 'A clear and concise description of what the bug is. If applicable, add screenshots to illustrate the problem.'
validations:
required: true

- type: textarea
id: reproduce-steps
attributes:
label: "Steps to Reproduce"
description: "Describe the steps to reproduce the behavior."
label: 'Steps to Reproduce'
description: 'Describe the steps to reproduce the behavior.'
validations:
required: true

- type: dropdown
id: operating-system
attributes:
label: "Operating System"
description: "Select the operating system where the issue occurred."
label: 'Operating System'
description: 'Select the operating system where the issue occurred.'
options:
- Microsoft Windows (Intel)
- Microsoft Windows (Arm)
Expand All @@ -44,26 +44,26 @@ body:
- type: input
id: ide-version
attributes:
label: "IDE and Version"
description: "Enter the IDE name and version."
placeholder: "e.g. VS Code 1.78.0"
label: 'IDE and Version'
description: 'Enter the IDE name and version.'
placeholder: 'e.g. VS Code 1.78.0'
validations:
required: true

- type: input
id: extension-version
attributes:
label: "Extension and Version"
description: "Enter the extension name and version."
placeholder: "e.g. Proxy Extension 0.5.1"
label: 'Extension and Version'
description: 'Enter the extension name and version.'
placeholder: 'e.g. Proxy Extension 0.5.1'
validations:
required: true

- type: dropdown
id: provider
attributes:
label: "Provider"
description: "Select the provider used."
label: 'Provider'
description: 'Select the provider used.'
options:
- Anthropic
- OpenAI
Expand All @@ -77,32 +77,32 @@ body:
- type: input
id: model
attributes:
label: "Model"
description: "Enter the model name used (e.g. GPT-4, Claude 3)."
placeholder: "e.g. GPT-4"
label: 'Model'
description: 'Enter the model name used (e.g. GPT-4, Claude 3).'
placeholder: 'e.g. GPT-4'
validations:
required: true

- type: input
id: codegate-version
attributes:
label: "Codegate version"
description: "Enter the version of CodeGate (e.g. `v0.1.8`, `4845e00c039e`)."
placeholder: "e.g. v0.1.8"
label: 'Codegate version'
description: 'Enter the version of CodeGate (e.g. `v0.1.8`, `4845e00c039e`).'
placeholder: 'e.g. v0.1.8'
validations:
required: true

- type: textarea
id: logs
attributes:
label: "Logs"
description: "If applicable, paste logs or error messages."
placeholder: "Paste log content here."
label: 'Logs'
description: 'If applicable, paste logs or error messages.'
placeholder: 'Paste log content here.'

- type: textarea
id: additional-context
attributes:
label: "Additional Context"
description: "Add any other context or details about the problem here (e.g. link to Discussion, etc.)."
label: 'Additional Context'
description: 'Add any other context or details about the problem here (e.g. link to Discussion, etc.).'
validations:
required: false
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/2-task.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Task
description: Task request
type: "Task ✅"
title: "[Task]: "
type: 'Task ✅'
title: '[Task]: '
labels: []
body:
- type: textarea
Expand All @@ -16,7 +16,7 @@ body:
- type: textarea
id: additional-context
attributes:
label: "Additional Context"
description: "Add any other context or details about the problem here (e.g. link to Discussion, etc.)."
label: 'Additional Context'
description: 'Add any other context or details about the problem here (e.g. link to Discussion, etc.).'
validations:
required: false
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/3-chore.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Chore
description: Chore request
type: "Chore 🧹"
title: "[Chore]: "
labels: ["chore", "needs-triage"]
type: 'Chore 🧹'
title: '[Chore]: '
labels: ['chore', 'needs-triage']
body:
- type: textarea
id: description
Expand All @@ -16,7 +16,7 @@ body:
- type: textarea
id: additional-context
attributes:
label: "Additional Context"
description: "Add any other context or details about the problem here (e.g. link to Discussion, etc.)."
label: 'Additional Context'
description: 'Add any other context or details about the problem here (e.g. link to Discussion, etc.).'
validations:
required: false
2 changes: 1 addition & 1 deletion .github/workflows/_security-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Security Checks
on:
workflow_call:
permissions:
contents: read
contents: read
jobs:
trivy:
name: Trivy
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_static-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Static Checks
on:
workflow_call:
permissions:
contents: read
contents: read
jobs:
lint:
name: ESLint Check
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
name: Build App Check
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--max_old_space_size=4096"
NODE_OPTIONS: '--max_old_space_size=4096'
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
Expand Down
15 changes: 15 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"semi": false,
"trailingComma": "es5",
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"plugins": [
"prettier-plugin-tailwindcss",
"prettier-plugin-classnames",
"prettier-plugin-merge"
],
"tailwindFunctions": ["tv", "twMerge", "composeTailwindRenderProps"],
"customFunctions": ["tv", "twMerge", "composeTailwindRenderProps"],
"tailwindConfig": "./tailwind.config.ts"
}
Loading
Loading