Skip to content

Commit 42468b4

Browse files
authored
Merge pull request #3 from mozilla/prettier
chore(project): Add Prettier, format files
2 parents 1bcb513 + 8e5bf57 commit 42468b4

File tree

6 files changed

+53
-37
lines changed

6 files changed

+53
-37
lines changed

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"trailingComma": "all"
3+
}

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
2+
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
33
};

docusaurus.config.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
themeConfig: {
1212
hideableSidebar: true,
1313
colorMode: {
14-
defaultMode: 'light',
14+
defaultMode: "light",
1515
disableSwitch: true,
1616
respectPrefersColorScheme: true,
1717
},
@@ -26,38 +26,37 @@ module.exports = {
2626
{
2727
href: "https://experimenter.services.mozilla.com/nimbus/",
2828
label: "Nimbus",
29-
position: "right"
29+
position: "right",
3030
},
3131
{
3232
href: "https://mana.mozilla.org/wiki/display/FJT/Project+Nimbus",
3333
label: "Mana",
34-
position: "right"
34+
position: "right",
3535
},
3636
{
3737
href: "https://github.com/mozilla/experimenter-docs",
38-
position: 'right',
39-
className: 'header-github-link',
40-
'aria-label': 'GitHub repository',
38+
position: "right",
39+
className: "header-github-link",
40+
"aria-label": "GitHub repository",
4141
},
4242
],
4343
},
4444
footer: {
4545
copyright: `Copyright © ${new Date().getFullYear()} Mozilla Corporation`,
4646
},
4747
algolia: {
48-
apiKey: 'cce683dfea9772207408c2b161a22641',
49-
indexName: 'experimenter',
48+
apiKey: "cce683dfea9772207408c2b161a22641",
49+
indexName: "experimenter",
5050
},
5151
},
5252
presets: [
5353
[
5454
"@docusaurus/preset-classic",
5555
{
5656
docs: {
57-
routeBasePath: '/',
57+
routeBasePath: "/",
5858
sidebarPath: require.resolve("./sidebars.js"),
59-
editUrl:
60-
"https://github.com/mozilla/experimenter-docs/edit/main/",
59+
editUrl: "https://github.com/mozilla/experimenter-docs/edit/main/",
6160
},
6261
theme: {
6362
customCss: require.resolve("./src/css/custom.css"),

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@
3030
"last 1 firefox version",
3131
"last 1 safari version"
3232
]
33+
},
34+
"devDependencies": {
35+
"prettier": "^2.2.1"
3336
}
34-
}
37+
}

