Skip to content

Commit b351334

Browse files
authored
prettier fix (#23)
* only lint prettier changelog on version * run prettier write retroactively
1 parent e432d1c commit b351334

File tree

12 files changed

+2713
-1380
lines changed

12 files changed

+2713
-1380
lines changed

dev/geojson.json

+412-412
Large diffs are not rendered by default.

docs/modules/index.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ provides a JSON schema enabled autocomplete extension for codemirror
6161

6262
#### Defined in
6363

64-
[json-completion.ts:820](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/json-completion.ts#L820)
64+
[json-completion.ts:820](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/json-completion.ts#L820)
6565

6666
---
6767

@@ -98,7 +98,7 @@ provides a JSON schema enabled tooltip extension for codemirror
9898

9999
#### Defined in
100100

101-
[json-hover.ts:24](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/json-hover.ts#L24)
101+
[json-hover.ts:24](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/json-hover.ts#L24)
102102

103103
---
104104

@@ -133,7 +133,7 @@ Helper for simpler class instantiaton
133133

134134
#### Defined in
135135

136-
[json-validation.ts:35](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/json-validation.ts#L35)
136+
[json-validation.ts:35](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/json-validation.ts#L35)
137137

138138
## Utilities
139139

@@ -160,7 +160,7 @@ this could be useful for other things later!
160160

161161
#### Defined in
162162

163-
[utils/jsonPointers.ts:37](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/utils/jsonPointers.ts#L37)
163+
[utils/jsonPointers.ts:37](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/utils/jsonPointers.ts#L37)
164164

165165
---
166166

@@ -183,7 +183,7 @@ retrieve a Map of all the json pointers in a document
183183

184184
#### Defined in
185185

186-
[utils/jsonPointers.ts:98](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/utils/jsonPointers.ts#L98)
186+
[utils/jsonPointers.ts:98](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/utils/jsonPointers.ts#L98)
187187

188188
---
189189

@@ -208,7 +208,7 @@ retrieve a JSON pointer for a given position in the editor
208208

209209
#### Defined in
210210

211-
[utils/jsonPointers.ts:81](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/utils/jsonPointers.ts#L81)
211+
[utils/jsonPointers.ts:81](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/utils/jsonPointers.ts#L81)
212212

213213
---
214214

@@ -235,7 +235,7 @@ Mimics the behavior of `json-source-map`'s `parseJSONDocument` function using co
235235

236236
#### Defined in
237237

238-
[utils/parseJSONDocument.ts:23](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/utils/parseJSONDocument.ts#L23)
238+
[utils/parseJSONDocument.ts:23](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/utils/parseJSONDocument.ts#L23)
239239

240240
---
241241

@@ -262,7 +262,7 @@ Return parsed data and json pointers for a given codemirror EditorState
262262

263263
#### Defined in
264264

265-
[utils/parseJSONDocument.ts:9](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/utils/parseJSONDocument.ts#L9)
265+
[utils/parseJSONDocument.ts:9](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/utils/parseJSONDocument.ts#L9)
266266

267267
## Type Aliases
268268

@@ -279,7 +279,7 @@ Return parsed data and json pointers for a given codemirror EditorState
279279

280280
#### Defined in
281281

282-
[json-hover.ts:9](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/json-hover.ts#L9)
282+
[json-hover.ts:9](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/json-hover.ts#L9)
283283

284284
---
285285

@@ -289,7 +289,7 @@ Return parsed data and json pointers for a given codemirror EditorState
289289

290290
#### Defined in
291291

292-
[json-hover.ts:11](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/json-hover.ts#L11)
292+
[json-hover.ts:11](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/json-hover.ts#L11)
293293

294294
---
295295

@@ -306,7 +306,7 @@ Return parsed data and json pointers for a given codemirror EditorState
306306

307307
#### Defined in
308308

309-
[json-hover.ts:13](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/json-hover.ts#L13)
309+
[json-hover.ts:13](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/json-hover.ts#L13)
310310

311311
---
312312

@@ -316,7 +316,7 @@ Return parsed data and json pointers for a given codemirror EditorState
316316

317317
#### Defined in
318318

319-
[utils/jsonPointers.ts:8](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/utils/jsonPointers.ts#L8)
319+
[utils/jsonPointers.ts:8](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/utils/jsonPointers.ts#L8)
320320

321321
---
322322

@@ -333,7 +333,7 @@ Return parsed data and json pointers for a given codemirror EditorState
333333

334334
#### Defined in
335335

336-
[types.ts:3](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/types.ts#L3)
336+
[types.ts:4](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/types.ts#L4)
337337

338338
---
339339

@@ -352,7 +352,7 @@ Return parsed data and json pointers for a given codemirror EditorState
352352

353353
#### Defined in
354354

355-
[types.ts:8](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/types.ts#L8)
355+
[types.ts:9](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/types.ts#L9)
356356

357357
---
358358

@@ -362,7 +362,7 @@ Return parsed data and json pointers for a given codemirror EditorState
362362

363363
#### Defined in
364364

365-
[types.ts:15](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/types.ts#L15)
365+
[types.ts:16](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/types.ts#L16)
366366

367367
---
368368

@@ -379,4 +379,4 @@ Return parsed data and json pointers for a given codemirror EditorState
379379

380380
#### Defined in
381381

382-
[json-validation.ts:24](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/json-validation.ts#L24)
382+
[json-validation.ts:24](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/json-validation.ts#L24)

docs/modules/json5.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Instantiates a JSONHover instance with the JSON5 mode
4949

5050
#### Defined in
5151

52-
[json5-hover.ts:11](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/json5-hover.ts#L11)
52+
[json5-hover.ts:11](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/json5-hover.ts#L11)
5353

5454
---
5555

@@ -84,7 +84,7 @@ Instantiates a JSONValidation instance with the JSON5 mode
8484

8585
#### Defined in
8686

87-
[json5-validation.ts:10](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/json5-validation.ts#L10)
87+
[json5-validation.ts:10](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/json5-validation.ts#L10)
8888

8989
## Utilities
9090

@@ -111,7 +111,7 @@ Mimics the behavior of `json-source-map`'s `parseJSONDocument` function, for jso
111111

112112
#### Defined in
113113

114-
[utils/parseJSON5Document.ts:28](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/utils/parseJSON5Document.ts#L28)
114+
[utils/parseJSON5Document.ts:28](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/utils/parseJSON5Document.ts#L28)
115115

116116
---
117117

@@ -138,4 +138,4 @@ Return parsed data and json5 pointers for a given codemirror EditorState
138138

139139
#### Defined in
140140

141-
[utils/parseJSON5Document.ts:14](https://github.com/acao/codemirror-json-schema/blob/3a578e9/src/utils/parseJSON5Document.ts#L14)
141+
[utils/parseJSON5Document.ts:14](https://github.com/acao/codemirror-json-schema/blob/924e0e4/src/utils/parseJSON5Document.ts#L14)

lefthook.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pre-commit:
99
commands:
1010
prettier:
1111
glob: "*.{js,ts,jsx,tsx,json,css,html,yml,mdx,md}"
12-
run: pnpm prettier --write {staged_files}
12+
run: pnpm prettier:write {staged_files}
1313
stage_fixed: true
1414
typedoc:
1515
run: pnpm typedoc && git add docs

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@
8585
"build": "tsc && vite build ./dev --outDir ../public --emptyOutDir && pnpm typedoc",
8686
"test": "vitest --dom",
8787
"test:coverage": "vitest run --dom --coverage",
88-
"version-packages": "changeset version && prettier --write .",
88+
"version-packages": "changeset version && pnpm prettier:write CHANGELOG.md",
8989
"release": "pnpm build && changeset publish",
90-
"typedoc": "typedoc --out docs src/index.ts src/json5.ts",
91-
"postinstall": "lefthook install"
90+
"typedoc": "typedoc --out docs src/index.ts src/json5.ts && pnpm prettier:write docs/**/*",
91+
"postinstall": "lefthook install",
92+
"prettier:write": "prettier --ignore-path .gitignore --write"
9293
}
9394
}

0 commit comments

Comments
 (0)