Skip to content
Draft
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
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ jobs:
- uses: actions/checkout@v6
- uses: voidzero-dev/setup-vp@v1
- run: vp i
- run: vp check --no-lint
- run: vp run lint
- run: vp run build
- run: vp run typecheck

test:
strategy:
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ vp run build
vp run test
```

Equivalently, you can also use `pnpm` directly:

```sh
pnpm install
pnpm dev
pnpm build
pnpm test
```

## See more

- [Locators guide in Playwright's documentation](https://playwright.dev/docs/locators#locator-operators)
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
"prepare": "vp config",
"dev": "vp pack --watch --sourcemap",
"build": "vp pack",
"lint": "vp check --no-lint",
"lint-fix": "vp check --no-lint --fix",
"typecheck": "tsc -b",
"lint": "vp check",
"lint-fix": "vp check --fix",
"test-chrome": "vitest --project='*chromium*'",
"test-unit": "vitest --project=unit",
"test": "vitest"
Expand Down
11 changes: 10 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ export default defineConfig({
printWidth: 85,
ignorePatterns: [],
},
lint: {
categories: {
correctness: 'off',
},
options: {
typeAware: true,
typeCheck: true,
},
},
staged: {
'*': 'vp check --no-lint --fix',
'*': 'vp check --fix',
},
})
Loading