Skip to content

Commit 2213056

Browse files
committed
chore: lint/type-check
1 parent 2d8027c commit 2213056

File tree

5 files changed

+1426
-476
lines changed

5 files changed

+1426
-476
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,16 @@ jobs:
2929
- run: pnpm build
3030
- run: pnpm test
3131
- run: pnpm test:test262
32+
33+
lint:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: pnpm/[email protected]
38+
- uses: actions/setup-node@v4
39+
with:
40+
node-version: 22
41+
cache: pnpm
42+
- run: pnpm install --frozen-lockfile
43+
- run: pnpm check
44+
- run: pnpm lint

__test__/expression/variables.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { describe, it, expect } from 'vitest';
1+
import { describe, it } from 'vitest';
22
import { equalNode, generateSource, parseSource, parseSourceShouldThrowError } from '../utils';
33
import VariablesTypeSnapshot from '../__snapshot__/expression/variables';
4-
import { TypeScriptError } from '../../src/error';
54

65
const issueFile43 = `
76
const binaryOperators: {

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sveltejs/acorn-typescript",
3-
"version": "1.0.1",
3+
"version": "1.0.0",
44
"description": "Acorn plugin that parses TypeScript",
55
"type": "module",
66
"types": "index.d.ts",
@@ -11,6 +11,8 @@
1111
"scripts": {
1212
"build": "esbuild src/index.ts --bundle --format=esm --outfile=index.js --platform=node --external:acorn",
1313
"format": "prettier --write .",
14+
"check": "tsc --noEmit",
15+
"lint": "prettier --check .",
1416
"test": "vitest run",
1517
"test:test262": "npm run build && node ./__test__/run_test262.js",
1618
"changeset:version": "changeset version && git add --all",

0 commit comments

Comments
 (0)