Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"includes": ["**"]
},
Comment on lines +8 to +11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While vcs.useIgnoreFile is helpful, specifying includes more explicitly is a best practice. Using "**" can be slow as it traverses all directories, which might include build artifacts or other files that are not in .gitignore but are not meant to be linted. Scoping it down to your source files will improve performance and prevent unintended linting.

Suggested change
"files": {
"ignoreUnknown": false,
"includes": ["**"]
},
"files": {
"ignoreUnknown": false,
"includes": ["src/**/*.{ts,tsx,js,jsx}"]
},

"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
},
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedVariables": "error"
}
Comment on lines +22 to +25
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The PR title mentions enabling 'strict' linting, but the configuration only uses the recommended rules. Biome offers a strict preset which enables more opinionated rules for higher code quality. If the intention is to be strict, you could replace "recommended": true with "strict": true.

This would enable all strict rules and keep your override for unused variables. If you only intended to enable the recommended rules, consider updating the PR title to avoid confusion.

Suggested change
"recommended": true,
"correctness": {
"noUnusedVariables": "error"
}
"strict": true,
"correctness": {
"noUnusedVariables": "error"
}

}
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"semicolons": "always",
"trailingCommas": "es5"
}
}
}
174 changes: 165 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
"test:run": "vitest run",
"test:ui": "vitest --ui",
"typecheck": "tsc --noEmit",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
},
Expand All @@ -64,6 +66,7 @@
]
},
"devDependencies": {
"@biomejs/biome": "^2.3.8",
"@jupyterlab/nbformat": "^4.5.0",
"@testing-library/jest-dom": "^6.9.1",
"@types/emscripten": "^1.41.5",
Expand Down