Skip to content

Commit 98e9f57

Browse files
committed
Prettier pass
1 parent 41dec4d commit 98e9f57

Some content is hidden

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

85 files changed

+4391
-1911
lines changed

.commitlintrc.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"extends": [
3-
"@commitlint/config-conventional"
4-
]
5-
}
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.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: 'Status: Triage, Type: Bug / Error'
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 '....'
@@ -27,15 +27,17 @@ If applicable, add screenshots to help explain your problem.
2727
If applicable, add the code sample or a link to the [live editor](https://mermaid.live).
2828

2929
**Desktop (please complete the following information):**
30-
- OS: [e.g. iOS]
31-
- Browser [e.g. chrome, safari]
32-
- Version [e.g. 22]
30+
31+
- OS: [e.g. iOS]
32+
- Browser [e.g. chrome, safari]
33+
- Version [e.g. 22]
3334

3435
**Smartphone (please complete the following information):**
35-
- Device: [e.g. iPhone6]
36-
- OS: [e.g. iOS8.1]
37-
- Browser [e.g. stock browser, safari]
38-
- Version [e.g. 22]
36+
37+
- Device: [e.g. iPhone6]
38+
- OS: [e.g. iOS8.1]
39+
- Browser [e.g. stock browser, safari]
40+
- Version [e.g. 22]
3941

4042
**Additional context**
4143
Add any other context about the problem here.

.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: 'Status: Triage, Type: Enhancement'
66
assignees: ''
7-
87
---
98

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

.github/ISSUE_TEMPLATE/question.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ about: Get some help from the community.
44
title: ''
55
labels: 'Help wanted!, Type: Other'
66
assignees: ''
7-
87
---
98

109
## Help us help you!
10+
1111
You want an answer. Here are some ways to get it quicker:
12-
* Use a clear and concise title.
13-
* Try to pose a clear and concise question.
14-
* Include as much, or as little, code as necessary.
15-
* Don't be shy to give us some screenshots, if it helps!
12+
13+
- Use a clear and concise title.
14+
- Try to pose a clear and concise question.
15+
- Include as much, or as little, code as necessary.
16+
- Don't be shy to give us some screenshots, if it helps!

.github/codeql/codeql-config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CodeQL config"
1+
name: 'CodeQL config'
22
paths-ignore:
33
- dist
44
- cypress

.github/dependabot.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
open-pull-requests-limit: 10
5-
directory: /
6-
target-branch: develop
7-
versioning-strategy: increase
8-
schedule:
9-
interval: weekly
10-
day: monday
11-
time: "07:00"
12-
- package-ecosystem: github-actions
13-
directory: /
14-
target-branch: develop
15-
schedule:
16-
interval: weekly
17-
day: monday
18-
time: "07:00"
3+
- package-ecosystem: npm
4+
open-pull-requests-limit: 10
5+
directory: /
6+
target-branch: develop
7+
versioning-strategy: increase
8+
schedule:
9+
interval: weekly
10+
day: monday
11+
time: '07:00'
12+
- package-ecosystem: github-actions
13+
directory: /
14+
target-branch: develop
15+
schedule:
16+
interval: weekly
17+
day: monday
18+
time: '07:00'

.github/pull_request_template.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
## :bookmark_tabs: Summary
2+
23
Brief description about the content of your PR.
34

45
Resolves #<your issue id here>
56

67
## :straight_ruler: Design Decisions
8+
79
Describe the way your implementation works or what design decisions you made if applicable.
810

911
### :clipboard: Tasks
12+
1013
Make sure you
11-
- [ ] :book: have read the [contribution guidelines](https://github.com/mermaid-js/mermaid/blob/develop/CONTRIBUTING.md)
12-
- [ ] :computer: have added unit/e2e tests (if appropriate)
13-
- [ ] :bookmark: targeted `develop` branch
14+
15+
- [ ] :book: have read the [contribution guidelines](https://github.com/mermaid-js/mermaid/blob/develop/CONTRIBUTING.md)
16+
- [ ] :computer: have added unit/e2e tests (if appropriate)
17+
- [ ] :bookmark: targeted `develop` branch

.github/stale.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ markComment: >
1616
# Comment to post when closing a stale issue. Set to `false` to disable
1717
closeComment: >
1818
This issue has been been automatically closed due to a lack of activity.
19-
This is done to maintain a clean list of issues that the community is interested in developing.
19+
This is done to maintain a clean list of issues that the community is interested in developing.

.github/workflows/build.yml

+25-25
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,28 @@ jobs:
1818
matrix:
1919
node-version: [16.x]
2020
steps:
21-
- uses: actions/checkout@v3
22-
23-
- name: Setup Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v3
25-
with:
26-
cache: yarn
27-
node-version: ${{ matrix.node-version }}
28-
29-
- name: Install Yarn
30-
run: npm i yarn --global
31-
32-
- name: Install Packages
33-
run: |
34-
yarn install --frozen-lockfile
35-
env:
36-
CYPRESS_CACHE_FOLDER: .cache/Cypress
37-
38-
- name: Run Build
39-
run: yarn build
40-
41-
- name: Upload Build as Artifact
42-
uses: actions/upload-artifact@v3
43-
with:
44-
name: dist
45-
path: dist
21+
- uses: actions/checkout@v3
22+
23+
- name: Setup Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
cache: yarn
27+
node-version: ${{ matrix.node-version }}
28+
29+
- name: Install Yarn
30+
run: npm i yarn --global
31+
32+
- name: Install Packages
33+
run: |
34+
yarn install --frozen-lockfile
35+
env:
36+
CYPRESS_CACHE_FOLDER: .cache/Cypress
37+
38+
- name: Run Build
39+
run: yarn build
40+
41+
- name: Upload Build as Artifact
42+
uses: actions/upload-artifact@v3
43+
with:
44+
name: dist
45+
path: dist

.github/workflows/checks.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
name: check tests
1515
if: github.repository_owner == 'mermaid-js'
1616
steps:
17-
- uses: actions/checkout@v2
18-
with:
19-
fetch-depth: 0
20-
- uses: testomatio/check-tests@stable
21-
with:
22-
framework: cypress
23-
tests: "./cypress/e2e/**/**.spec.js"
24-
token: ${{ secrets.GITHUB_TOKEN }}
25-
has-tests-label: true
17+
- uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
- uses: testomatio/check-tests@stable
21+
with:
22+
framework: cypress
23+
tests: './cypress/e2e/**/**.spec.js'
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
has-tests-label: true

.github/workflows/codeql.yml

+36-37
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
2-
name: "CodeQL"
1+
name: 'CodeQL'
32

43
on:
54
push:
6-
branches: [ develop ]
5+
branches: [develop]
76
pull_request:
87
# The branches below must be a subset of the branches above
9-
branches: [ develop ]
8+
branches: [develop]
109
types:
1110
- opened
1211
- synchronize
@@ -24,40 +23,40 @@ jobs:
2423
strategy:
2524
fail-fast: false
2625
matrix:
27-
language: [ 'javascript' ]
26+
language: ['javascript']
2827
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
2928
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3029

3130
steps:
32-
- name: Checkout repository
33-
uses: actions/checkout@v3
34-
35-
# Initializes the CodeQL tools for scanning.
36-
- name: Initialize CodeQL
37-
uses: github/codeql-action/init@v2
38-
with:
39-
config-file: ./.github/codeql/codeql-config.yml
40-
languages: ${{ matrix.language }}
41-
# If you wish to specify custom queries, you can do so here or in a config file.
42-
# By default, queries listed here will override any specified in a config file.
43-
# Prefix the list here with "+" to use these queries and those in the config file.
44-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
45-
46-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
47-
# If this step fails, then you should remove it and run the build manually (see below)
48-
- name: Autobuild
49-
uses: github/codeql-action/autobuild@v2
50-
51-
# ℹ️ Command-line programs to run using the OS shell.
52-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
53-
54-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
55-
# and modify them (or add more) to build your code if your project
56-
# uses a compiled language
57-
58-
#- run: |
59-
# make bootstrap
60-
# make release
61-
62-
- name: Perform CodeQL Analysis
63-
uses: github/codeql-action/analyze@v2
31+
- name: Checkout repository
32+
uses: actions/checkout@v3
33+
34+
# Initializes the CodeQL tools for scanning.
35+
- name: Initialize CodeQL
36+
uses: github/codeql-action/init@v2
37+
with:
38+
config-file: ./.github/codeql/codeql-config.yml
39+
languages: ${{ matrix.language }}
40+
# If you wish to specify custom queries, you can do so here or in a config file.
41+
# By default, queries listed here will override any specified in a config file.
42+
# Prefix the list here with "+" to use these queries and those in the config file.
43+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
44+
45+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
46+
# If this step fails, then you should remove it and run the build manually (see below)
47+
- name: Autobuild
48+
uses: github/codeql-action/autobuild@v2
49+
50+
# ℹ️ Command-line programs to run using the OS shell.
51+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
52+
53+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
54+
# and modify them (or add more) to build your code if your project
55+
# uses a compiled language
56+
57+
#- run: |
58+
# make bootstrap
59+
# make release
60+
61+
- name: Perform CodeQL Analysis
62+
uses: github/codeql-action/analyze@v2

.github/workflows/issue-triage.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: Apply triage label to new issue
22

3-
on:
3+
on:
44
issues:
55
types: [opened]
66

77
jobs:
88
triage:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: andymckay/[email protected]
12-
with:
13-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
14-
add-labels: "Status: Triage"
11+
- uses: andymckay/[email protected]
12+
with:
13+
repo-token: '${{ secrets.GITHUB_TOKEN }}'
14+
add-labels: 'Status: Triage'

.github/workflows/lint.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@ jobs:
1818
matrix:
1919
node-version: [16.x]
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v3
2222

23-
- name: Setup Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v3
25-
with:
26-
cache: yarn
27-
node-version: ${{ matrix.node-version }}
23+
- name: Setup Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
cache: yarn
27+
node-version: ${{ matrix.node-version }}
2828

29-
- name: Install Yarn
30-
run: npm i yarn --global
29+
- name: Install Yarn
30+
run: npm i yarn --global
3131

32-
- name: Install Packages
33-
run: |
34-
yarn install --frozen-lockfile
35-
env:
36-
CYPRESS_CACHE_FOLDER: .cache/Cypress
32+
- name: Install Packages
33+
run: |
34+
yarn install --frozen-lockfile
35+
env:
36+
CYPRESS_CACHE_FOLDER: .cache/Cypress
3737

38-
- name: Run Linting
39-
run: yarn lint
38+
- name: Run Linting
39+
run: yarn lint

0 commit comments

Comments
 (0)