Skip to content

Commit

Permalink
Merge pull request #74 from natemoo-re/chore/upgrade
Browse files Browse the repository at this point in the history
Migrate to Biome
  • Loading branch information
natemoo-re authored Sep 25, 2024
2 parents 93a1273 + 4d1a9c8 commit 2ff1c10
Show file tree
Hide file tree
Showing 29 changed files with 4,619 additions and 3,619 deletions.
16 changes: 8 additions & 8 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Format with Biome
ad8c36bd99ad00358d8574ee9a145077c5907970
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:
name: Build Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
id: cache-node
with:
node-version: 18
cache: "pnpm"
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Format

on:
push:
branches:
- main

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- run: pnpm install
- run: pnpm run format
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "[ci] format"
branch: ${{ github.head_ref }}
commit_author: ${{ github.event.commits[0].author.name }} <${{ github.actor }}@users.noreply.github.com>
30 changes: 30 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"ignore": []
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "single"
}
}
}
2 changes: 1 addition & 1 deletion jsx-runtime.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './dist/jsx-runtime/index'
export * from './dist/jsx-runtime/index';
152 changes: 74 additions & 78 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,80 +1,76 @@
{
"name": "ultrahtml",
"type": "module",
"version": "1.5.3",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"repository": {
"type": "git",
"url": "https://github.com/natemoo-re/ultrahtml"
},
"bugs": {
"url": "https://github.com/natemoo-re/ultrahtml/issues"
},
"homepage": "https://github.com/natemoo-re/ultrahtml#README",
"scripts": {
"build": "node scripts/build.js",
"lint": "prettier \"**/*.{js,ts,md}\"",
"dev": "vitest",
"test": "vitest run"
},
"files": [
"selector.d.ts",
"transform.d.ts",
"jsx-runtime.d.ts",
"transformers",
"dist",
"CHANGELOG.md"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./package.json": "./package.json",
"./selector": {
"types": "./dist/selector.d.ts",
"import": "./dist/selector.js"
},
"./transformers/*": {
"types": "./dist/transformers/*.d.ts",
"import": "./dist/transformers/*.js"
},
"./jsx-runtime": {
"types": "./dist/jsx-runtime/index.d.ts",
"import": "./dist/jsx-runtime/index.js"
}
},
"keywords": [
"html",
"template",
"sanitize"
],
"author": {
"name": "Nate Moore",
"email": "[email protected]",
"url": "https://twitter.com/n_moore"
},
"license": "MIT",
"volta": {
"node": "18.7.0"
},
"packageManager": "[email protected]",
"devDependencies": {
"@changesets/cli": "^2.18.1",
"@types/stylis": "^4.0.2",
"chalk": "^5.1.2",
"dts-bundle-generator": "^9.2.1",
"esbuild": "^0.14.51",
"globby": "^13.1.2",
"gzip-size": "^7.0.0",
"markdown-it": "^13.0.1",
"media-query-fns": "^2.0.0",
"npm-run-all": "^4.1.5",
"parsel-js": "^1.1.2",
"prettier": "^2.5.1",
"pretty-bytes": "^6.0.0",
"stylis": "^4.1.2",
"vitest": "^0.20.2"
}
"name": "ultrahtml",
"type": "module",
"version": "1.5.3",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"repository": {
"type": "git",
"url": "https://github.com/natemoo-re/ultrahtml"
},
"bugs": {
"url": "https://github.com/natemoo-re/ultrahtml/issues"
},
"homepage": "https://github.com/natemoo-re/ultrahtml#README",
"scripts": {
"build": "node scripts/build.js",
"format": "biome format --write",
"dev": "vitest",
"test": "vitest run"
},
"files": [
"selector.d.ts",
"transform.d.ts",
"jsx-runtime.d.ts",
"transformers",
"dist",
"CHANGELOG.md"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./package.json": "./package.json",
"./selector": {
"types": "./dist/selector.d.ts",
"import": "./dist/selector.js"
},
"./transformers/*": {
"types": "./dist/transformers/*.d.ts",
"import": "./dist/transformers/*.js"
},
"./jsx-runtime": {
"types": "./dist/jsx-runtime/index.d.ts",
"import": "./dist/jsx-runtime/index.js"
}
},
"keywords": ["html", "template", "sanitize"],
"author": {
"name": "Nate Moore",
"email": "[email protected]",
"url": "https://twitter.com/n_moore"
},
"license": "MIT",
"volta": {
"node": "18.20.4"
},
"packageManager": "[email protected]",
"devDependencies": {
"@biomejs/biome": "1.9.2",
"@changesets/cli": "^2.27.8",
"@types/stylis": "^4.2.6",
"chalk": "^5.3.0",
"dts-bundle-generator": "^9.5.1",
"esbuild": "^0.14.54",
"globby": "^13.2.2",
"gzip-size": "^7.0.0",
"markdown-it": "^13.0.2",
"media-query-fns": "^2.0.0",
"npm-run-all": "^4.1.5",
"parsel-js": "^1.1.2",
"pretty-bytes": "^6.1.1",
"stylis": "^4.3.4",
"vitest": "^2.1.1"
}
}
Loading

0 comments on commit 2ff1c10

Please sign in to comment.