Skip to content

Commit d873cb5

Browse files
authored
Migrate to Biome. (pola-rs#104)
1 parent d9de2e9 commit d873cb5

File tree

4 files changed

+84
-77
lines changed

4 files changed

+84
-77
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The following is a set of guidelines for contributing to nodejs-polars. These ar
3636
### Vscode
3737
If using VScode, it is recommended to install the following extensions
3838
- rust-analyzer
39-
- rome
39+
- biome
4040
---
4141

4242
- Fork the repository, then clone it from your fork

rome.json biome.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"$schema": "https://biomejs.dev/schemas/1.0.0/schema.json",
3+
"organizeImports": {
4+
"enabled": false
5+
},
26
"linter": {
37
"enabled": true,
48
"rules": {
@@ -8,6 +12,9 @@
812
},
913
"suspicious": {
1014
"noExplicitAny": "off"
15+
},
16+
"complexity": {
17+
"useLiteralKeys": "off"
1118
}
1219
},
1320
"ignore": [
@@ -30,4 +37,4 @@
3037
"quoteStyle": "double"
3138
}
3239
}
33-
}
40+
}

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,22 @@
4646
"build:ts": " rm -rf bin; tsc -p tsconfig.build.json",
4747
"cp:bin": "cp ./polars/*.node bin/",
4848
"format:rs": "cargo fmt",
49-
"lint:ts:fix": "rome check --apply-unsafe {polars,__tests__} && rome format --write {polars,__tests__}",
50-
"lint:ts": "rome check {polars,__tests__} && rome format {polars,__tests__}",
49+
"lint:ts:fix": "biome check --apply-unsafe {polars,__tests__} && biome format --write {polars,__tests__}",
50+
"lint:ts": "biome check {polars,__tests__} && biome format {polars,__tests__}",
5151
"lint": "yarn lint:ts && yarn format:rs",
5252
"prepublishOnly": "napi prepublish -t npm",
5353
"test": "jest",
5454
"version": "napi version",
5555
"precommit": "yarn lint && yarn test"
5656
},
5757
"devDependencies": {
58+
"@biomejs/biome": "^1.0.0",
5859
"@napi-rs/cli": "^2.16.3",
5960
"@types/chance": "^1.1.3",
6061
"@types/jest": "^29.5.4",
6162
"@types/node": "^20.5.4",
6263
"chance": "^1.1.11",
6364
"jest": "^29.6.4",
64-
"rome": "^12.1.3",
6565
"source-map-support": "^0.5.21",
6666
"ts-jest": "^29.1.1",
6767
"ts-node": "^10.9.1",

yarn.lock

+72-72
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,77 @@ __metadata:
616616
languageName: node
617617
linkType: hard
618618

619+
"@biomejs/biome@npm:^1.0.0":
620+
version: 1.0.0
621+
resolution: "@biomejs/biome@npm:1.0.0"
622+
dependencies:
623+
"@biomejs/cli-darwin-arm64": 1.0.0
624+
"@biomejs/cli-darwin-x64": 1.0.0
625+
"@biomejs/cli-linux-arm64": 1.0.0
626+
"@biomejs/cli-linux-x64": 1.0.0
627+
"@biomejs/cli-win32-arm64": 1.0.0
628+
"@biomejs/cli-win32-x64": 1.0.0
629+
dependenciesMeta:
630+
"@biomejs/cli-darwin-arm64":
631+
optional: true
632+
"@biomejs/cli-darwin-x64":
633+
optional: true
634+
"@biomejs/cli-linux-arm64":
635+
optional: true
636+
"@biomejs/cli-linux-x64":
637+
optional: true
638+
"@biomejs/cli-win32-arm64":
639+
optional: true
640+
"@biomejs/cli-win32-x64":
641+
optional: true
642+
bin:
643+
biome: bin/biome
644+
checksum: ea5e3692c955752741771684f38081013adbfca398ae094ef6e31ebc33611b65e066e389a0352d755af6ee08d63a75a367efe6f9d58bc7d441a910ec8e5f501a
645+
languageName: node
646+
linkType: hard
647+
648+
"@biomejs/cli-darwin-arm64@npm:1.0.0":
649+
version: 1.0.0
650+
resolution: "@biomejs/cli-darwin-arm64@npm:1.0.0"
651+
conditions: os=darwin & cpu=arm64
652+
languageName: node
653+
linkType: hard
654+
655+
"@biomejs/cli-darwin-x64@npm:1.0.0":
656+
version: 1.0.0
657+
resolution: "@biomejs/cli-darwin-x64@npm:1.0.0"
658+
conditions: os=darwin & cpu=x64
659+
languageName: node
660+
linkType: hard
661+
662+
"@biomejs/cli-linux-arm64@npm:1.0.0":
663+
version: 1.0.0
664+
resolution: "@biomejs/cli-linux-arm64@npm:1.0.0"
665+
conditions: os=linux & cpu=arm64
666+
languageName: node
667+
linkType: hard
668+
669+
"@biomejs/cli-linux-x64@npm:1.0.0":
670+
version: 1.0.0
671+
resolution: "@biomejs/cli-linux-x64@npm:1.0.0"
672+
conditions: os=linux & cpu=x64
673+
languageName: node
674+
linkType: hard
675+
676+
"@biomejs/cli-win32-arm64@npm:1.0.0":
677+
version: 1.0.0
678+
resolution: "@biomejs/cli-win32-arm64@npm:1.0.0"
679+
conditions: os=win32 & cpu=arm64
680+
languageName: node
681+
linkType: hard
682+
683+
"@biomejs/cli-win32-x64@npm:1.0.0":
684+
version: 1.0.0
685+
resolution: "@biomejs/cli-win32-x64@npm:1.0.0"
686+
conditions: os=win32 & cpu=x64
687+
languageName: node
688+
linkType: hard
689+
619690
"@cspotcode/source-map-support@npm:^0.8.0":
620691
version: 0.8.1
621692
resolution: "@cspotcode/source-map-support@npm:0.8.1"
@@ -1026,48 +1097,6 @@ __metadata:
10261097
languageName: node
10271098
linkType: hard
10281099

1029-
"@rometools/cli-darwin-arm64@npm:12.1.3":
1030-
version: 12.1.3
1031-
resolution: "@rometools/cli-darwin-arm64@npm:12.1.3"
1032-
conditions: os=darwin & cpu=arm64
1033-
languageName: node
1034-
linkType: hard
1035-
1036-
"@rometools/cli-darwin-x64@npm:12.1.3":
1037-
version: 12.1.3
1038-
resolution: "@rometools/cli-darwin-x64@npm:12.1.3"
1039-
conditions: os=darwin & cpu=x64
1040-
languageName: node
1041-
linkType: hard
1042-
1043-
"@rometools/cli-linux-arm64@npm:12.1.3":
1044-
version: 12.1.3
1045-
resolution: "@rometools/cli-linux-arm64@npm:12.1.3"
1046-
conditions: os=linux & cpu=arm64
1047-
languageName: node
1048-
linkType: hard
1049-
1050-
"@rometools/cli-linux-x64@npm:12.1.3":
1051-
version: 12.1.3
1052-
resolution: "@rometools/cli-linux-x64@npm:12.1.3"
1053-
conditions: os=linux & cpu=x64
1054-
languageName: node
1055-
linkType: hard
1056-
1057-
"@rometools/cli-win32-arm64@npm:12.1.3":
1058-
version: 12.1.3
1059-
resolution: "@rometools/cli-win32-arm64@npm:12.1.3"
1060-
conditions: os=win32 & cpu=arm64
1061-
languageName: node
1062-
linkType: hard
1063-
1064-
"@rometools/cli-win32-x64@npm:12.1.3":
1065-
version: 12.1.3
1066-
resolution: "@rometools/cli-win32-x64@npm:12.1.3"
1067-
conditions: os=win32 & cpu=x64
1068-
languageName: node
1069-
linkType: hard
1070-
10711100
"@sinclair/typebox@npm:^0.25.16":
10721101
version: 0.25.24
10731102
resolution: "@sinclair/typebox@npm:0.25.24"
@@ -3336,13 +3365,13 @@ __metadata:
33363365
version: 0.0.0-use.local
33373366
resolution: "nodejs-polars@workspace:."
33383367
dependencies:
3368+
"@biomejs/biome": ^1.0.0
33393369
"@napi-rs/cli": ^2.16.3
33403370
"@types/chance": ^1.1.3
33413371
"@types/jest": ^29.5.4
33423372
"@types/node": ^20.5.4
33433373
chance: ^1.1.11
33443374
jest: ^29.6.4
3345-
rome: ^12.1.3
33463375
source-map-support: ^0.5.21
33473376
ts-jest: ^29.1.1
33483377
ts-node: ^10.9.1
@@ -3676,35 +3705,6 @@ __metadata:
36763705
languageName: node
36773706
linkType: hard
36783707

3679-
"rome@npm:^12.1.3":
3680-
version: 12.1.3
3681-
resolution: "rome@npm:12.1.3"
3682-
dependencies:
3683-
"@rometools/cli-darwin-arm64": 12.1.3
3684-
"@rometools/cli-darwin-x64": 12.1.3
3685-
"@rometools/cli-linux-arm64": 12.1.3
3686-
"@rometools/cli-linux-x64": 12.1.3
3687-
"@rometools/cli-win32-arm64": 12.1.3
3688-
"@rometools/cli-win32-x64": 12.1.3
3689-
dependenciesMeta:
3690-
"@rometools/cli-darwin-arm64":
3691-
optional: true
3692-
"@rometools/cli-darwin-x64":
3693-
optional: true
3694-
"@rometools/cli-linux-arm64":
3695-
optional: true
3696-
"@rometools/cli-linux-x64":
3697-
optional: true
3698-
"@rometools/cli-win32-arm64":
3699-
optional: true
3700-
"@rometools/cli-win32-x64":
3701-
optional: true
3702-
bin:
3703-
rome: bin/rome
3704-
checksum: 341e5520a23277bdc2571db279e72fe9427a95f4e3025cd215a989d381fe6690f6aa1c0fb9abbd318a8bfd85ff1cec2304e92b732329c8a46c69e259eeb080cc
3705-
languageName: node
3706-
linkType: hard
3707-
37083708
"safe-buffer@npm:~5.2.0":
37093709
version: 5.2.1
37103710
resolution: "safe-buffer@npm:5.2.1"

0 commit comments

Comments
 (0)