Skip to content

Commit

Permalink
fix: update dependencies, use biome, pnpm (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper authored Feb 23, 2024
1 parent 7d3d31c commit 53a791a
Show file tree
Hide file tree
Showing 12 changed files with 2,367 additions and 3,758 deletions.
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"env": {
"node": true
},
"extends": ["@ctrl/eslint-config"],
"extends": ["@ctrl/eslint-config-biome"],
"rules": {
"max-params": "off",
"@typescript-eslint/restrict-plus-operands": "off"
"no-mixed-operators": "off"
}
}
36 changes: 27 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
cache: "pnpm"

- name: install
run: pnpm install

- name: lint
run: npm run lint
run: pnpm run lint

- name: test
run: npm run test:ci
run: pnpm run test:ci

- name: coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -38,11 +48,19 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
cache: "pnpm"

- name: install
run: pnpm install

- name: release
run: npx semantic-release
env:
Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ jspm_packages

# Optional REPL history
.node_repl_history
.vscode
.vscode/*
!.vscode/launch.json
!.vscode/settings.json
.idea


# build
build
Expand All @@ -36,3 +40,4 @@ benchmark-out
.rpt2*
yarn.lock
junit.xml
.DS_Store
8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"editor.defaultFormatter": "biomejs.biome",
"[javascript][typescript][javascriptreact][typescriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.fixAll.eslint": "explicit"
}
}
}
8 changes: 8 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignoreUnknown": true,
"ignore": ["dist/*"]
},
"extends": ["./node_modules/@ctrl/eslint-config-biome/biome.json"]
}
Loading

0 comments on commit 53a791a

Please sign in to comment.