chore: add cSpell for spell checking (#6456)

* chore: Add cSpell for spell checking

* chore: exclude map files and remove dups

* chore: exclude more binary files

* chore: remove MD headings

* Update .cspell.json

* fix a few spellings

* fix more

* fix

Signed-off-by: Joshua Chen <sidachen2003@gmail.com>

* fix a few

* oops

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
Nick Schonning 2022-01-24 20:40:02 -05:00 committed by GitHub
parent a41a5c328c
commit 521eb119a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
64 changed files with 852 additions and 142 deletions

View file

@ -37,15 +37,15 @@ const fixtureDir = path.join(__dirname, '__fixtures__');
const createFakeDocFile = ({
source,
frontmatter = {},
frontMatter = {},
markdown = 'some markdown content',
}: {
source: string;
frontmatter?: Record<string, string>;
frontMatter?: Record<string, string>;
markdown?: string;
}): DocFile => {
const content = `---
${Object.entries(frontmatter)
${Object.entries(frontMatter)
.map(([key, value]) => `${key}: ${value}`)
.join('\n')}
---
@ -313,7 +313,7 @@ describe('simple site', () => {
});
});
test('docs with custom editUrl & unrelated frontmatter', async () => {
test('docs with custom editUrl & unrelated frontMatter', async () => {
const {defaultTestUtils} = await loadSite();
await defaultTestUtils.testMeta('lorem.md', {
@ -328,7 +328,7 @@ describe('simple site', () => {
description: 'Lorem ipsum.',
frontMatter: {
custom_edit_url: 'https://github.com/customUrl/docs/lorem.md',
unrelated_frontmatter: "won't be part of metadata",
unrelated_front_matter: "won't be part of metadata",
},
tags: [],
});
@ -422,7 +422,7 @@ describe('simple site', () => {
description: 'Lorem ipsum.',
frontMatter: {
custom_edit_url: 'https://github.com/customUrl/docs/lorem.md',
unrelated_frontmatter: "won't be part of metadata",
unrelated_front_matter: "won't be part of metadata",
},
lastUpdatedAt: 1539502055,
formattedLastUpdatedAt: '10/14/2018',
@ -475,7 +475,7 @@ describe('simple site', () => {
defaultTestUtils.processDocFile(
createFakeDocFile({
source: 'some/fake/path',
frontmatter: {
frontMatter: {
id: 'Hello/world',
},
}),
@ -499,7 +499,7 @@ describe('simple site', () => {
docs.push(
createFakeDocFile({
source: 'hehe',
frontmatter: {pagination_prev: 'nonexistent'},
frontMatter: {pagination_prev: 'nonexistent'},
}),
);
await expect(