style: apply the biome 2.6 lint and format fixes
Biome 2.6 adds the useMathMinMax and useDomNodeTextContent rules and starts formatting Markdown. - Use Math.max and Math.min for the clamping ternaries - Align the README tables
This commit is contained in:
@@ -56,14 +56,14 @@ maps it in directly. It is generated content and is not tracked in git.
|
||||
|
||||
## Scripts
|
||||
|
||||
| Command | Description |
|
||||
| --- | --- |
|
||||
| `npm run dev` | Start the dev server on http://localhost:5173 |
|
||||
| `npm run build` | Type-check and build into `dist/` |
|
||||
| `npm run preview` | Serve the production build on http://localhost:4173 |
|
||||
| `npm run lint` | Lint with [Biome](https://biomejs.dev/) |
|
||||
| `npm run format` | Format with Biome |
|
||||
| `npm run check` | Lint, format and organize imports, applying the safe fixes |
|
||||
| Command | Description |
|
||||
| ----------------- | ---------------------------------------------------------- |
|
||||
| `npm run dev` | Start the dev server on http://localhost:5173 |
|
||||
| `npm run build` | Type-check and build into `dist/` |
|
||||
| `npm run preview` | Serve the production build on http://localhost:4173 |
|
||||
| `npm run lint` | Lint with [Biome](https://biomejs.dev/) |
|
||||
| `npm run format` | Format with Biome |
|
||||
| `npm run check` | Lint, format and organize imports, applying the safe fixes |
|
||||
|
||||
`@types/node` is pinned to the major that matches the Node runtime in use (24);
|
||||
`.ncurc.js` keeps `npm-check-updates` from bumping it past that.
|
||||
|
||||
@@ -63,7 +63,7 @@ const CosmoDbListPageNavi = (props: Props) => {
|
||||
items.push({ key: 'next', node: link(next, <>»</>) });
|
||||
}
|
||||
const rangeS = offset + 1;
|
||||
const rangeE = offset + limit < total ? offset + limit : total;
|
||||
const rangeE = Math.min(offset + limit, total);
|
||||
|
||||
return (
|
||||
<nav className="pagenavi">
|
||||
|
||||
Reference in New Issue
Block a user