Skip to content

Commit e470602

Browse files
committed
chore: cleanup
1 parent 91b67bd commit e470602

6 files changed

Lines changed: 16 additions & 17 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install dependencies
2020
run: pnpm install
2121
- name: Lint
22-
run: pnpm lint
22+
run: pnpm biome ci .
2323
- name: Test
2424
run: pnpm test
2525
env:

.prettierignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ Here's what each part of the commit message means:
6767
updating dependencies).
6868
- `<subject>`: A short description of the change.
6969

70-
### Code Style
70+
### Code Style and Linting
7171

72-
`react-intersection-observer` uses [Prettier](https://prettier.io/) for code
73-
formatting. Please ensure that your changes are formatted with Prettier before
72+
`react-intersection-observer` uses [Biome](https://biomejs.dev/) for code
73+
formatting and linting. Please ensure that your changes are formatted with Biome before
7474
submitting your pull request.
7575

7676
### Testing

biome.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
{
22
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
33
"files": {
4-
"ignore": ["node_modules/**", "dist/**", "storybook-static/**"]
4+
"ignore": [
5+
".idea/**",
6+
"node_modules/**",
7+
"dist/**",
8+
"coverage/**",
9+
"storybook-static/**",
10+
"pnpm-lock.yaml"
11+
]
512
},
613
"organizeImports": {
714
"enabled": true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
},
7979
"lint-staged": {
8080
"*.{js,json,css,md,ts,tsx}": [
81-
"biome check --apply"
81+
"biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true"
8282
]
8383
},
8484
"size-limit": [

pnpm-lock.yaml

Lines changed: 3 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)