From a78454eed0b9ca0d2f5aed81073434cdc2c97705 Mon Sep 17 00:00:00 2001 From: Jordan Drake Date: Wed, 23 Oct 2024 15:48:56 +0100 Subject: [PATCH] Auto run lint --- .github/workflows/lint.yaml | 14 ++++++++++++-- chat.mdx | 3 +++ package.json | 4 ++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 719bc8b..ad5f455 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -8,6 +8,10 @@ on: branches: - main +permissions: + checks: write + contents: write + jobs: lint: name: Lint @@ -44,5 +48,11 @@ jobs: - name: Install deps run: pnpm i - - name: Lint - run: pnpm run lint + - name: Lint links + run: pnpm run lint:links + + - name: Lint format + uses: wearerequired/lint-action@v2 + with: + prettier: true + auto_fix: true diff --git a/chat.mdx b/chat.mdx index 8380ad2..cf4fb59 100644 --- a/chat.mdx +++ b/chat.mdx @@ -22,6 +22,9 @@ Here’s how to get started: your website or app. This will add the chat widget to your site. We recommend adding this to all pages of your site. + + + You can customize some aspects of the Chat widget by providing additional information to the `Plain.init` function. These are the available options: diff --git a/package.json b/package.json index 9232bb4..1df99cb 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,11 @@ "scripts": { "dev": "mintlify dev", "lint": "pnpm run lint:prettier && pnpm run lint:links", - "lint:snippets": "tsx scripts/validateWebhookSnippets.ts", "lint:links": "mintlify broken-links", "lint:prettier": "prettier --check './**/*.{js,ts,tsx,md,mdx}'", "lint:fix": "prettier --write './**/*.{js,ts,tsx,md,mdx}'", - "format": "prettier --write './**/*.{js,ts,tsx,md,mdx}'" + "format": "prettier --write './**/*.{js,ts,tsx,md,mdx}'", + "check-webhooks": "tsx scripts/validateWebhookSnippets.ts" }, "dependencies": { "ajv-formats": "^3.0.1",