Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
root = true

# Set up tabs as indent style for a11y reasons
# This will be the default for prettier in >=v3
# This matches the biome formatter default
[*]
indent_style = tab
indent_size = 2
Expand Down
21 changes: 0 additions & 21 deletions .eslintrc.cjs

This file was deleted.

25 changes: 5 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ jobs:
with:
node-version: ${{ matrix.node }}

- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: true

- name: Check formatting
run: pnpm lint
- name: Check formatting and linting
run: pnpm biome ci

- name: Check typing
run: pnpm tsc
Expand Down Expand Up @@ -57,28 +56,14 @@ jobs:
- name: Install node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 18
node-version: 24.x

- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: true

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Create and publish versions
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
with:
Expand Down
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

47 changes: 47 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": true,
"includes": ["**", "!**/dist", "!**/coverage", "!**/test-reports"]
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"preset": "recommended",
"complexity": {
"noForEach": "off"
},
"correctness": {
"noUnusedFunctionParameters": "off",
"noUnusedImports": "error",
"noUnusedVariables": "warn"
},
"style": {
"noNonNullAssertion": "off",
"noParameterAssign": "off"
},
"suspicious": {
"noExplicitAny": "off",
"noConsole": {
"level": "error",
"options": { "allow": ["warn", "error", "info"] }
}
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
}
}
15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,29 @@
"type": "git",
"url": "https://github.com/labd/js-toolkit"
},
"packageManager": "pnpm@12.12.0",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsup",
"generate-docs": "pnpm ts-readme && pnpm prettier --write README.md",
"generate-docs": "ts-readme",
"publish:ci": "pnpm build && pnpm changeset publish",
"test": "vitest run",
"test:ci": "vitest run --coverage",
"tsc": "tsc --noEmit",
"format": "eslint src --fix && pnpm prettier --write .",
"lint": "eslint src && pnpm prettier --check ."
"format": "biome check --fix",
"lint": "biome check",
"check": "biome check && tsc --noEmit"
},
"files": [
"dist",
"src"
],
"devDependencies": {
"@biomejs/biome": "2.5.15",
"@changesets/cli": "^2.27.1",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@vitest/coverage-v8": "1.3.0",
"eslint": "^8.56.0",
"eslint-plugin-unused-imports": "^3.1.0",
"prettier": "3.2.5",
"prettier-plugin-organize-imports": "3.2.4",
"prettier-plugin-packagejson": "2.4.11",
"ts-readme": "^1.1.3",
"tsup": "^8.0.2",
"typescript": "^5.3.3",
Expand Down
Loading
Loading