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

Lines changed: 10 additions & 8 deletions
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

Lines changed: 0 additions & 3 deletions
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

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

.github/renovate.json

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 13 additions & 13 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 5 additions & 1 deletion
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

Lines changed: 8 additions & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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

0 commit comments

Comments
 (0)