Skip to content

Commit f33e673

Browse files
chore(prettier): fix unformatted files 🤖 ✨ (#4340)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent aa76d94 commit f33e673

File tree

36 files changed

+255
-611
lines changed

36 files changed

+255
-611
lines changed

‎.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
8+
99
If you find a security vulnerability, do NOT open an issue. Email [[email protected]](mailto:[email protected]) instead.
1010

1111
**Describe the bug**
@@ -46,5 +46,5 @@ Add any other context about the problem here.
4646

4747
Any security issues should be submitted directly to [[email protected]](mailto:[email protected]). In order to determine whether you are dealing with a security issue, ask yourself these two questions:
4848

49-
* Can I access something that's not mine, or something I shouldn't have access to?
50-
* Can I disable something for other people? If the answer to either of those two questions are "yes", then you're probably dealing with a security issue. Note that even if you answer "no" to both questions, you may still be dealing with a security issue, so if you're unsure, just email us at [[email protected]](mailto:[email protected].
49+
- Can I access something that's not mine, or something I shouldn't have access to?
50+
- Can I disable something for other people? If the answer to either of those two questions are "yes", then you're probably dealing with a security issue. Note that even if you answer "no" to both questions, you may still be dealing with a security issue, so if you're unsure, just email us at [[email protected]](mailto:[email protected].

‎.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

‎CODE_OF_CONDUCT.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo
88

99
Examples of behavior that contributes to creating a positive environment include:
1010

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
14-
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
11+
- Using welcoming and inclusive language
12+
- Being respectful of differing viewpoints and experiences
13+
- Gracefully accepting constructive criticism
14+
- Focusing on what is best for the community
15+
- Showing empathy towards other community members
1616

1717
Examples of unacceptable behavior by participants include:
1818

19-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
* Trolling, insulting/derogatory comments, and personal or political attacks
21-
* Public or private harassment
22-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
* Other conduct which could reasonably be considered inappropriate in a professional setting
19+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
- Trolling, insulting/derogatory comments, and personal or political attacks
21+
- Public or private harassment
22+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
- Other conduct which could reasonably be considered inappropriate in a professional setting
2424

2525
## Our Responsibilities
2626

‎dev/starter-cra-studio/src/index.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
html, body, #root {
1+
html,
2+
body,
3+
#root {
24
margin: 0;
35
padding: 0;
46
height: 100%;

‎dev/starter-next-studio/reset.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
html, body, #__next {
1+
html,
2+
body,
3+
#__next {
24
margin: 0;
35
padding: 0;
46
height: 100%;

‎dev/test-next-studio/app/global.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
html, body {
1+
html,
2+
body {
23
margin: 0;
34
padding: 0;
45
}

‎dev/test-next-studio/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"version": "3.8.2",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev",
76
"build": "next build",
8-
"start": "next start",
9-
"lint": "next lint"
7+
"dev": "next dev",
8+
"lint": "next lint",
9+
"start": "next start"
1010
},
1111
"dependencies": {
1212
"next": "^13.2.4",
Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "esnext",
4-
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
8-
],
4+
"lib": ["dom", "dom.iterable", "esnext"],
95
"allowJs": true,
106
"skipLibCheck": true,
117
"strict": false,
@@ -25,13 +21,6 @@
2521
],
2622
"strictNullChecks": true
2723
},
28-
"include": [
29-
"next-env.d.ts",
30-
"**/*.ts",
31-
"**/*.tsx",
32-
".next/types/**/*.ts"
33-
],
34-
"exclude": [
35-
"node_modules"
36-
]
24+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
25+
"exclude": ["node_modules"]
3726
}

‎packages/@sanity/block-tools/changelog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
2018-12-13: BREAKING: Changed params for `htmlToBlocks` from `(html, options={blockContentType})` to `(html, blockContentType, options={}` as blockContentType is now required.
1+
2018-12-13: BREAKING: Changed params for `htmlToBlocks` from `(html, options={blockContentType})` to `(html, blockContentType, options={}` as blockContentType is now required.
22

33
2019-10-16: `normalizeBlock` now takes a second parameter `options`. You can send in `options.allowedDecorators` which are the allowed decorator names. If you send in this, `normalizeBlock` will remove any span marks that are neither a decorator or exists in `block.markDefs`.
44

5-
2020-02-13: NEW: `htmlToBlocks` will not normalize all the blocks (give them a _key and merge sibling spans with same set of marks together)
5+
2020-02-13: NEW: `htmlToBlocks` will not normalize all the blocks (give them a \_key and merge sibling spans with same set of marks together)
66

77
2020-09-03: BREAKING: removed deprecated editor specific methods `blocksToEditorValue` and `editorValueToBlock`. Please use an older version if you need these.
88

