|
14 | 14 | "registry": "https://npm.pkg.github.com/observerly" |
15 | 15 | }, |
16 | 16 | "type": "module", |
17 | | - "files": [ |
18 | | - "dist" |
19 | | - ], |
| 17 | + "files": ["dist"], |
20 | 18 | "keywords": [ |
21 | 19 | "astronomy", |
22 | 20 | "astrometry", |
|
204 | 202 | } |
205 | 203 | }, |
206 | 204 | "release": { |
207 | | - "branches": [ |
208 | | - "main" |
209 | | - ] |
| 205 | + "branches": ["main"] |
210 | 206 | }, |
211 | 207 | "scripts": { |
212 | 208 | "build": "tsc --noEmit && vite build", |
213 | | - "format": "prettier \"src/**/*.ts\" --write", |
214 | | - "lint": "eslint src --ext .ts --fix", |
| 209 | + "format": "npx @biomejs/biome format --write", |
| 210 | + "lint": "npx @biomejs/biome lint --write", |
215 | 211 | "test": "vitest", |
216 | 212 | "benchmark": "tsx ./benchmarks/index.ts", |
217 | 213 | "coverage": "vitest run --coverage" |
218 | 214 | }, |
219 | 215 | "devDependencies": { |
| 216 | + "@biomejs/biome": "1.8.3", |
220 | 217 | "@changesets/cli": "^2.26.2", |
221 | 218 | "@rollup/plugin-typescript": "^11.1.6", |
222 | 219 | "@types/geojson": "^7946.0.14", |
223 | 220 | "@types/node": "^20.11.19", |
224 | | - "@typescript-eslint/eslint-plugin": "^6.3.0", |
225 | 221 | "@vitest/coverage-v8": "^2.0.4", |
226 | | - "eslint": "^8.47.0", |
227 | | - "eslint-config-prettier": "^9.0.0", |
228 | | - "eslint-plugin-prettier": "^5.0.0", |
229 | 222 | "husky": "^8.0.3", |
230 | 223 | "lint-staged": "^13.2.3", |
231 | 224 | "path": "^0.12.7", |
232 | | - "prettier": "3.0.1", |
233 | 225 | "rollup": "^4.14.1", |
234 | 226 | "tinybench": "^2.8.0", |
235 | 227 | "tslib": "^2.6.1", |
|
244 | 236 | } |
245 | 237 | }, |
246 | 238 | "lint-staged": { |
247 | | - "*.{ts,tsx}": [ |
248 | | - "prettier --write", |
249 | | - "eslint --fix", |
250 | | - "git add -A ." |
| 239 | + "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}": [ |
| 240 | + "biome check --files-ignore-unknown=true", |
| 241 | + "biome check --write --no-errors-on-unmatched", |
| 242 | + "biome check --write --organize-imports-enabled=false --no-errors-on-unmatched", |
| 243 | + "biome check --write --unsafe --no-errors-on-unmatched", |
| 244 | + "biome format --write --no-errors-on-unmatched", |
| 245 | + "biome lint --write --no-errors-on-unmatched" |
251 | 246 | ] |
252 | 247 | } |
253 | 248 | } |
0 commit comments