diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 61084954..aa97b69b 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1 @@ -github: ['andykenward'] +github: ["andykenward"] diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4c382e2c..2ed5dd30 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,8 +7,8 @@ updates: schedule: interval: weekly day: sunday - - package-ecosystem: 'devcontainers' - directory: '/' + - package-ecosystem: "devcontainers" + directory: "/" schedule: interval: weekly day: sunday @@ -25,41 +25,41 @@ updates: groups: graphql: patterns: - - '@graphql-codegen/*' - - '@graphql-typed-document-node/*' - - 'graphql' - - 'graphql-tag' + - "@graphql-codegen/*" + - "@graphql-typed-document-node/*" + - "graphql" + - "graphql-tag" vitest: patterns: - - '@vitest*' - - 'vitest' - - 'vite' + - "@vitest*" + - "vitest" + - "vite" eslint: patterns: - - '@eslint/*' - - '@types/eslint' - - '@typescript-eslint/*' - - 'eslint' - - 'eslint-config-*' - - 'eslint-plugin-*' - - 'globals' - - 'typescript-eslint' + - "@eslint/*" + - "@types/eslint" + - "@typescript-eslint/*" + - "eslint" + - "eslint-config-*" + - "eslint-plugin-*" + - "globals" + - "typescript-eslint" exclude-patterns: - - 'eslint-config-prettier' + - "eslint-config-prettier" prettier: patterns: - - 'prettier' - - 'eslint-config-prettier' - - '@ianvs/prettier-plugin-sort-imports' - - 'prettier-plugin-packagejson' + - "prettier" + - "eslint-config-prettier" + - "@ianvs/prettier-plugin-sort-imports" + - "prettier-plugin-packagejson" octokit: patterns: - - '@octokit/*' - - '@octokit-next/*' + - "@octokit/*" + - "@octokit-next/*" cloudflare: patterns: - - '@cloudflare/*' - - 'wrangler' + - "@cloudflare/*" + - "wrangler" changesets: patterns: - - '@changesets/*' + - "@changesets/*" diff --git a/.github/workflow-templates/delete.yml b/.github/workflow-templates/delete.yml index b9be1d77..9d58abfb 100644 --- a/.github/workflow-templates/delete.yml +++ b/.github/workflow-templates/delete.yml @@ -18,9 +18,9 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - name: 'Checkout Github Action' + - name: "Checkout Github Action" uses: actions/checkout@v4 - - name: 'Deploy deletion from Cloudflare Pages' + - name: "Deploy deletion from Cloudflare Pages" uses: andykenward/github-actions-cloudflare-pages/delete@v2.3.2 with: cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }} diff --git a/.github/workflow-templates/deploy.yml b/.github/workflow-templates/deploy.yml index 55463459..0f38e9cc 100644 --- a/.github/workflow-templates/deploy.yml +++ b/.github/workflow-templates/deploy.yml @@ -19,9 +19,9 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - name: 'Checkout Github Action' + - name: "Checkout Github Action" uses: actions/checkout@v4 - - name: 'Deploy to Cloudflare Pages' + - name: "Deploy to Cloudflare Pages" uses: andykenward/github-actions-cloudflare-pages@v3.0.0 with: cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }} diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 46c07df1..20d4fc05 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -14,12 +14,12 @@ on: branches: - main paths-ignore: - - '**.md' + - "**.md" pull_request: branches: - main paths-ignore: - - '**.md' + - "**.md" workflow_dispatch: concurrency: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index bb7ab39e..5bd2fd24 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,25 +1,25 @@ -name: 'CodeQL' +name: "CodeQL" on: push: - branches: ['main'] + branches: ["main"] pull_request: - branches: ['main'] + branches: ["main"] schedule: - - cron: '34 6 * * 2' + - cron: "34 6 * * 2" concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: analyze: name: Analyze - runs-on: 'ubuntu-latest' + runs-on: "ubuntu-latest" timeout-minutes: 360 permissions: security-events: write strategy: fail-fast: false matrix: - language: ['javascript-typescript', 'actions'] + language: ["javascript-typescript", "actions"] steps: - name: Checkout repository uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 #v6.0.0 @@ -41,4 +41,4 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4 with: - category: '/language:${{matrix.language}}' + category: "/language:${{matrix.language}}" diff --git a/.github/workflows/deploy-delete.yml b/.github/workflows/deploy-delete.yml index d9b4bed6..14a068c1 100644 --- a/.github/workflows/deploy-delete.yml +++ b/.github/workflows/deploy-delete.yml @@ -23,7 +23,7 @@ jobs: timeout-minutes: 5 steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 #v6.0.0 - - id: 'cloudflare-pages' + - id: "cloudflare-pages" uses: ./delete with: cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 32169837..b2b9b3d3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,7 +11,7 @@ on: workflow_dispatch: inputs: environment: - description: 'Environment to run actiomn against' + description: "Environment to run actiomn against" type: environment required: false @@ -29,7 +29,7 @@ jobs: timeout-minutes: 5 steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 #v6.0.0 - - id: 'cloudflare-pages' + - id: "cloudflare-pages" uses: ./ with: cloudflare-api-token: ${{secrets.CLOUDFLARE_API_TOKEN}} @@ -39,7 +39,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} github-environment: ${{ inputs.environment || 'preview' }} working-directory: example - - id: 'cloudflare-pages-delete' + - id: "cloudflare-pages-delete" uses: ./delete # if main branch if: github.ref == 'refs/heads/main' diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index a7f54628..543ca499 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -3,7 +3,7 @@ name: update on: schedule: - - cron: '0 0 * * *' + - cron: "0 0 * * *" workflow_dispatch: concurrency: @@ -33,14 +33,14 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create Pull Request id: cpr - uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e #v7.0.8 + uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 #v7.0.9 with: token: ${{ secrets.GITHUB_TOKEN }} - commit-message: 'chore: update payloads' + commit-message: "chore: update payloads" sign-commits: true - branch: 'chore/update-payloads' + branch: "chore/update-payloads" delete-branch: true - title: 'chore: update payloads' + title: "chore: update payloads" body: | This is an automated PR to update payloads. types: @@ -64,13 +64,13 @@ jobs: run: pnpm run tsc:types - name: Create Pull Request id: cpr - uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e #v7.0.8 + uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 #v7.0.9 with: token: ${{ secrets.GITHUB_TOKEN }} - commit-message: 'chore: update types' + commit-message: "chore: update types" sign-commits: true - branch: 'chore/types' + branch: "chore/types" delete-branch: true - title: 'chore: update types' + title: "chore: update types" body: | This is an automated PR to update generated types. diff --git a/prettier.config.cjs b/prettier.config.cjs index 8ce7aeae..c5bc3456 100644 --- a/prettier.config.cjs +++ b/prettier.config.cjs @@ -43,6 +43,13 @@ const config = { options: { parser: 'typescript' } + }, + { + files: ['.github/**/*.{yml,yaml}'], + options: { + parser: 'yaml', + singleQuote: false + } } ] }