Skip to content

Commit

Permalink
Merge pull request #309 from nlibjs/biome
Browse files Browse the repository at this point in the history
Setup Biome and `node --test`
  • Loading branch information
gjbkz authored Oct 13, 2024
2 parents e5287c1 + 35ae7d1 commit 3a9899c
Show file tree
Hide file tree
Showing 19 changed files with 3,914 additions and 9,825 deletions.
2 changes: 0 additions & 2 deletions .githooks/commit-msg

This file was deleted.

2 changes: 1 addition & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
npx lint-staged
npm run lint
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 22.x
cache: npm
registry-url: https://registry.npmjs.org
- run: npm ci --ignore-scripts
- run: npm run build
- run: npx @nlib/cleanup-package-json --file package.json
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x
cache: npm
- run: npm ci --ignore-scripts
- run: npm run lint
Expand All @@ -18,16 +18,17 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [20.x, 18.x, 16.x]
node: [22.x, 20.x, 18.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci --ignore-scripts
- run: npm run build
- run: npx c8 npm test
- run: npx c8 report --reporter=text-lcov > coverage.lcov
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 0 additions & 7 deletions .prettierrc.json

This file was deleted.

6 changes: 6 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"files": {
"ignore": ["./esm/**"]
}
}
Loading

0 comments on commit 3a9899c

Please sign in to comment.