Skip to content

Commit 76d7194

Browse files
chore: applied formatting to all files (#5493)
* chore: applied formatting to all files * npm run format:prettier -- --write * [email protected] * Remove test/integration/options/opts.spec.js * Add docs/api to .prettierignore * Remove empty line in npm-script.yml * Fix Codecov link in CONTRIBUTING.md Fixed a broken link in the contributing guidelines regarding Codecov. --------- Co-authored-by: Mark Wiemer <[email protected]>
1 parent 681e843 commit 76d7194

File tree

272 files changed

+11631
-11516
lines changed

Some content is hidden

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

272 files changed

+11631
-11516
lines changed

.eleventy.js

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
1-
'use strict';
1+
"use strict";
22

33
module.exports = function (eleventyConfig) {
44
eleventyConfig.addPlugin(
5-
require('@11ty/eleventy-plugin-inclusive-language'),
5+
require("@11ty/eleventy-plugin-inclusive-language"),
66
{
77
words:
8-
'simply,obviously,basically,of course,clearly,everyone knows,however,easy'
9-
}
8+
"simply,obviously,basically,of course,clearly,everyone knows,however,easy",
9+
},
1010
);
1111

12-
eleventyConfig.addPassthroughCopy('docs/css');
13-
eleventyConfig.addPassthroughCopy('docs/js');
14-
eleventyConfig.addPassthroughCopy('docs/images');
15-
eleventyConfig.addPassthroughCopy('docs/CNAME');
16-
eleventyConfig.addPassthroughCopy('docs/_headers');
17-
eleventyConfig.addPassthroughCopy('docs/favicon.ico');
18-
eleventyConfig.addPassthroughCopy('docs/example');
19-
eleventyConfig.addPassthroughCopy('docs/api/images');
20-
eleventyConfig.addPassthroughCopy('docs/api/scripts');
21-
eleventyConfig.addPassthroughCopy('docs/api/styles');
12+
eleventyConfig.addPassthroughCopy("docs/css");
13+
eleventyConfig.addPassthroughCopy("docs/js");
14+
eleventyConfig.addPassthroughCopy("docs/images");
15+
eleventyConfig.addPassthroughCopy("docs/CNAME");
16+
eleventyConfig.addPassthroughCopy("docs/_headers");
17+
eleventyConfig.addPassthroughCopy("docs/favicon.ico");
18+
eleventyConfig.addPassthroughCopy("docs/example");
19+
eleventyConfig.addPassthroughCopy("docs/api/images");
20+
eleventyConfig.addPassthroughCopy("docs/api/scripts");
21+
eleventyConfig.addPassthroughCopy("docs/api/styles");
2222

2323
/* Markdown Plugins */
24-
const markdown = require('markdown-it')({
24+
const markdown = require("markdown-it")({
2525
html: true,
2626
linkify: true,
27-
typographer: true
27+
typographer: true,
2828
});
2929

30-
markdown.use(require('markdown-it-anchor'), {
31-
slugify: require('uslug'),
30+
markdown.use(require("markdown-it-anchor"), {
31+
slugify: require("uslug"),
3232
permalink: true,
3333
permalinkBefore: true,
34-
permalinkClass: 'direct-link',
35-
permalinkSymbol: '#'
34+
permalinkClass: "direct-link",
35+
permalinkSymbol: "#",
3636
});
3737

38-
markdown.use(require('markdown-it-attrs'), {
39-
leftDelimiter: '{:',
40-
rightDelimiter: '}'
38+
markdown.use(require("markdown-it-attrs"), {
39+
leftDelimiter: "{:",
40+
rightDelimiter: "}",
4141
});
4242

43-
markdown.use(require('markdown-it-prism'));
43+
markdown.use(require("markdown-it-prism"));
4444

45-
markdown.use(require('markdown-it-emoji'));
45+
markdown.use(require("markdown-it-emoji"));
4646

47-
eleventyConfig.setLibrary('md', markdown);
47+
eleventyConfig.setLibrary("md", markdown);
4848

4949
eleventyConfig.setUseGitIgnore(false);
5050

5151
return {
5252
passthroughFileCopy: true,
5353
dir: {
54-
input: 'docs',
55-
output: 'docs/_site'
56-
}
54+
input: "docs",
55+
output: "docs/_site",
56+
},
5757
};
5858
};

.github/ISSUE_TEMPLATE/01-bug.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ body:
4141
type: textarea
4242
description: Report a bug trying to run the code
4343
labels:
44-
- 'status: in triage'
45-
- 'type: bug'
44+
- "status: in triage"
45+
- "type: bug"
4646
name: 🐛 Bug
47-
title: '🐛 Bug: <short description of the bug>'
47+
title: "🐛 Bug: <short description of the bug>"

.github/ISSUE_TEMPLATE/02-documentation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ body:
2121
type: textarea
2222
description: Report a typo or missing area of documentation
2323
labels:
24-
- 'area: documentation'
25-
- 'status: in triage'
24+
- "area: documentation"
25+
- "status: in triage"
2626
name: 📝 Docs
27-
title: '📝 Docs: <short description of the request>'
27+
title: "📝 Docs: <short description of the request>"

.github/ISSUE_TEMPLATE/03-feature-request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ body:
3333
type: textarea
3434
description: Request that a new feature be added or an existing feature improved
3535
labels:
36-
- 'status: in triage'
37-
- 'type: feature'
36+
- "status: in triage"
37+
- "type: feature"
3838
name: 🚀 Feature
39-
title: '🚀 Feature: <short description of the feature>'
39+
title: "🚀 Feature: <short description of the feature>"

.github/ISSUE_TEMPLATE/04-performance.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ body:
4545
type: textarea
4646
description: Suggest a way to make Mocha faster, more memory- and/or space-efficient, or otherwise improve performance
4747
labels:
48-
- 'area: performance'
49-
- 'status: in triage'
48+
- "area: performance"
49+
- "status: in triage"
5050
name: ⚡️ Performance
51-
title: '⚡️ Performance: <short description of the change>'
51+
title: "⚡️ Performance: <short description of the change>"

.github/ISSUE_TEMPLATE/05-repository-tooling.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ body:
2525
type: textarea
2626
description: Report a bug or request an enhancement in the Mocha repository's internal tooling
2727
labels:
28-
- 'area: repository tooling'
29-
- 'status: in triage'
28+
- "area: repository tooling"
29+
- "status: in triage"
3030
name: 🛠 Repository Tooling
31-
title: '🛠 Repo: <short description of the change>'
31+
title: "🛠 Repo: <short description of the change>"

.github/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
version: 2
22
updates:
3-
- package-ecosystem: 'github-actions'
4-
directory: '/'
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
55
schedule:
6-
interval: 'weekly'
6+
interval: "weekly"
77
groups:
88
github-actions:
99
patterns:
10-
- '*'
10+
- "*"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{".":"11.7.4"}
1+
{ ".": "11.7.4" }

.github/workflows/browser-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111

1212
jobs:
1313
test-browser:
14-
name: 'Browser Tests'
14+
name: "Browser Tests"
1515
if: contains(github.event.pull_request.labels.*.name, 'run-browser-test')
1616
uses: ./.github/workflows/npm-script.yml
1717
secrets: inherit

.github/workflows/mocha.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,23 @@ on:
44
push:
55
branches:
66
- main
7-
paths-ignore: ['*.md', 'docs/**']
7+
paths-ignore: ["*.md", "docs/**"]
88
pull_request:
99
branches:
1010
- main
11-
paths-ignore: ['*.md', 'docs/**']
11+
paths-ignore: ["*.md", "docs/**"]
1212
workflow_dispatch:
1313

1414
permissions:
1515
contents: read
1616
id-token: write # for Codecov OIDC
1717

1818
jobs:
19+
format:
20+
uses: ./.github/workflows/npm-script.yml
21+
with:
22+
npm-script: format
23+
1924
lint:
2025
uses: ./.github/workflows/npm-script.yml
2126
with:
@@ -24,7 +29,7 @@ jobs:
2429
smoke:
2530
uses: ./.github/workflows/npm-script.yml
2631
with:
27-
node-versions: '20,22,24'
32+
node-versions: "20,22,24"
2833
npm-script: test-smoke
2934

3035
test-node-lts:
@@ -68,10 +73,10 @@ jobs:
6873
- test-part: jsapi
6974
coverage: false
7075
with:
71-
os: 'ubuntu-latest,windows-latest'
76+
os: "ubuntu-latest,windows-latest"
7277
# We pin exact versions here per https://github.com/mochajs/mocha/issues/5052
7378
# Ref https://nodejs.org/en/about/previous-releases
74-
node-versions: '20.19.4,22.18.0,24.6.0'
79+
node-versions: "20.19.4,22.18.0,24.6.0"
7580
npm-script: test-node:${{ matrix.test-part }}
7681
coverage: ${{ matrix.coverage }}
7782

0 commit comments

Comments
 (0)