mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-03 10:22:56 +00:00
The eslint rules specify some formatting requirements that are rather strict and conflict with vscode's default formatter. I was unable to get auto-formatting to setup correctly. Also, eslint has quite recently [given up on formatting](https://eslint.org/blog/2023/10/deprecating-formatting-rules/) and recommends using a 3rd party formatter. This PR adds prettier as the formatter. It restores the eslint rules to their defaults. This does mean we now have the "no explicit any" check back on. I know that rule is pedantic but it did help me catch a few corner cases in type testing that weren't covered in the current code. Leaving in draft as this is dependent on other PRs.
75 lines
1.9 KiB
JSON
75 lines
1.9 KiB
JSON
{
|
|
"name": "lancedb",
|
|
"version": "0.4.3",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"napi": {
|
|
"name": "lancedb-nodejs",
|
|
"triples": {
|
|
"defaults": false,
|
|
"additional": [
|
|
"aarch64-apple-darwin",
|
|
"aarch64-unknown-linux-gnu",
|
|
"x86_64-apple-darwin",
|
|
"x86_64-unknown-linux-gnu"
|
|
]
|
|
}
|
|
},
|
|
"license": "Apache 2.0",
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "^2.18.0",
|
|
"@types/jest": "^29.1.2",
|
|
"@types/tmp": "^0.2.6",
|
|
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
"@typescript-eslint/parser": "^6.19.0",
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"jest": "^29.7.0",
|
|
"prettier": "^3.1.0",
|
|
"tmp": "^0.2.3",
|
|
"ts-jest": "^29.1.2",
|
|
"typedoc": "^0.25.7",
|
|
"typedoc-plugin-markdown": "^3.17.1",
|
|
"typescript": "^5.3.3",
|
|
"typescript-eslint": "^7.1.0"
|
|
},
|
|
"ava": {
|
|
"timeout": "3m"
|
|
},
|
|
"engines": {
|
|
"node": ">= 18"
|
|
},
|
|
"cpu": [
|
|
"x64",
|
|
"arm64"
|
|
],
|
|
"os": [
|
|
"darwin",
|
|
"linux",
|
|
"windows"
|
|
],
|
|
"scripts": {
|
|
"artifacts": "napi artifacts",
|
|
"build:native": "napi build --platform --release --js lancedb/native.js --dts lancedb/native.d.ts dist/",
|
|
"build:debug": "napi build --platform --dts ../lancedb/native.d.ts --js ../lancedb/native.js dist/",
|
|
"build": "npm run build:debug && tsc -b",
|
|
"chkformat": "prettier . --check",
|
|
"docs": "typedoc --plugin typedoc-plugin-markdown lancedb/index.ts",
|
|
"lint": "eslint lancedb",
|
|
"prepublishOnly": "napi prepublish -t npm",
|
|
"test": "npm run build && jest --verbose",
|
|
"universal": "napi universal",
|
|
"version": "napi version"
|
|
},
|
|
"optionalDependencies": {
|
|
"lancedb-darwin-arm64": "0.4.3",
|
|
"lancedb-darwin-x64": "0.4.3",
|
|
"lancedb-linux-arm64-gnu": "0.4.3",
|
|
"lancedb-linux-x64-gnu": "0.4.3",
|
|
"openai": "^4.28.4"
|
|
},
|
|
"peerDependencies": {
|
|
"apache-arrow": "^15.0.0"
|
|
}
|
|
}
|