|
30 | 30 | "build:bundle": "tsup src/index.tsx", |
31 | 31 | "build:legacy": "tsup src/index.tsx --format esm --legacy-output --no-clean --no-dts", |
32 | 32 | "build:utils": "tsc -p tsconfig.test.json", |
33 | | - "build:copy": "node scripts/build-copy.js", |
| 33 | + "build:copy": "node scripts/build-copy.cjs", |
34 | 34 | "postbuild": "size-limit", |
35 | 35 | "dev": "run-p dev:*", |
36 | 36 | "dev:package": "tsup src/index.tsx --watch", |
37 | 37 | "dev:storybook": "pnpm --filter storybook dev", |
38 | | - "lint": "eslint . --ext js,ts,tsx", |
| 38 | + "lint": "biome lint .", |
39 | 39 | "release": "np --contents dist", |
40 | 40 | "version": "pnpm build", |
41 | 41 | "storybook:build": "pnpm build:bundle && pnpm --filter storybook build", |
|
58 | 58 | "trailingComma": "all", |
59 | 59 | "proseWrap": "always" |
60 | 60 | }, |
61 | | - "eslintIgnore": [ |
62 | | - "*.snap", |
63 | | - "test-utils.js", |
64 | | - "dist/**", |
65 | | - "lib/**", |
66 | | - "example/**", |
67 | | - "webpack.config.js" |
68 | | - ], |
69 | 61 | "release": { |
70 | 62 | "branches": [ |
71 | 63 | "main", |
|
87 | 79 | ] |
88 | 80 | }, |
89 | 81 | "simple-git-hooks": { |
90 | | - "pre-commit": "npx lint-staged" |
| 82 | + "pre-commit": "npx lint-staged && vitest run" |
91 | 83 | }, |
92 | 84 | "lint-staged": { |
93 | 85 | "*.{js,json,css,md,ts,tsx}": [ |
94 | 86 | "prettier --write" |
95 | 87 | ], |
96 | 88 | "src/**/*.{ts,tsx}": [ |
97 | | - "eslint", |
98 | | - "vitest related --run" |
| 89 | + "biome lint --apply" |
99 | 90 | ] |
100 | 91 | }, |
101 | 92 | "size-limit": [ |
|
122 | 113 | "react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0" |
123 | 114 | }, |
124 | 115 | "devDependencies": { |
125 | | - "@size-limit/preset-small-lib": "^8.2.4", |
126 | | - "@testing-library/jest-dom": "^5.16.5", |
127 | | - "@testing-library/react": "^14.0.0", |
128 | | - "@types/jest": "^29.5.2", |
129 | | - "@types/react": "^18.2.12", |
130 | | - "@types/react-dom": "^18.2.5", |
131 | | - "@typescript-eslint/eslint-plugin": "^5.59.11", |
132 | | - "@typescript-eslint/parser": "^5.59.11", |
133 | | - "eslint": "^8.43.0", |
134 | | - "eslint-plugin-import": "^2.27.5", |
135 | | - "eslint-plugin-jsx-a11y": "^6.7.1", |
136 | | - "eslint-plugin-react": "^7.32.2", |
137 | | - "eslint-plugin-react-hooks": "^4.6.0", |
138 | | - "jsdom": "^22.1.0", |
139 | | - "lint-staged": "^13.2.2", |
| 116 | + "@biomejs/biome": "^1.5.3", |
| 117 | + "@size-limit/preset-small-lib": "^11.0.2", |
| 118 | + "@testing-library/jest-dom": "^6.4.0", |
| 119 | + "@testing-library/react": "^14.2.0", |
| 120 | + "@types/jest": "^29.5.11", |
| 121 | + "@types/react": "^18.2.48", |
| 122 | + "@types/react-dom": "^18.2.18", |
| 123 | + "jsdom": "^24.0.0", |
| 124 | + "lint-staged": "^15.2.1", |
140 | 125 | "microbundle": "^0.15.1", |
141 | 126 | "npm-run-all": "^4.1.5", |
142 | | - "prettier": "^2.8.8", |
| 127 | + "prettier": "^3.2.4", |
143 | 128 | "react": "^18.2.0", |
144 | 129 | "react-dom": "^18.2.0", |
145 | | - "simple-git-hooks": "^2.8.1", |
146 | | - "size-limit": "^8.2.4", |
147 | | - "tsup": "^7.0.0", |
148 | | - "typescript": "^5.1.3", |
149 | | - "vitest": "^0.32.2" |
| 130 | + "simple-git-hooks": "^2.9.0", |
| 131 | + "size-limit": "^11.0.2", |
| 132 | + "tsup": "^8.0.1", |
| 133 | + "typescript": "^5.3.3", |
| 134 | + "vitest": "^1.2.2" |
150 | 135 | }, |
151 | 136 | "pnpm": { |
152 | 137 | "peerDependencyRules": { |
|
0 commit comments