Skip to content

Commit 47298b6

Browse files
ci: update prettier config (#345)
* ci: update prettier config * Update prettier
1 parent 25daa27 commit 47298b6

File tree

3 files changed

+19
-22
lines changed

3 files changed

+19
-22
lines changed

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Tools
2323
uses: tanstack/config/.github/setup@main
2424
- name: Fix formatting
25-
run: pnpm prettier:write
25+
run: pnpm format
2626
# - name: Regenerate docs
2727
# run: pnpm docs:generate
2828
- name: Apply fixes

package.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,26 @@
1313
"build:core": "nx build @tanstack/devtools && size-limit",
1414
"changeset": "changeset",
1515
"changeset:publish": "changeset publish",
16-
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm prettier:write",
16+
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm format",
1717
"clean": "find . -name 'dist' -type d -prune -exec rm -rf {} +",
1818
"clean:node_modules": "find . -name 'node_modules' -type d -prune -exec rm -rf {} +",
1919
"clean:all": "pnpm run clean && pnpm run clean:node_modules",
2020
"dev": "pnpm run watch",
21-
"format": "pnpm run prettier:write",
21+
"format": "prettier --experimental-cli --ignore-unknown '**/*' --write",
2222
"generate-docs": "node scripts/generate-docs.ts",
2323
"lint:fix": "nx affected --target=lint:fix --exclude=examples/**",
2424
"lint:fix:all": "pnpm run format && nx run-many --targets=lint --fix",
2525
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...'); process.exit(1)}\" || npx -y only-allow pnpm",
26-
"prettier": "prettier --ignore-unknown '**/*'",
27-
"prettier:write": "pnpm run prettier --write",
2826
"size": "size-limit",
2927
"test": "pnpm run test:ci",
3028
"test:build": "nx affected --target=test:build --exclude=examples/**",
31-
"test:ci": "nx run-many --targets=test:format,test:eslint,test:sherif,test:knip,test:lib,test:types,test:build,build",
29+
"test:ci": "nx run-many --targets=test:eslint,test:sherif,test:knip,test:lib,test:types,test:build,build",
3230
"test:docs": "node scripts/verify-links.ts",
3331
"test:eslint": "nx affected --target=test:eslint --exclude=examples/**",
34-
"test:format": "pnpm run prettier --check",
3532
"test:knip": "knip",
3633
"test:lib": "nx affected --targets=test:lib --exclude=examples/**",
3734
"test:lib:dev": "pnpm test:lib && nx watch --all -- pnpm test:lib",
38-
"test:pr": "nx affected --targets=test:format,test:eslint,test:sherif,test:knip,test:lib,test:types,test:build,build",
35+
"test:pr": "nx affected --targets=test:eslint,test:sherif,test:knip,test:lib,test:types,test:build,build",
3936
"test:sherif": "sherif",
4037
"test:types": "nx affected --targets=test:types --exclude=examples/**",
4138
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all"
@@ -74,8 +71,8 @@
7471
"markdown-link-extractor": "^4.0.2",
7572
"nx": "22.1.3",
7673
"premove": "^4.0.0",
77-
"prettier": "^3.6.2",
78-
"prettier-plugin-svelte": "^3.4.0",
74+
"prettier": "^3.8.1",
75+
"prettier-plugin-svelte": "^3.4.1",
7976
"publint": "^0.3.13",
8077
"sherif": "^1.7.0",
8178
"size-limit": "^11.2.0",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)