Skip to content

Commit 9463ab9

Browse files
committed
Fix format commands
1 parent a7a41eb commit 9463ab9

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
"scripts": {
5555
"build": "yarn build:packages",
5656
"test": "yarn test:packages",
57+
"format": "prettier --write .",
58+
"format-check": "prettier --check .",
5759
"lint": "eslint --flag unstable_ts_config -c eslint.config.mts",
5860
"lint-fix": "eslint --flag unstable_ts_config -c eslint.config.mts --fix",
5961
"install": "yarn build-configs",

packages/rtk-codemods/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"name": "@reduxjs/rtk-codemods",
33
"version": "0.1.2",
44
"scripts": {
5+
"format": "prettier --config prettier.config.mjs --write .",
6+
"format-check": "prettier --config prettier.config.mjs --check .",
57
"lint": "eslint --flag unstable_ts_config -c eslint.config.mts",
68
"lint-fix": "eslint --flag unstable_ts_config -c eslint.config.mts --fix",
79
"test": "vitest --run",

packages/rtk-query-codegen-openapi/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"build": "yarn clean && tsup && chmod +x lib/bin/cli.mjs",
3636
"clean": "rimraf lib",
3737
"prepack": "yarn build && chmod +x lib/bin/cli.mjs",
38-
"format": "prettier --write \"src/**/*.ts\"",
38+
"format": "prettier --config prettier.config.mjs --write .",
39+
"format-check": "prettier --config prettier.config.mjs --check .",
3940
"test:update": "vitest --run --update",
4041
"test:update:enum": "lib/bin/cli.mjs test/config.example.enum.ts",
4142
"test": "vitest --run --typecheck",

packages/toolkit/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
"run-build": "tsup",
9999
"build": "yarn clean && yarn run-build && tsx scripts/fixUniqueSymbolExports.mts",
100100
"build-only": "yarn clean && yarn run-build",
101-
"format": "prettier --write \"(src|examples)/**/*.{ts,tsx}\" \"**/*.md\"",
102-
"format:check": "prettier --list-different \"(src|examples)/**/*.{ts,tsx}\" \"docs/*/**.md\"",
101+
"format": "prettier --config prettier.config.mjs --write .",
102+
"format-check": "prettier --config prettier.config.mjs --check .",
103103
"lint": "eslint --flag unstable_ts_config -c eslint.config.mts",
104104
"lint-fix": "eslint --flag unstable_ts_config -c eslint.config.mts --fix",
105105
"test": "vitest --typecheck --run ",

0 commit comments

Comments
 (0)