Skip to content

Commit ebca933

Browse files
authored
chore(ci): add prettier formatter (#2570)
Add prettier workflow Reformat files js, mjs, json, md & yml Remove eclint workflow Exclude auto-generated TOC contents
1 parent 74519cb commit ebca933

21 files changed

Lines changed: 239 additions & 174 deletions

.github/ISSUE_TEMPLATE/1-bug-report.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ Please fill in as much of the template below as you're able.
1111

1212
## Environment
1313

14-
* **Platform**:
15-
* **Docker Version**:
16-
* **Node.js Version**:
17-
* **Image Tag**:
14+
- **Platform**:
15+
- **Docker Version**:
16+
- **Node.js Version**:
17+
- **Image Tag**:
1818

1919
## Expected Behavior
2020

@@ -45,4 +45,3 @@ Tell us about the steps you took to encounter this bug with the image.
4545
<!--
4646
Tell us anything else you think we should know.
4747
-->
48-

.github/ISSUE_TEMPLATE/2-feature-request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ Please describe the desired behavior.
2626
<!--
2727
Please describe alternative solutions or features you have considered.
2828
-->
29-

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ If you're unsure about any of these, don't hesitate to ask. We're here to help!
5151
- [ ] I have updated the documentation accordingly.
5252
- [ ] I have read the **CONTRIBUTING.md** document.
5353
- [ ] All new and existing tests passed.
54-

.github/dependabot.yml

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

.github/workflows/automatic-updates.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Automatically update Docker image versions
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: "*/15 * * * *"
6+
- cron: '*/15 * * * *'
77

88
jobs:
99
build:
@@ -29,11 +29,11 @@ jobs:
2929
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
3030
with:
3131
token: ${{ secrets.GH_API_TOKEN }}
32-
author: "Node.js GitHub Bot <nodejs-github-bot@users.noreply.github.com>"
32+
author: 'Node.js GitHub Bot <nodejs-github-bot@users.noreply.github.com>'
3333
branch: update-branch
3434
base: main
35-
commit-message: "feat: Node.js ${{ steps.updt.outputs.result }}"
36-
title: "feat: Node.js ${{ steps.updt.outputs.result }}"
35+
commit-message: 'feat: Node.js ${{ steps.updt.outputs.result }}'
36+
title: 'feat: Node.js ${{ steps.updt.outputs.result }}'
3737
delete-branch: true
3838
team-reviewers: |
3939
nodejs/docker

.github/workflows/build-test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ name: build-test
33
on:
44
push:
55
paths:
6-
- "**/Dockerfile"
7-
- "**/docker-entrypoint.sh"
6+
- '**/Dockerfile'
7+
- '**/docker-entrypoint.sh'
88
- genMatrix.js
9-
- ".github/workflows/build-test.yml"
9+
- '.github/workflows/build-test.yml'
1010

1111
pull_request:
1212
paths:
13-
- "**/Dockerfile"
14-
- "**/docker-entrypoint.sh"
13+
- '**/Dockerfile'
14+
- '**/docker-entrypoint.sh'
1515
- genMatrix.js
16-
- ".github/workflows/build-test.yml"
16+
- '.github/workflows/build-test.yml'
1717

1818
jobs:
1919
gen-matrix:

.github/workflows/doctoc.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Check generated TOCs
33
on:
44
pull_request:
55
paths:
6-
- "README.md"
7-
- "docs/BestPractices.md"
8-
- ".github/workflows/doctoc.yml"
6+
- 'README.md'
7+
- 'docs/BestPractices.md'
8+
- '.github/workflows/doctoc.yml'
99

1010
permissions:
1111
contents: read

.github/workflows/markdown-link-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Check Markdown links
33
on:
44
pull_request:
55
paths:
6-
- "**/*.md"
7-
- "markdown_link_check_config.json"
8-
- ".github/workflows/markdown-link-check.yml"
6+
- '**/*.md'
7+
- 'markdown_link_check_config.json'
8+
- '.github/workflows/markdown-link-check.yml'
99

1010
permissions:
1111
contents: read

.github/workflows/missing-checksum.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Check Alpine CHECKSUM
33
on:
44
pull_request:
55
paths:
6-
- ".github/workflows/missing-checksum.yml"
7-
- "**/alpine*/Dockerfile"
6+
- '.github/workflows/missing-checksum.yml'
7+
- '**/alpine*/Dockerfile'
88

99
permissions:
1010
contents: read

.github/workflows/official-pr.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ on:
66
- closed
77

88
paths:
9-
- ".github/workflows/official-pr.yml"
10-
- "**/Dockerfile"
11-
- "**/docker-entrypoint.sh"
12-
- "versions.json"
13-
- "stackbrew.js"
9+
- '.github/workflows/official-pr.yml'
10+
- '**/Dockerfile'
11+
- '**/docker-entrypoint.sh'
12+
- 'versions.json'
13+
- 'stackbrew.js'
1414

1515
jobs:
1616
pr:
@@ -46,8 +46,8 @@ jobs:
4646
push-to-fork: nodejs/official-images
4747
path: official-images
4848
branch: node
49-
commit-message: "Node: ${{ github.event.pull_request.title }}"
50-
title: "Node: ${{ github.event.pull_request.title }}"
49+
commit-message: 'Node: ${{ github.event.pull_request.title }}'
50+
title: 'Node: ${{ github.event.pull_request.title }}'
5151
body: |
5252
Pull Request: ${{ github.event.pull_request.html_url }}
5353
@PeterDaveHello @SimenB @nschonni @rafaelgss @mcollina

0 commit comments

Comments
 (0)