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: 3 additions & 2 deletions .github/workflows/ai-pr-review.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: ⚡ Flash PR Review

on:
pull_request:
pull_request_target:
types: [opened, synchronize]

permissions:
Expand All @@ -22,9 +22,10 @@ jobs:
github.event.pull_request.user.login != 'dependabot[bot]'

steps:
- name: Checkout
- name: Checkout PR Head
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Setup Node
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: ✅ CI

on:
pull_request:
types: [opened, synchronize]

concurrency:
group: ci-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
ci:
runs-on: ubuntu-latest
name: Lint, Typecheck & Test

if: |
!github.event.pull_request.draft &&
github.event.pull_request.user.login != 'dependabot[bot]'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install Dependencies
run: npm ci

- name: ESLint
run: npm run lint

- name: TypeScript Typecheck
run: npm run typecheck

- name: Unit Tests
run: npm test
15 changes: 15 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,28 @@ import nextTs from "eslint-config-next/typescript";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
{
// Allow underscore-prefixed vars to be unused (standard destructuring pattern)
rules: {
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
},
],
},
},
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
// Non-Next.js files
"scripts/**",
]),
]);

Expand Down
Loading
Loading