Skip to content

Commit f990eef

Browse files
committed
build(prettier): add prettier plugins
1 parent 2564db3 commit f990eef

File tree

5 files changed

+230
-22
lines changed

5 files changed

+230
-22
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
npm run lint
2+
npm run format:check

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"trailingComma": "none"
2+
"trailingComma": "none",
3+
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-packagejson"]
34
}

package-lock.json

Lines changed: 205 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
"name": "astro-loader-pocketbase",
33
"version": "2.3.1-next.1",
44
"description": "A content loader for Astro that uses the PocketBase API",
5+
"keywords": [
6+
"astro",
7+
"astro-content-loader",
8+
"astro-loader",
9+
"pocketbase",
10+
"withastro"
11+
],
12+
"homepage": "https://github.com/pawcoding/astro-loader-pocketbase",
513
"license": "MIT",
614
"author": "Luis Wolf <development@pawcode.de> (https://pawcode.de)",
7-
"homepage": "https://github.com/pawcoding/astro-loader-pocketbase",
815
"type": "module",
916
"exports": {
1017
".": "./src/index.ts"
@@ -13,22 +20,19 @@
1320
"src"
1421
],
1522
"scripts": {
16-
"lint": "npx eslint --cache",
17-
"lint:fix": "npx eslint --fix --cache",
1823
"format": "npx prettier . --write --cache",
1924
"format:check": "npx prettier . --check --cache",
25+
"lint": "npx eslint --cache",
26+
"lint:fix": "npx eslint --fix --cache",
2027
"prepare": "husky",
2128
"test": "vitest run",
22-
"test:watch": "vitest watch",
23-
"test:unit": "vitest run $(find test -name '*.spec.ts')",
24-
"test:unit:watch": "vitest watch $(find test -name '*.spec.ts')",
2529
"test:e2e": "vitest run $(find test -name '*.e2e-spec.ts')",
26-
"test:e2e:watch": "vitest watch $(find test -name '*.e2e-spec.ts')",
30+
"test:e2e:pocketbase": "npm run test:e2e:setup && ./.pocketbase/pocketbase serve",
2731
"test:e2e:setup": "./scripts/setup-pocketbase.sh",
28-
"test:e2e:pocketbase": "npm run test:e2e:setup && ./.pocketbase/pocketbase serve"
29-
},
30-
"peerDependencies": {
31-
"astro": "^5.0.0"
32+
"test:e2e:watch": "vitest watch $(find test -name '*.e2e-spec.ts')",
33+
"test:unit": "vitest run $(find test -name '*.spec.ts')",
34+
"test:unit:watch": "vitest watch $(find test -name '*.spec.ts')",
35+
"test:watch": "vitest watch"
3236
},
3337
"devDependencies": {
3438
"@commitlint/cli": "^19.6.1",
@@ -42,16 +46,14 @@
4246
"eslint-config-prettier": "^10.0.1",
4347
"globals": "^15.14.0",
4448
"husky": "^9.1.7",
45-
"prettier": "3.4.2",
49+
"prettier": "^3.4.2",
50+
"prettier-plugin-organize-imports": "^4.1.0",
51+
"prettier-plugin-packagejson": "^2.5.8",
4652
"typescript": "^5.7.3",
4753
"typescript-eslint": "^8.22.0",
4854
"vitest": "^3.0.4"
4955
},
50-
"keywords": [
51-
"astro",
52-
"astro-content-loader",
53-
"astro-loader",
54-
"pocketbase",
55-
"withastro"
56-
]
56+
"peerDependencies": {
57+
"astro": "^5.0.0"
58+
}
5759
}

test/utils/slugify.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, test, assert } from "vitest";
1+
import { assert, describe, test } from "vitest";
22
import { slugify } from "../../src/utils/slugify";
33

44
describe("slugify", () => {

0 commit comments

Comments
 (0)