Skip to content

Commit

Permalink
chore: replace deno fmt with dprint (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Aug 17, 2023
1 parent a2ab3b0 commit efe6750
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 19 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/config@2.3.0/schema.json",
"changelog": [
"@svitejs/changesets-changelog-github-compact",
{ "repo": "manzt/zarrita.js" }
],
"commit": false,
"access": "public",
"baseBranch": "main"
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": [
"@svitejs/changesets-changelog-github-compact",
{ "repo": "manzt/zarrita.js" }
],
"commit": false,
"access": "public",
"baseBranch": "main"
}
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ concurrency:
jobs:
Test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
Expand All @@ -23,15 +22,14 @@ jobs:
pnpm install
pnpm build
pnpm test
Lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm lint
- run: |
pnpm install
pnpm lint
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ const region = await get(arr, [null, slice(6)]);

zarrita's API is almost entirely tree-shakeable, meaning users are able to pick
and choose only the features of Zarr which are necessary for an applications. At
its core, the `zarr.Array` class allows accessing and decoding individual array chunks.
"Fancy-indexing" and "slicing" are accomplished via (optional) functions which
operate on `zarr.Array` objects.
its core, the `zarr.Array` class allows accessing and decoding individual array
chunks. "Fancy-indexing" and "slicing" are accomplished via (optional) functions
which operate on `zarr.Array` objects.

Thus, you only pay for these features if used (when bundling for the web). This
design choice differs from existing implemenations of Zarr in JavaScript, and
Expand Down
23 changes: 23 additions & 0 deletions dprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"typescript": {
"deno": true,
"useTabs": true
},
"json": {
"deno": true,
"useTabs": true
},
"markdown": {
"deno": true
},
"excludes": [
"**/node_modules",
"**/*-lock.json",
"fixtures/**/*"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.86.2.wasm",
"https://plugins.dprint.dev/json-0.17.4.wasm",
"https://plugins.dprint.dev/markdown-0.15.3.wasm"
]
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
"scripts": {
"build": "tsc --build",
"test": "vitest --api",
"fmt": "deno fmt --use-tabs packages docs",
"lint": "deno fmt --use-tabs packages docs --check"
"fmt": "dprint fmt",
"lint": "dprint check"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"@types/node": "^20.4.9",
"dprint": "^0.40.2",
"typescript": "^5.1.6",
"vitest": "^0.33.0"
}
Expand Down
64 changes: 64 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit efe6750

Please sign in to comment.