Skip to content

Commit a2fcc05

Browse files
committed
Linting and clean up
1 parent bb60daa commit a2fcc05

5 files changed

Lines changed: 249 additions & 185 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm exec lint-staged --verbose

__tests__/presentation-4/packed-package.mjs

Lines changed: 0 additions & 57 deletions
This file was deleted.

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,11 @@
275275
"scripts": {
276276
"build": "tsdown",
277277
"dev": "tsdown --watch",
278+
"prepare": "husky",
278279
"prepack": "tsdown",
279280
"typecheck": "tsc --noEmit",
280281
"start": "vite demos",
281282
"test": "vitest",
282-
"test:presentation-4:packed": "node scripts/test-packed-parser.mjs",
283283
"fmt": "oxfmt",
284284
"fmt:check": "oxfmt --check",
285285
"lint": "oxlint",
@@ -298,7 +298,9 @@
298298
"@types/svg-arc-to-cubic-bezier": "^3.2.1",
299299
"@vitejs/plugin-react": "^4.3.4",
300300
"happy-dom": "^12.10.0",
301+
"husky": "^9.1.7",
301302
"jsdom": "^22.1.0",
303+
"lint-staged": "^16.4.0",
302304
"oxfmt": "^0.62.0",
303305
"oxlint": "^1.77.0",
304306
"prettier": "^3.8.1",
@@ -321,5 +323,12 @@
321323
},
322324
"engines": {
323325
"node": ">=22"
326+
},
327+
"lint-staged": {
328+
"*.{js,jsx,ts,tsx,mjs,cjs}": [
329+
"oxfmt --no-error-on-unmatched-pattern",
330+
"oxlint --no-error-on-unmatched-pattern"
331+
],
332+
"!(*.{js,jsx,ts,tsx,mjs,cjs})": "oxfmt --no-error-on-unmatched-pattern"
324333
}
325334
}

0 commit comments

Comments
 (0)