Skip to content

Commit 5f35d70

Browse files
committed
Bioma
1 parent c9a04b4 commit 5f35d70

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.cursor/rules/coding-style.mdc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description:
33
globs:
44
alwaysApply: true
55
---
6+
67
Coding style:
78

89
- Favor `async run() {` over `run = async () => {` inside ES6 classes
@@ -14,6 +15,6 @@ Coding style:
1415
- Do not wrap each function body and function call in `try`/`catch` blocks. It pollutes the code. Assume we will always have an e.g. `main().catch((err) => { console.error(err); process.exit(1) })` to catch us. I repeat: Avoid over-use of try-catch such as `try { // foo } catch (err) { console.error('error while foo'); throw err }`, assume we catch errors on a higher level and do not need the extra explananation.
1516
- Before creating new files and new code, see if we can leverage existing work, maybe slighty adapt that without breaking BC, to keep things DRY.
1617
- Favor early exits, so quickly `continue`, `return false` (or `throw` if needed), over nesting everything in positive conditions, creating christmas trees.
17-
- Use Prettier with 100 char line width, single quotes for JS/TS, semi: false
18+
- Use Biome with 100 char line width, single quotes for JS/TS, semi: false
1819
- Use descriptive names: PascalCase for components/types, camelCase for variables/methods/schemas
1920
- Alphabetize imports, group by source type (built-in/external/internal)

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ jobs:
3333
name: package
3434
path: '*.tgz'
3535

36-
prettier:
36+
biome:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- uses: actions/checkout@v4
4040
- uses: actions/setup-node@v4
4141
with:
4242
node-version: 22
4343
- run: corepack yarn
44-
- run: corepack yarn lint:formatting
44+
- run: corepack yarn lint:js
4545

4646
typescript:
4747
runs-on: ubuntu-latest

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ yarn upgrade-interactive
2222

2323
## Linting
2424

25-
This project is linted using [ESLint](https://eslint.org). You can lint the project by running:
25+
This project is linted using Biome. You can lint the project by running:
2626

2727
```sh
2828
yarn lint:js
2929
```
3030

3131
## Formatting
3232

33-
This project is formatted using [Prettier](https://prettier.io). You can format the project:
33+
This project is formatted using Biome. You can format the project:
3434

3535
```sh
36-
yarn fix:formatting
36+
yarn fix:js
3737
```
3838

3939
## Testing

0 commit comments

Comments
 (0)