Skip to content
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

Auto-run lint:fix as part of a PR #121

Closed
wants to merge 1 commit into from
Closed
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
14 changes: 12 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

permissions:
checks: write
contents: write

jobs:
lint:
name: Lint
Expand Down Expand Up @@ -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
3 changes: 3 additions & 0 deletions chat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
</Step>



<Step title="Customize your Chat experience">
You can customize some aspects of the Chat widget by providing additional information to the
`Plain.init` function. These are the available options:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading