Skip to content

Commit

Permalink
updated code formatting to adhere to new style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-kural committed Jul 13, 2024
1 parent 557a0eb commit 9d4c3b0
Show file tree
Hide file tree
Showing 45 changed files with 6,564 additions and 2,033 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Bug report
about: Create a bug report to help us improve
title: ""
title: ''
labels: bug
---

Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ body:
required: true
- type: textarea
attributes:
label: "Issue with current documentation:"
label: 'Issue with current documentation:'
description: >
Please make sure to leave a reference to the document/code you're
referring to. Feel free to include names of classes, functions, methods
or concepts you'd like to see documented more.
- type: textarea
attributes:
label: "Idea or request for content:"
label: 'Idea or request for content:'
description: >
Please describe as clearly as possible what topics you think are missing
from the current documentation.
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: "Feature Request"
about: "Suggest a new feature or enhancement for QvikChat"
title: "[Feature Request] - "
labels: "enhancement"
assignees: ""
name: 'Feature Request'
about: 'Suggest a new feature or enhancement for QvikChat'
title: '[Feature Request] - '
labels: 'enhancement'
assignees: ''
---

### Checklist
Expand Down
80 changes: 40 additions & 40 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,77 +3,77 @@

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "daily"
interval: 'daily'
commit-message:
prefix: "Dependency Updates"
prefix: 'Dependency Updates'
groups:
# group dev dependencies together in a single pull request
dev-dependencies:
applies-to: version-updates
patterns:
- "@eslint*"
- "@swc*"
- "@types*"
- "eslint*"
- "jest"
- "prettier"
- "ts-*"
- "typescript*"
- '@eslint*'
- '@swc*'
- '@types*'
- 'eslint*'
- 'jest'
- 'prettier'
- 'ts-*'
- 'typescript*'
dev-dependencies-security-updates:
applies-to: security-updates
patterns:
- "@eslint*"
- "@swc*"
- "@types*"
- "eslint*"
- "jest"
- "prettier"
- "ts-*"
- "typescript*"
- '@eslint*'
- '@swc*'
- '@types*'
- 'eslint*'
- 'jest'
- 'prettier'
- 'ts-*'
- 'typescript*'
# group Genkit related updates in a single pull request
genkit:
applies-to: version-updates
patterns:
- "@genkit*"
- "genkit*"
- '@genkit*'
- 'genkit*'
genkit-security-updates:
applies-to: security-updates
patterns:
- "@genkit*"
- "genkit*"
- '@genkit*'
- 'genkit*'
# group langchain related updates in a single pull request
langchain:
applies-to: version-updates
patterns:
- "@langchain*"
- "langchain"
- "d3-dsv" # used for data loading by langchain for CSV
- '@langchain*'
- 'langchain'
- 'd3-dsv' # used for data loading by langchain for CSV
langchain-security-updates:
applies-to: security-updates
patterns:
- "@langchain*"
- "langchain"
- "d3-dsv" # used for data loading by langchain for CSV
- '@langchain*'
- 'langchain'
- 'd3-dsv' # used for data loading by langchain for CSV
# group rest of the dependencies together
dependencies:
applies-to: version-updates
patterns:
- "dotenv"
- "firebase-admin"
- "zod"
- 'dotenv'
- 'firebase-admin'
- 'zod'
dependencies-security-updates:
applies-to: security-updates
patterns:
- "dotenv"
- "firebase-admin"
- "zod"
- 'dotenv'
- 'firebase-admin'
- 'zod'

- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "daily"
interval: 'daily'
commit-message:
prefix: "GitHub Actions Updates"
prefix: 'GitHub Actions Updates'
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Pre-deploy Workflow
on:
push:
branches: ["main"]
branches: ['main']
pull_request:
branches: ["main"]
branches: ['main']

jobs:
build:
Expand All @@ -21,7 +21,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache: 'pnpm'
- name: Clean Installation of Dependencies
run: pnpm install --frozen-lockfile
- name: ESLint
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: ["main", "next-release"]
branches: ['main', 'next-release']
pull_request:
branches: ["main", "next-release"]
branches: ['main', 'next-release']
schedule:
- cron: "44 1 * * 1"
- cron: '44 1 * * 1'

jobs:
analyze:
Expand Down Expand Up @@ -90,4 +90,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
category: '/language:${{matrix.language}}'
8 changes: 4 additions & 4 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: "Dependency review"
name: 'Dependency review'
on:
pull_request:
branches: ["main"]
branches: ['main']

# If using a dependency submission action in this workflow this permission will need to be set to:
#
Expand All @@ -27,9 +27,9 @@ jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
- name: 'Checkout repository'
uses: actions/checkout@v4
- name: "Dependency Review"
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
# Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options.
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
- name: Install Node.js and Setup NPMRC
uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: pnpm

- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ Before you can deploy your chat endpoints, you need to setup Firebase Genkit, ei
Create a `index.ts` (or `index.js`) file and add the following code:

```typescript copy
import { runServer, setupGenkit } from "@oconva/qvikchat/genkit";
import { defineChatEndpoint } from "@oconva/qvikchat/endpoints";
import {runServer, setupGenkit} from '@oconva/qvikchat/genkit';
import {defineChatEndpoint} from '@oconva/qvikchat/endpoints';

// Setup Genkit
setupGenkit();

// Open-ended chat
defineChatEndpoint({
endpoint: "chat",
endpoint: 'chat',
});

// Run server
Expand Down
8 changes: 4 additions & 4 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import prettierConfig from "eslint-config-prettier";
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import prettierConfig from 'eslint-config-prettier';

export default tseslint.config(
{
ignores: ["lib"],
ignores: ['lib'],
},
eslint.configs.recommended,
...tseslint.configs.strict,
Expand Down
8 changes: 4 additions & 4 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* https://jestjs.io/docs/configuration
*/

import type { Config } from "jest";
import type {Config} from 'jest';

const config: Config = {
// All imported modules in your tests should be mocked automatically
Expand Down Expand Up @@ -33,7 +33,7 @@ const config: Config = {
// ],

// Indicates which provider should be used to instrument code for coverage
coverageProvider: "v8",
coverageProvider: 'v8',

// A list of reporter names that Jest uses when writing coverage reports
// coverageReporters: [
Expand Down Expand Up @@ -155,7 +155,7 @@ const config: Config = {
// testLocationInResults: false,

// The glob patterns Jest uses to detect test files
testMatch: ["**/src/tests/**/*.[jt]s?(x)"],
testMatch: ['**/src/tests/**/*.[jt]s?(x)'],

// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
// testPathIgnorePatterns: [
Expand All @@ -173,7 +173,7 @@ const config: Config = {

// A map from regular expressions to paths to transformers
transform: {
"^.+\\.ts?$": "ts-jest",
'^.+\\.ts?$': 'ts-jest',
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
Expand Down
Loading

0 comments on commit 9d4c3b0

Please sign in to comment.