Skip to content

Commit bd9e5d9

Browse files
authored
chore(prettier): add pnpm prettignore and format (#696)
* chore(prettier): add pnpm prettignore and format * fix(husky): add missing file format
1 parent f7d69f0 commit bd9e5d9

File tree

236 files changed

+920
-484
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+920
-484
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
3031

3132
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
3638

3739
**Additional context**
3840
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/custom.md

-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@ about: Describe this issue template's purpose here.
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
9-
10-

.github/ISSUE_TEMPLATE/feature_request.md

-1
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.**

.github/renovate.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"enabledManagers": [ "github-actions", "npm"],
2+
"enabledManagers": ["github-actions", "npm"],
33
"extends": ["config:base", ":combinePatchMinorReleases"],
44
"assignees": ["team:console"],
55
"assigneesSampleSize": 1,

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist/
44

55
# Specific to prettier
66
package.json
7+
CHANGELOG.md

CODE_OF_CONDUCT.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ scaleway-lib is a set of NPM packages used at Scaleway.
6666
![npm](https://img.shields.io/npm/v/@scaleway/use-query-params)
6767

6868
- [`@scaleway/use-segment`](./packages/use-segment/README.md):
69-
A tiny hooks to handle segment events.
69+
A tiny hooks to handle segment events.
7070

7171
![npm](https://img.shields.io/npm/dm/@scaleway/use-segment)
7272
![npm bundle size](https://img.shields.io/bundlephobia/min/@scaleway/use-segment)

babel.config.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2-
"presets": ["@babel/preset-env", "@babel/preset-react", ["@babel/preset-typescript", { "allowDeclareFields": true }]],
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-react",
5+
["@babel/preset-typescript", { "allowDeclareFields": true }]
6+
],
37
"plugins": ["@babel/plugin-transform-runtime"]
48
}

package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"build": "lerna exec --stream --ignore @scaleway/eslint-config-react --ignore @scaleway/countries -- rollup -c ../../rollup.config.mjs",
4646
"build:profile": "cross-env PROFILE=true pnpm run build",
4747
"commit": "npx git-cz -a",
48+
"format": "prettier --write '**/*.{ts,tsx,js,json,md,mdx}'",
4849
"test": "TZ=UTC jest",
4950
"test:watch": "pnpm run test -- --watch",
5051
"test:coverage": "pnpm run test -- --coverage",
@@ -56,9 +57,15 @@
5657
]
5758
},
5859
"lint-staged": {
59-
"*.js": [
60+
"*.(j|t)s?(x)": [
6061
"prettier --write",
6162
"eslint --fix"
63+
],
64+
"*.json": [
65+
"prettier --write"
66+
],
67+
"*.mdx": [
68+
"prettier --write"
6269
]
6370
},
6471
"config": {

packages/countries/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ console.log(frenchSubdivisions) // => [{ "code": "FR-01", "country_code": "FR",
2828
This package is generated manually from a pypi library [pycountry](https://pypi.org/project/pycountry/)
2929

3030
To update the database, first make sure that you have:
31+
3132
- [python](https://www.python.org) >= 3.0
3233
- [poetry](https://python-poetry.org) >= 1.0
3334

packages/countries/countries.d.ts

+239-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,239 @@
1-
export type AvailableCountries = 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MK' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PL' | 'PT' | 'PR' | 'QA' | 'RO' | 'RU' | 'RW' | 'RE' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'SS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'YE' | 'ZM' | 'ZW'
1+
export type AvailableCountries =
2+
| 'AF'
3+
| 'AX'
4+
| 'AL'
5+
| 'DZ'
6+
| 'AS'
7+
| 'AD'
8+
| 'AO'
9+
| 'AI'
10+
| 'AG'
11+
| 'AR'
12+
| 'AM'
13+
| 'AW'
14+
| 'AU'
15+
| 'AT'
16+
| 'AZ'
17+
| 'BS'
18+
| 'BH'
19+
| 'BD'
20+
| 'BB'
21+
| 'BY'
22+
| 'BE'
23+
| 'BZ'
24+
| 'BJ'
25+
| 'BM'
26+
| 'BT'
27+
| 'BO'
28+
| 'BA'
29+
| 'BW'
30+
| 'BR'
31+
| 'IO'
32+
| 'BN'
33+
| 'BG'
34+
| 'BF'
35+
| 'BI'
36+
| 'KH'
37+
| 'CM'
38+
| 'CA'
39+
| 'CV'
40+
| 'KY'
41+
| 'CF'
42+
| 'TD'
43+
| 'CL'
44+
| 'CN'
45+
| 'CX'
46+
| 'CC'
47+
| 'CO'
48+
| 'KM'
49+
| 'CG'
50+
| 'CD'
51+
| 'CK'
52+
| 'CR'
53+
| 'CI'
54+
| 'HR'
55+
| 'CU'
56+
| 'CY'
57+
| 'CZ'
58+
| 'DK'
59+
| 'DJ'
60+
| 'DM'
61+
| 'DO'
62+
| 'EC'
63+
| 'EG'
64+
| 'SV'
65+
| 'GQ'
66+
| 'ER'
67+
| 'EE'
68+
| 'ET'
69+
| 'FK'
70+
| 'FO'
71+
| 'FJ'
72+
| 'FI'
73+
| 'FR'
74+
| 'GF'
75+
| 'PF'
76+
| 'GA'
77+
| 'GM'
78+
| 'GE'
79+
| 'DE'
80+
| 'GH'
81+
| 'GI'
82+
| 'GR'
83+
| 'GL'
84+
| 'GD'
85+
| 'GP'
86+
| 'GU'
87+
| 'GT'
88+
| 'GG'
89+
| 'GN'
90+
| 'GW'
91+
| 'GY'
92+
| 'HT'
93+
| 'VA'
94+
| 'HN'
95+
| 'HK'
96+
| 'HU'
97+
| 'IS'
98+
| 'IN'
99+
| 'ID'
100+
| 'IR'
101+
| 'IQ'
102+
| 'IE'
103+
| 'IM'
104+
| 'IL'
105+
| 'IT'
106+
| 'JM'
107+
| 'JP'
108+
| 'JE'
109+
| 'JO'
110+
| 'KZ'
111+
| 'KE'
112+
| 'KI'
113+
| 'KP'
114+
| 'KR'
115+
| 'KW'
116+
| 'KG'
117+
| 'LA'
118+
| 'LV'
119+
| 'LB'
120+
| 'LS'
121+
| 'LR'
122+
| 'LY'
123+
| 'LI'
124+
| 'LT'
125+
| 'LU'
126+
| 'MO'
127+
| 'MK'
128+
| 'MG'
129+
| 'MW'
130+
| 'MY'
131+
| 'MV'
132+
| 'ML'
133+
| 'MT'
134+
| 'MH'
135+
| 'MQ'
136+
| 'MR'
137+
| 'MU'
138+
| 'YT'
139+
| 'MX'
140+
| 'FM'
141+
| 'MD'
142+
| 'MC'
143+
| 'MN'
144+
| 'ME'
145+
| 'MS'
146+
| 'MA'
147+
| 'MZ'
148+
| 'MM'
149+
| 'NA'
150+
| 'NR'
151+
| 'NP'
152+
| 'NL'
153+
| 'NC'
154+
| 'NZ'
155+
| 'NI'
156+
| 'NE'
157+
| 'NG'
158+
| 'NU'
159+
| 'NF'
160+
| 'MP'
161+
| 'NO'
162+
| 'OM'
163+
| 'PK'
164+
| 'PW'
165+
| 'PS'
166+
| 'PA'
167+
| 'PG'
168+
| 'PY'
169+
| 'PE'
170+
| 'PH'
171+
| 'PL'
172+
| 'PT'
173+
| 'PR'
174+
| 'QA'
175+
| 'RO'
176+
| 'RU'
177+
| 'RW'
178+
| 'RE'
179+
| 'BL'
180+
| 'SH'
181+
| 'KN'
182+
| 'LC'
183+
| 'MF'
184+
| 'PM'
185+
| 'VC'
186+
| 'WS'
187+
| 'SM'
188+
| 'ST'
189+
| 'SA'
190+
| 'SN'
191+
| 'RS'
192+
| 'SC'
193+
| 'SL'
194+
| 'SG'
195+
| 'SK'
196+
| 'SI'
197+
| 'SB'
198+
| 'SO'
199+
| 'ZA'
200+
| 'SS'
201+
| 'ES'
202+
| 'LK'
203+
| 'SD'
204+
| 'SR'
205+
| 'SJ'
206+
| 'SZ'
207+
| 'SE'
208+
| 'CH'
209+
| 'SY'
210+
| 'TW'
211+
| 'TJ'
212+
| 'TZ'
213+
| 'TH'
214+
| 'TL'
215+
| 'TG'
216+
| 'TK'
217+
| 'TO'
218+
| 'TT'
219+
| 'TN'
220+
| 'TR'
221+
| 'TM'
222+
| 'TC'
223+
| 'TV'
224+
| 'UG'
225+
| 'UA'
226+
| 'AE'
227+
| 'GB'
228+
| 'US'
229+
| 'UY'
230+
| 'UZ'
231+
| 'VU'
232+
| 'VE'
233+
| 'VN'
234+
| 'VG'
235+
| 'VI'
236+
| 'WF'
237+
| 'YE'
238+
| 'ZM'
239+
| 'ZW'

0 commit comments

Comments
 (0)