-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from natemoo-re/chore/upgrade
Migrate to Biome
- Loading branch information
Showing
29 changed files
with
4,619 additions
and
3,619 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Format with Biome | ||
ad8c36bd99ad00358d8574ee9a145077c5907970 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './dist/jsx-runtime/index' | ||
export * from './dist/jsx-runtime/index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Oops, something went wrong.