‎packages/@sanity/block-tools/test/tests/HtmlDeserializer/annotations/output.json

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,19 @@
66
{
77
"_key": "randomKey30",
88
"_type": "span",
9-
"marks": [
10-
"randomKey0"
11-
],
9+
"marks": ["randomKey0"],
1210
"text": "I am a "
1311
},
1412
{
1513
"_key": "randomKey31",
1614
"_type": "span",
17-
"marks": [
18-
"randomKey0",
19-
"strong"
20-
],
15+
"marks": ["randomKey0", "strong"],
2116
"text": "strong"
2217
},
2318
{
2419
"_key": "randomKey32",
2520
"_type": "span",
26-
"marks": [
27-
"randomKey0"
28-
],
21+
"marks": ["randomKey0"],
2922
"text": " link"
3023
},
3124
{
@@ -37,18 +30,13 @@
3730
{
3831
"_key": "randomKey34",
3932
"_type": "span",
40-
"marks": [
41-
"em"
42-
],
33+
"marks": ["em"],
4334
"text": "and "
4435
},
4536
{
4637
"_key": "randomKey35",
4738
"_type": "span",
48-
"marks": [
49-
"em",
50-
"randomKey1"
51-
],
39+
"marks": ["em", "randomKey1"],
5240
"text": "I am a emphasized link"
5341
}
5442
],
@@ -73,9 +61,7 @@
7361
{
7462
"_key": "randomKey40",
7563
"_type": "span",
76-
"marks": [
77-
"randomKey2"
78-
],
64+
"marks": ["randomKey2"],
7965
"text": "I am a totally different link"
8066
}
8167
],
@@ -88,4 +74,4 @@
8874
],
8975
"style": "normal"
9076
}
91-
]
77+
]

‎packages/@sanity/block-tools/test/tests/HtmlDeserializer/blockTags/output.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@
111111
"markDefs": [],
112112
"style": "blockquote"
113113
}
114-
]
114+
]

‎packages/@sanity/block-tools/test/tests/HtmlDeserializer/codeBlock/output.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
{
77
"_key": "randomKey00",
88
"_type": "span",
9-
"marks": [
10-
"em"
11-
],
9+
"marks": ["em"],
1210
"text": "Hei"
1311
}
1412
],

‎packages/@sanity/block-tools/test/tests/HtmlDeserializer/complex/output.json

Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
},
2727
{
2828
"_type": "span",
29-
"marks": [
30-
"strong"
31-
],
29+
"marks": ["strong"],
3230
"text": "strong",
3331
"_key": "randomKey21"
3432
},
@@ -40,9 +38,7 @@
4038
},
4139
{
4240
"_type": "span",
43-
"marks": [
44-
"strong"
45-
],
41+
"marks": ["strong"],
4642
"text": "bold",
4743
"_key": "randomKey23"
4844
},
@@ -54,9 +50,7 @@
5450
},
5551
{
5652
"_type": "span",
57-
"marks": [
58-
"em"
59-
],
53+
"marks": ["em"],
6054
"text": "italic",
6155
"_key": "randomKey25"
6256
},
@@ -68,9 +62,7 @@
6862
},
6963
{
7064
"_type": "span",
71-
"marks": [
72-
"em"
73-
],
65+
"marks": ["em"],
7466
"text": "emphasis",
7567
"_key": "randomKey27"
7668
},
@@ -82,9 +74,7 @@
8274
},
8375
{
8476
"_type": "span",
85-
"marks": [
86-
"strike-through"
87-
],
77+
"marks": ["strike-through"],
8878
"text": " < del>",
8979
"_key": "randomKey29"
9080
},
@@ -96,9 +86,7 @@
9686
},
9787
{
9888
"_type": "span",
99-
"marks": [
100-
"strike-through"
101-
],
89+
"marks": ["strike-through"],
10290
"text": " < strike>",
10391
"_key": "randomKey211"
10492
},
@@ -110,9 +98,7 @@
11098
},
11199
{
112100
"_type": "span",
113-
"marks": [
114-
"strike-through"
115-
],
101+
"marks": ["strike-through"],
116102
"text": " < s>",
117103
"_key": "randomKey213"
118104
}
@@ -164,9 +150,7 @@
164150
},
165151
{
166152
"_type": "span",
167-
"marks": [
168-
"em"
169-
],
153+
"marks": ["em"],
170154
"text": "faktisk",
171155
"_key": "randomKey51"
172156
},
@@ -178,9 +162,7 @@
178162
},
179163
{
180164
"_type": "span",
181-
"marks": [
182-
"strong"
183-
],
165+
"marks": ["strong"],
184166
"text": "også",
185167
"_key": "randomKey53"
186168
}
@@ -232,9 +214,7 @@
232214
},
233215
{
234216
"_type": "span",
235-
"marks": [
236-
"em"
237-
],
217+
"marks": ["em"],
238218
"text": "faktisk",
239219
"_key": "randomKey81"
240220
},
@@ -246,9 +226,7 @@
246226
},
247227
{
248228
"_type": "span",
249-
"marks": [
250-
"strong"
251-
],
229+
"marks": ["strong"],
252230
"text": "også",
253231
"_key": "randomKey83"
254232
}
@@ -274,9 +252,7 @@
274252
},
275253
{
276254
"_type": "span",
277-
"marks": [
278-
"randomKey0"
279-
],
255+
"marks": ["randomKey0"],
280256
"text": "ser du at jeg er en lenke",
281257
"_key": "randomKey91"
282258
}

0 commit comments

Comments
 (0)