Skip to content

Commit 99e1f63

Browse files
authored
chore: pin prettier to version 3.4.2
2 parents 4af06de + 25c2183 commit 99e1f63

File tree

5 files changed

+32
-21
lines changed

5 files changed

+32
-21
lines changed

.git-blame-ignore-revs

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Prettier 3.4.2
2+
9b0340a09276f93c054d705d1b9a5f24cc5dbc97

.github/workflows/build.yaml

+12-4
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,25 @@ concurrency:
2323

2424
jobs:
2525
prettier:
26-
name: Format with Prettier
26+
name: Run prettier check
2727
runs-on: ubuntu-22.04
2828
timeout-minutes: 5
2929
steps:
3030
- name: Checkout repo
3131
uses: actions/checkout@v4
3232

33-
- name: Run prettier with actionsx/prettier
34-
uses: actionsx/prettier@v3
33+
- name: Install Node.js
34+
uses: actions/setup-node@v4
3535
with:
36-
args: --check --log-level=warn .
36+
node-version-file: .node-version
37+
cache: npm
38+
cache-dependency-path: |
39+
package-lock.json
40+
test/package-lock.json
41+
42+
- run: SKIP_SUBMODULE_DEPS=1 npm ci
43+
44+
- run: npx prettier --check .
3745

3846
doctoc:
3947
name: Doctoc markdown files

package-lock.json

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"eslint-plugin-import": "^2.28.1",
6262
"eslint-plugin-prettier": "^5.0.0",
6363
"globals": "^15.10.0",
64-
"prettier": "^3.0.3",
64+
"prettier": "3.4.2",
6565
"prettier-plugin-sh": "^0.14.0",
6666
"ts-node": "^10.9.1",
6767
"typescript": "^5.6.2",

src/node/cli.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -118,18 +118,18 @@ interface Option<T> {
118118
type OptionType<T> = T extends boolean
119119
? "boolean"
120120
: T extends OptionalString
121-
? typeof OptionalString
122-
: T extends LogLevel
123-
? typeof LogLevel
124-
: T extends AuthType
125-
? typeof AuthType
126-
: T extends number
127-
? "number"
128-
: T extends string
129-
? "string"
130-
: T extends string[]
131-
? "string[]"
132-
: "unknown"
121+
? typeof OptionalString
122+
: T extends LogLevel
123+
? typeof LogLevel
124+
: T extends AuthType
125+
? typeof AuthType
126+
: T extends number
127+
? "number"
128+
: T extends string
129+
? "string"
130+
: T extends string[]
131+
? "string[]"
132+
: "unknown"
133133

134134
export type Options<T> = {
135135
[P in keyof T]: Option<OptionType<T[P]>>

0 commit comments

Comments
 (0)