diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5c664f..1367aa9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/README.md b/README.md index 8467944..a034ba6 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/package.json b/package.json index 6284f66..161b63f 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/vite.config.ts b/vite.config.ts index 03f33fd..63a6dba 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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', }, })