linting and typing improvements [#287] (#337)

* Typing improvements [#287]

* rename FileApiSource to FileSource
* In a few cases we need to use any and biome-ignore. Deferring any restructuring here to js v4.
* replace prettier with biome
This commit is contained in:
Brandon Liu
2024-01-31 12:22:25 +08:00
committed by GitHub
parent 6bb1c68ead
commit 6638d040a5
8 changed files with 74 additions and 51 deletions

View File

@@ -17,9 +17,8 @@
"build": "npm run build-iife && npm run build-esm && npm run build-tsc",
"test": "tsx test/index.test.ts",
"tsc": "tsc --noEmit --watch",
"prettier": "prettier --write *.ts test/*.ts",
"prettier-check": "prettier --check *.ts test/*.ts",
"biome": "biome check adapters.ts index.ts v2.ts test"
"biome": "biome check adapters.ts index.ts v2.ts test --apply",
"biome-check": "biome check adapters.ts index.ts v2.ts test"
},
"homepage": "https://github.com/protomaps/pmtiles",
"author": "Brandon Liu",
@@ -28,11 +27,11 @@
"@biomejs/biome": "^1.5.3",
"@types/node": "^18.11.9",
"esbuild": "^0.20.0",
"prettier": "^2.8.4",
"tsx": "^4.7.0",
"typescript": "^4.5.5"
},
"dependencies": {
"@types/leaflet": "^1.9.8",
"fflate": "^0.8.0"
}
}