Skip to content

Commit 5a2dd81

Browse files
chore: run pre-commit run --all-files
Bring all files under `prettier`'s all-seeing eye
1 parent 959b70a commit 5a2dd81

File tree

6 files changed

+25
-32
lines changed

6 files changed

+25
-32
lines changed

.github/workflows/pull-request-edit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
run-scan:
1919
name: Trigger Renovate Scan
2020
if:
21-
${{ contains(github.event.pull_request.body, '[x] <!-- rebase-check -->')
22-
&& github.event.pull_request.user.login == 'bitgo-renovate-bot[bot]' }}
21+
${{ contains(github.event.pull_request.body, '[x] <!-- rebase-check -->') &&
22+
github.event.pull_request.user.login == 'bitgo-renovate-bot[bot]' }}
2323
runs-on: ubuntu-latest
2424
steps:
2525
- id: trigger-renovate-scan

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ type-checked and runtime-validated HTTP calls in a standardized manner.
2525

2626
## io-ts Compatibility
2727

28-
**api-ts** is built and tested against the stable channel of io-ts (v2.1).
29-
**api-ts** is not currently compatible with the experimental channel of io-ts (v2.2).
28+
**api-ts** is built and tested against the stable channel of io-ts (v2.1). **api-ts** is
29+
not currently compatible with the experimental channel of io-ts (v2.2).
3030

3131
## Developing
3232

website/docusaurus.config.js

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
const lightCodeTheme = require('prism-react-renderer/themes/github');
55
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
66

7-
const theme = require("shiki/themes/nord.json")
8-
const {
9-
remarkCodeHike,
10-
} = require("@code-hike/mdx")
7+
const theme = require('shiki/themes/nord.json');
8+
const { remarkCodeHike } = require('@code-hike/mdx');
119

1210
/** @type {import('@docusaurus/types').Config} */
1311
const config = {
@@ -38,31 +36,27 @@ const config = {
3836
/** @type {import('@docusaurus/preset-classic').Options} */
3937
({
4038
docs: {
41-
beforeDefaultRemarkPlugins: [
42-
[remarkCodeHike, { theme }],
43-
],
39+
beforeDefaultRemarkPlugins: [[remarkCodeHike, { theme }]],
4440
sidebarPath: require.resolve('./sidebars.js'),
4541
// Remove this to remove the "edit this page" links.
46-
editUrl:
47-
'https://github.com/BitGo/api-ts/tree/master/website/',
42+
editUrl: 'https://github.com/BitGo/api-ts/tree/master/website/',
4843
},
4944
blog: {
5045
showReadingTime: true,
5146
// Remove this to remove the "edit this page" links.
52-
editUrl:
53-
'https://github.com/BitGo/api-ts/tree/master/website',
47+
editUrl: 'https://github.com/BitGo/api-ts/tree/master/website',
5448
},
5549
theme: {
5650
customCss: [
57-
require.resolve("@code-hike/mdx/styles.css"),
51+
require.resolve('@code-hike/mdx/styles.css'),
5852
require.resolve('./src/css/custom.css'),
59-
]
53+
],
6054
},
6155
}),
6256
],
6357
],
6458

65-
themes: ["mdx-v2"],
59+
themes: ['mdx-v2'],
6660

6761
themeConfig:
6862
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */

website/sidebars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
1515
const sidebars = {
1616
// By default, Docusaurus generates a sidebar from the docs folder structure
17-
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
17+
tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }],
1818

1919
// But you can create a sidebar manually
2020
/*

website/src/components/HomepageFeatures/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const FeatureList = [
88
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
99
description: (
1010
<>
11-
Docusaurus was designed from the ground up to be easily installed and
12-
used to get your website up and running quickly.
11+
Docusaurus was designed from the ground up to be easily installed and used to
12+
get your website up and running quickly.
1313
</>
1414
),
1515
},
@@ -18,8 +18,8 @@ const FeatureList = [
1818
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
1919
description: (
2020
<>
21-
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
22-
ahead and move your docs into the <code>docs</code> directory.
21+
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go ahead
22+
and move your docs into the <code>docs</code> directory.
2323
</>
2424
),
2525
},
@@ -28,14 +28,14 @@ const FeatureList = [
2828
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
2929
description: (
3030
<>
31-
Extend or customize your website layout by reusing React. Docusaurus can
32-
be extended while reusing the same header and footer.
31+
Extend or customize your website layout by reusing React. Docusaurus can be
32+
extended while reusing the same header and footer.
3333
</>
3434
),
3535
},
3636
];
3737

38-
function Feature({Svg, title, description}) {
38+
function Feature({ Svg, title, description }) {
3939
return (
4040
<div className={clsx('col col--4')}>
4141
<div className="text--center">

website/src/pages/index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@ import HomepageFeatures from '@site/src/components/HomepageFeatures';
88
import styles from './index.module.css';
99

1010
function HomepageHeader() {
11-
const {siteConfig} = useDocusaurusContext();
11+
const { siteConfig } = useDocusaurusContext();
1212
return (
1313
<header className={clsx('hero hero--primary', styles.heroBanner)}>
1414
<div className="container">
1515
<h1 className="hero__title">{siteConfig.title}</h1>
1616
<p className="hero__subtitle">{siteConfig.tagline}</p>
1717
<div className={styles.buttons}>
18-
<Link
19-
className="button button--secondary button--lg"
20-
to="/docs/intro">
18+
<Link className="button button--secondary button--lg" to="/docs/intro">
2119
Docusaurus Tutorial - 5min ⏱️
2220
</Link>
2321
</div>
@@ -27,11 +25,12 @@ function HomepageHeader() {
2725
}
2826

2927
export default function Home() {
30-
const {siteConfig} = useDocusaurusContext();
28+
const { siteConfig } = useDocusaurusContext();
3129
return (
3230
<Layout
3331
title={`Hello from ${siteConfig.title}`}
34-
description="Description will go into a meta tag in <head />">
32+
description="Description will go into a meta tag in <head />"
33+
>
3534
<HomepageHeader />
3635
<main>
3736
<HomepageFeatures />

0 commit comments

Comments
 (0)