Skip to content

Commit 8aa13a4

Browse files
committed
build(sdk): add lint/lint:fix scripts
1 parent ecd9e46 commit 8aa13a4

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

packages/sdk/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"build:code:browser": "esbuild src/index.ts --bundle --minify --outfile=dist/bundle.iife.js",
1515
"build:code:node": "esbuild src/index.ts --bundle --platform=node --target=node18.18 --format=esm --packages=external --minify --outfile=dist/index.mjs",
1616
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
17+
"lint": "eslint src/ && prettier --check src/",
18+
"lint:fix": "eslint --fix src/ && prettier --write src/",
1719
"prepare": "pnpm run build",
1820
"test": "vitest src/",
1921
"test:e2e": "vitest --config vitest.config.e2e.ts"
@@ -31,7 +33,11 @@
3133
},
3234
"devDependencies": {
3335
"@types/node": "^18.18.0",
34-
"@types/uuid": "^9.0.2"
36+
"@types/uuid": "^9.0.2",
37+
"@typescript-eslint/eslint-plugin": "^6.11.0",
38+
"@typescript-eslint/parser": "^6.11.0",
39+
"eslint": "^8.54.0",
40+
"prettier": "^3.0.3"
3541
},
3642
"publishConfig": {
3743
"access": "public"

pnpm-lock.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)