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
34 changes: 34 additions & 0 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Format Check

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
format-check:
name: ESLint & Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
Comment thread
Smef marked this conversation as resolved.

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run ESLint
run: pnpm lint

- name: Run Prettier
if: always()
run: pnpm prettier:check
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ node_modules
.env.test

# packed file
*.tgz
*.tgz

# AI files
.claude
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v24
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# ignore index.md since it's using MDC and prettier messes that up
/docs/content/index.md
docs/content/index.md
docs/.nuxt
docs/.data
docs/.output
3 changes: 2 additions & 1 deletion .github/copilot-instructions.md → AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Copilot Instructions for `vasta`
# Instructions for `vasta`

## Project context

- This is a TypeScript codebase for an Laravel Eloquent-style model layer based on the Kysely query builder.
- Source code lives under `src/`.
- Tests and DB fixtures/migrations live under `test/`.
- The goal is to create a great developer experience with strong typing and IntelliSense.

## Implementation guidelines

Expand Down
16 changes: 11 additions & 5 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import eslint from "@eslint/js";
import js from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintConfigPrettier from "eslint-config-prettier";
import { defineConfig } from "eslint/config";

export default tseslint.config({
files: ["src/**/*.{js,ts}"],
extends: [eslint.configs.recommended, tseslint.configs.recommended, eslintConfigPrettier],
});
export default defineConfig([
{
ignores: ["dist/**/*", "docs/.nuxt/**", "docs/.data/**", "docs/.output/**"],
},
{
files: ["src/**/*.ts", "docs/**/*.{ts}", "test/**/*.{ts}"],
extends: [js.configs.recommended, tseslint.configs.recommended, eslintConfigPrettier],
},
]);
21 changes: 13 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,28 @@
"generate:docs": "cd docs && pnpm run generate",
"db:reset": "kysely migrate:rollback --all && kysely migrate:latest && kysely seed:run",
"db:migrate": "kysely migrate:latest",
"db:seed": "kysely seed:run"
"db:seed": "kysely seed:run",
"lint": "eslint",
"lint:fix": "eslint --fix",
"prettier:check": "prettier \"**/*.{js,ts,mjs,vue}\" --check",
"prettier:write": "prettier \"**/*.{js,ts,mjs,vue}\" --write"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"devDependencies": {
"@eslint/js": "^9.39.4",
"@types/node": "^25.5.0",
"@types/pg": "^8.18.0",
"eslint": "^9.39.4",
"@types/node": "^24.12.2",
"@types/pg": "^8.20.0",
"eslint": "^10.2.1",
"eslint-config-prettier": "^9.1.2",
"kysely": "^0.28.12",
"kysely": "^0.28.16",
"kysely-ctl": "^0.20.0",
"pg": "^8.20.0",
"prettier": "^3.8.1",
"prettier": "^3.8.3",
"tsc-alias": "^1.8.16",
"typescript": "^5.9.3",
"typescript-eslint": "^8.57.0",
"typescript-eslint": "^8.59.0",
Comment thread
Smef marked this conversation as resolved.
"vitest": "^1.6.1"
Comment thread
Smef marked this conversation as resolved.
},
"peerDependencies": {
Expand All @@ -69,5 +73,6 @@
"resolutions": {
"unimport": "5.6.0",
"citty": "0.1.6"
}
},
"packageManager": "pnpm@10.33.1"
}
Loading
Loading