sidebars.js

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,84 +8,92 @@ module.exports = {
88
{
99
type: "link",
1010
label: "Nimbus Onboarding",
11-
href: "https://mana.mozilla.org/wiki/display/FJT/Nimbus+Onboarding#NimbusOnboarding-Branches",
11+
href:
12+
"https://mana.mozilla.org/wiki/display/FJT/Nimbus+Onboarding#NimbusOnboarding-Branches",
1213
},
1314
{
1415
type: "link",
1516
label: "How to Launch a Nimbus Experiment",
16-
href: "https://mana.mozilla.org/wiki/display/FJT/How+to+Launch+a+Nimbus+Experiment",
17+
href:
18+
"https://mana.mozilla.org/wiki/display/FJT/How+to+Launch+a+Nimbus+Experiment",
1719
},
1820
{
1921
type: "link",
2022
label: "Nimbus Data Transfer Object",
21-
href: "https://mana.mozilla.org/wiki/pages/viewpage.action?pageId=130920248"
23+
href:
24+
"https://mana.mozilla.org/wiki/pages/viewpage.action?pageId=130920248",
2225
},
2326
{
2427
type: "link",
2528
label: "Experiment Telemetry",
26-
href: "https://mana.mozilla.org/wiki/display/FJT/Nimbus+Engineering#NimbusEngineering-ExperimentTelemetry"
29+
href:
30+
"https://mana.mozilla.org/wiki/display/FJT/Nimbus+Engineering#NimbusEngineering-ExperimentTelemetry",
2731
},
2832
{
2933
type: "link",
3034
label: "Lessons Learned",
31-
href: "https://mana.mozilla.org/wiki/display/FJT/Lessons+Learned+-+Experiment+Incidents+and+Close+Calls",
35+
href:
36+
"https://mana.mozilla.org/wiki/display/FJT/Lessons+Learned+-+Experiment+Incidents+and+Close+Calls",
3237
},
33-
]
38+
],
3439
},
3540
{
36-
type: 'category',
37-
label: 'Jetstream',
41+
type: "category",
42+
label: "Jetstream",
3843
items: [
3944
{
4045
type: "link",
4146
label: "GitHub Repo",
42-
href: "https://github.com/mozilla/jetstream"
47+
href: "https://github.com/mozilla/jetstream",
4348
},
4449
{
4550
type: "link",
4651
label: "Documentation",
47-
href: "https://docs.telemetry.mozilla.org/datasets/jetstream.html"
52+
href: "https://docs.telemetry.mozilla.org/datasets/jetstream.html",
4853
},
4954
],
5055
},
5156
{
52-
type: 'category',
53-
label: 'Experiment Owners',
57+
type: "category",
58+
label: "Experiment Owners",
5459
items: ["experiment-owners-root"],
5560
},
5661
{
57-
type: 'category',
58-
label: 'Fenix Engineers',
62+
type: "category",
63+
label: "Fenix Engineers",
5964
items: [
6065
"fenix-engineers-root",
6166
{
6267
type: "link",
6368
label: "Android API (proposal)",
64-
href: "https://docs.google.com/document/d/1kchihPal0__A4VOAiPJarNuZXns5KhOHHfIeIzT6zfU/edit#",
69+
href:
70+
"https://docs.google.com/document/d/1kchihPal0__A4VOAiPJarNuZXns5KhOHHfIeIzT6zfU/edit#",
6571
},
6672
],
6773
},
6874
{
69-
type: 'category',
70-
label: 'Desktop Engineers',
75+
type: "category",
76+
label: "Desktop Engineers",
7177
items: [
7278
"desktop-engineers-root",
7379
{
7480
type: "link",
7581
label: "Front-End Migration Guide",
76-
href: "https://www.notion.so/Nimbus-Migration-Guide-for-Desktop-Front-End-Experiments-d36c21e505f84550aad1202897fc4ba3",
82+
href:
83+
"https://www.notion.so/Nimbus-Migration-Guide-for-Desktop-Front-End-Experiments-d36c21e505f84550aad1202897fc4ba3",
7784
},
7885
{
7986
type: "link",
8087
label: "SDK Docs (X-Man draft)",
81-
href: "https://docs.google.com/document/d/1ev75pG0nAM1lz53WuPQkWqykUlZMmZRbx8wzvvn5DhU/edit",
88+
href:
89+
"https://docs.google.com/document/d/1ev75pG0nAM1lz53WuPQkWqykUlZMmZRbx8wzvvn5DhU/edit",
8290
},
8391
],
8492
},
8593
{
86-
type: 'category',
87-
label: 'Data Scientists',
94+
type: "category",
95+
label: "Data Scientists",
8896
items: ["data-scientists-root"],
89-
}
97+
},
9098
],
9199
};

yarn.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7940,6 +7940,11 @@ prepend-http@^2.0.0:
79407940
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
79417941
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
79427942

7943+
prettier@^2.2.1:
7944+
version "2.2.1"
7945+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
7946+
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
7947+
79437948
pretty-error@^2.1.1:
79447949
version "2.1.2"
79457950
resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.2.tgz#be89f82d81b1c86ec8fdfbc385045882727f93b6"
@@ -10027,10 +10032,8 @@ watchpack@^1.7.4:
1002710032
resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.7.5.tgz#1267e6c55e0b9b5be44c2023aed5437a2c26c453"
1002810033
integrity sha512-9P3MWk6SrKjHsGkLT2KHXdQ/9SNkyoJbabxnKOoJepsvJjJG8uYTR3yTPxPQvNDI3w4Nz1xnE0TLHK4RIVe/MQ==
1002910034
dependencies:
10030-
chokidar "^3.4.1"
1003110035
graceful-fs "^4.1.2"
1003210036
neo-async "^2.5.0"
10033-
watchpack-chokidar2 "^2.0.1"
1003410037
optionalDependencies:
1003510038
chokidar "^3.4.1"
1003610039
watchpack-chokidar2 "^2.0.1"

0 commit comments

Comments
 (0)