Skip to content

Commit

Permalink
replace prettier with biome (#57)
Browse files Browse the repository at this point in the history
faster, simpler.
  • Loading branch information
wydengyre authored Jun 15, 2024
1 parent dfa08d0 commit ebeec47
Show file tree
Hide file tree
Showing 5 changed files with 250 additions and 27 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ build:
.PHONY: format
format:
clang-format -i --style=google src/*.cpp
node_modules/.bin/prettier -w {src,test}/**/*.js
node_modules/.bin/prettier -w src/**/*.ts
node_modules/.bin/biome check --write src test

.PHONY: checkformat
checkformat:
clang-format -Werror --dry-run --style=google src/*.cpp
node_modules/.bin/prettier --check {src,test}/**/*.js
node_modules/.bin/biome ci src test

.PHONY: typecheck
typecheck: build/tesseract-core.d.ts
Expand Down
19 changes: 19 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"files": {
"include": ["src/**/*.ts", "src/**/*.js", "test/**/*.js"],
"ignore": ["src/tesseract-core.d.ts"]
},
"formatter": {
"indentStyle": "space"
}
}
Loading

0 comments on commit ebeec47

Please sign in to comment.