Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 304a1e2

Browse files
lyqhtnschonni
andauthored
feat: prettier to format yml files (#2868)
* feat: prettier to format yml files * ci: add format-check call for PRs Signed-off-by: Estee Tey Siew Wen <estee.tsw@gmail.com> Signed-off-by: Nick Schonning <nschonni@gmail.com> Co-authored-by: Nick Schonning <nschonni@gmail.com>
1 parent 1883802 commit 304a1e2

File tree

6 files changed

+25
-23
lines changed

6 files changed

+25
-23
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,36 @@ body:
1111
for us to fix it when you attach a screenshot as well.
1212
- type: input
1313
attributes:
14-
label: "URL:"
14+
label: 'URL:'
1515
description: The URL of the page you are reporting an issue on.
1616
placeholder: https://nodejs.dev
1717
validations:
1818
required: true
1919
- type: input
2020
attributes:
21-
label: "Browser Name:"
21+
label: 'Browser Name:'
2222
description: What kind of browser are you using?
2323
placeholder: Chrome
2424
validations:
2525
required: true
2626
- type: input
2727
attributes:
28-
label: "Browser Version:"
28+
label: 'Browser Version:'
2929
description: What version of browser are you using?
30-
placeholder: "103.0.5060.134"
30+
placeholder: '103.0.5060.134'
3131
validations:
3232
required: true
3333
- type: input
3434
attributes:
35-
label: "Operating System:"
36-
description:
37-
What operating system are you using
35+
label: 'Operating System:'
36+
description: What operating system are you using
3837
(Write it in full, with version number)?
39-
placeholder: "Windows 10, 21H2, 19044.1826"
38+
placeholder: 'Windows 10, 21H2, 19044.1826'
4039
validations:
4140
required: true
4241
- type: textarea
4342
attributes:
44-
label: "How to reproduce the issue:"
43+
label: 'How to reproduce the issue:'
4544
placeholder: |
4645
1. What I did.
4746
2. What I expected to happen.

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ body:
1010
something related to your suggestion.
1111
- type: textarea
1212
attributes:
13-
label: "Enter your suggestions in details:"
13+
label: 'Enter your suggestions in details:'
1414
placeholder: |
1515
1. What I expected to happen.
1616
2. Your reason (if possible, images or videos are welcome).

.github/ISSUE_TEMPLATE/i18n.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ body:
1010
to create a new localization team.
1111
- type: textarea
1212
attributes:
13-
label: "Enter your issue on localizations here:"
13+
label: 'Enter your issue on localizations here:'
1414
placeholder: |
1515
1. The name of the team (e.g: nodejs/node-cn).
1616
2. Any problems to report or you want to create it?

.github/dependabot.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
version: 2
22
updates:
3-
- package-ecosystem: github-actions
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 99
3+
- package-ecosystem: github-actions
4+
directory: '/'
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 99
88

9-
- package-ecosystem: npm
10-
directory: "/"
11-
schedule:
12-
interval: monthly
13-
open-pull-requests-limit: 99
9+
- package-ecosystem: npm
10+
directory: '/'
11+
schedule:
12+
interval: monthly
13+
open-pull-requests-limit: 99

.github/workflows/pull-request.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
- name: Install NPM packages
2222
run: npm ci
2323

24+
- name: Run Format Check
25+
run: npm run format-check
26+
2427
- name: Run Lint Checker
2528
run: npm run lint
2629

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
"build": "gatsby build",
7474
"build-ci": "gatsby build --prefix-paths",
7575
"start": "gatsby develop",
76-
"format": "prettier --write \"**/*.{ts,tsx,js,scss}\" && npm run lint:fix",
77-
"format-check": "prettier --check \"**/*.{ts,tsx,js,scss}\"",
76+
"format": "prettier --write \"**/*.{ts,tsx,js,scss,yml}\" && npm run lint:fix",
77+
"format-check": "prettier --check \"**/*.{ts,tsx,js,scss,yml}\"",
7878
"update-snapshot": "npm run test -- --updateSnapshot",
7979
"pretest": "npm run format-check && npm run lint",
8080
"test": "jest",

0 commit comments

Comments
 (0)