Skip to content
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
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ end_of_line = lf
indent_style = tab
indent_size = 2
max_line_length = 80

[*.{yaml,yml}]
# YAML files should use spaces, not tabs
indent_style = space
indent_size = 2
2 changes: 1 addition & 1 deletion .env.local.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Your WordPress site URL
NEXT_PUBLIC_WORDPRESS_URL=https://faustjstoolkit.wpenginepowered.com/
NEXT_PUBLIC_WORDPRESS_URL=https://cms.faustjs.org/

# Your Next site URL
NEXT_PUBLIC_SITE_URL=http://localhost:3000/
Expand Down
14 changes: 14 additions & 0 deletions .github/actions/enable-corepack/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Enable Corepack"
description: "Setup Corepack with latest version and enable"

runs:
using: "composite" # Mandatory parameter
steps:
- name: Update & Enable Corepack
shell: bash
run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
echo "After : corepack version => $(corepack --version)"
corepack enable
pnpm --version
11 changes: 4 additions & 7 deletions .github/workflows/validate_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Enable Corepack
run: corepack enable
- uses: ./.github/actions/enable-corepack

- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile

check_format:
name: Validate formating with Prettier
name: Validate formatting with Prettier
runs-on: ubuntu-latest
needs: [setup]
steps:
Expand All @@ -43,8 +42,7 @@ jobs:
- name: Set up Node.js
uses: ./.github/actions/cache-restore

- name: Enable Corepack
run: corepack enable
- uses: ./.github/actions/enable-corepack

- name: Format source code
run: pnpm run test:format
Expand All @@ -60,8 +58,7 @@ jobs:
- name: Set up Node.js
uses: ./.github/actions/cache-restore

- name: Enable Corepack
run: corepack enable
- uses: ./.github/actions/enable-corepack

- name: Check Linting
run: pnpm run test:lint
Expand Down
1 change: 0 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
} from "eslint-config-neon";
import jsxA11y from "eslint-config-neon/jsx-a11y";
import * as mdx from "eslint-plugin-mdx";
// eslint-disable-next-line import-x/no-extraneous-dependencies -- we want the version of unicorn that is bundled with eslint-config-neon
import unicorn from "eslint-plugin-unicorn";

/**
Expand Down
6 changes: 6 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ const nextConfig = {
destination: "https://discord.gg/headless-wordpress-836253505944813629",
permanent: false,
},
{
source: "/community-meeting",
destination:
"https://discord.gg/headless-wordpress-836253505944813629?event=1336404483013480588",
permanent: false,
},
];
},
images: {
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"shiki": "^2.2.0"
},
"devDependencies": {
"eslint-plugin-unicorn": "^56.0.1",
"@tailwindcss/postcss": "^4.0.1",
"@tailwindcss/typography": "^0.5.15",
"eslint": "^9.19.0",
Expand All @@ -67,14 +68,20 @@
"node": "^22",
"npm": "use-pnpm"
},
"packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0",
"packageManager": "pnpm@10.2.0+sha512.0d27364e0139c6aadeed65ada153135e0ca96c8da42123bd50047f961339dc7a758fc2e944b428f52be570d1bd3372455c1c65fa2e7aa0bfbf931190f9552001",
"lint-staged": {
"*": "pnpm format",
"*.{js,jsx}": "pnpm lint"
},
"pnpm": {
"patchedDependencies": {
"rehype-pretty-code": "patches/rehype-pretty-code.patch"
},
"onlyBuiltDependencies": [
"sharp"
],
"overrides": {
"eslint-plugin-unicorn": "$eslint-plugin-unicorn"
}
}
}
12 changes: 9 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.