mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 12:22:45 +02:00
Prettify all JavaScript files (#964)
* Prettify all JavaScript files * Make trailingComma all * Delete v2/.prettierignore * Remove v2 Prettier commands in package.json
This commit is contained in:
parent
a1de6dab04
commit
9d4a5d5359
101 changed files with 441 additions and 473 deletions
|
@ -12,7 +12,7 @@ describe('loadConfig', () => {
|
|||
docsUrl: 'docs',
|
||||
projectName: 'hello',
|
||||
tagline: 'Hello World',
|
||||
title: 'Hello'
|
||||
title: 'Hello',
|
||||
});
|
||||
expect(config).not.toEqual({});
|
||||
});
|
||||
|
@ -22,7 +22,7 @@ describe('loadConfig', () => {
|
|||
expect(() => {
|
||||
loadConfig(siteDir);
|
||||
}).toThrowErrorMatchingInlineSnapshot(
|
||||
`"tagline, organizationName, projectName fields are missing in siteConfig.js"`
|
||||
`"tagline, organizationName, projectName fields are missing in siteConfig.js"`,
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -31,7 +31,7 @@ describe('loadConfig', () => {
|
|||
expect(() => {
|
||||
loadConfig(siteDir);
|
||||
}).toThrowErrorMatchingInlineSnapshot(
|
||||
`"useLessField fields are useless in siteConfig.js"`
|
||||
`"useLessField fields are useless in siteConfig.js"`,
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -40,7 +40,7 @@ describe('loadConfig', () => {
|
|||
expect(() => {
|
||||
loadConfig(siteDir);
|
||||
}).toThrowErrorMatchingInlineSnapshot(
|
||||
`"title, tagline, organizationName, projectName, baseUrl fields are missing in siteConfig.js"`
|
||||
`"title, tagline, organizationName, projectName, baseUrl fields are missing in siteConfig.js"`,
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue