Skip to content

Commit e3b0ae2

Browse files
authored
Merge pull request #1615 from codatio/chore/lint-markdown
Lint md with prettier
2 parents 0c7ee6c + 21acb40 commit e3b0ae2

File tree

413 files changed

+10295
-9488
lines changed

Some content is hidden

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

413 files changed

+10295
-9488
lines changed

.github/workflows/check-formatting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
run: npm ci
2323

2424
- name: Check formatting
25-
run: npm run format:check
25+
run: npm run format:js:check

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check - linting
1+
name: Check - markdown formatting
22

33
on:
44
pull_request:
@@ -17,7 +17,7 @@ on:
1717
- 'docs/**/*.mdx'
1818

1919
jobs:
20-
markdown-lint:
20+
markdown-format:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout repository
@@ -29,8 +29,8 @@ jobs:
2929
node-version: '20'
3030
cache: 'npm'
3131

32-
- name: Install markdownlint
33-
run: npm install -g markdownlint-cli
32+
- name: Install dependencies
33+
run: npm ci
3434

35-
- name: Run markdownlint
36-
run: markdownlint 'blog/**/*.md' 'blog/**/*.mdx' 'docs/**/*.md' 'docs/**/*.mdx' --config .markdownlint.json
35+
- name: Check markdown formatting with Prettier
36+
run: npm run format:mdx:check

.markdownlint.json

Lines changed: 0 additions & 51 deletions
This file was deleted.

.prettierrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,13 @@ module.exports = {
66
parser: "mdx",
77
},
88
},
9+
{
10+
files: "*.mdx",
11+
options: {
12+
parser: "mdx",
13+
proseWrap: "always",
14+
printWidth: 80,
15+
},
16+
},
917
],
1018
};

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ All `.jpg`, `.jpeg`, and `.png` files are tracked.
3232
The docusaurus config expects certain environment variables to be defined. We've included `.env.example` - copy this and rename it to `.env`. You can enter any random string for the IDs.
3333

3434
```
35-
copy .env.example .env # on Windows
35+
copy .env.example .env # on Windows
3636
cp .env.example .env # on Mac
3737
```
3838

blog/220714-support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ draft: false
66
authors: mcclowes
77
---
88

9-
6/8/2022 Portal, Updates We've updated the navigation bar in the Codat Portal to make your experience more intuitive.
9+
6/8/2022 Portal, Updates We've updated the navigation bar in the Codat Portal to make your experience more intuitive.
1010

1111
7/1/2022 Assess, New Banking metrics are now available for all clients using Assess.
1212

1313
<!--truncate-->
1414

15-
[Access our help center](https://codat.zendesk.com/hc/en-gb).
15+
[Access our help center](https://codat.zendesk.com/hc/en-gb).

blog/220806-navigation-bar.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ The Portal has been rearranged to make accessing Codat functionality and setting
1010

1111
<!--truncate-->
1212

13-
- The vertical navbar has been replaced with a horizontal one, and sections of the Portal have their own vertical nav in its place.
13+
- The vertical navbar has been replaced with a horizontal one, and sections of the Portal have their own vertical nav in its place.
1414
- All settings are now in the settings section.
15-
- We've added a monitor section for the functionality that helps you monitor and maintain a healthy Codat solution.
15+
- We've added a monitor section for the functionality that helps you monitor and maintain a healthy Codat solution.

blog/220817-plaid-instant-match.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ draft: false
66
authors: mcclowes
77
---
88

9-
> Instant Match is available for nearly 3,000 U.S. additional financial institutions where Instant Auth is not available.
9+
> Instant Match is available for nearly 3,000 U.S. additional financial institutions where Instant Auth is not available.
1010
1111
<!--truncate-->
1212

1313
> Instant Match is enabled automatically for Auth customers and is automatically provided at supported institutions as a fallback experience when Instant Auth is not available. When using Instant Match, Plaid Link will prompt your user to enter their account number and routing number for a depository account. Plaid will then verify the last four digits of the user-provided account number against the account mask retrieved from the financial institution.
1414
15-
16-
[Read more...](https://plaid.com/docs/auth/coverage/instant/#instant-match)
15+
[Read more...](https://plaid.com/docs/auth/coverage/instant/#instant-match)

blog/220817-product-update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ We've got a host of Portal and DX improvements for you this week.
2020

2121
#### Assess
2222

23-
- **New:** Banking metrics are now available for all clients using Assess.
23+
- **New:** Banking metrics are now available for all clients using Assess.

blog/220825-string-request-deprecation.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ To use the updated request body before this date, enable the relevant feature bu
1515
Action required
1616
Update the body of any requests to the `POST /companies/{companyId}/connections` endpoint from a string value to the JSON object as specified below:
1717

18-
1918
```JSON
2019
{
2120
"platformKey": "string",
@@ -53,7 +52,6 @@ A POST request body that is not a JSON object containing a platformKey property
5352

5453
Legacy request body for `POST /companies/{companyId}/connections endpoint` available only for clients onboarded prior to September 1, 2022. This model is being replaced on January 10, 2023.
5554

56-
5755
New request body for `POST /companies/{companyId}/connections endpoint` available for clients onboarded from September 1, 2022. This model will be implemented for all other clients on January 10, 2023.
5856

5957
```JSON
@@ -63,4 +61,4 @@ New request body for `POST /companies/{companyId}/connections endpoint` availabl
6361
}
6462
```
6563

66-
You can get ahead of this change by enabling it now in the Portal.
64+
You can get ahead of this change by enabling it now in the Portal.

0 commit comments

Comments
 (0)