mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-10 14:52:29 +02:00
chore: enable import/order rule (#7418)
This commit is contained in:
parent
a4c54aba45
commit
0838884f67
300 changed files with 712 additions and 727 deletions
|
@ -6,9 +6,9 @@
|
|||
*/
|
||||
|
||||
import {jest} from '@jest/globals';
|
||||
import {readOutputHTMLFile, generate} from '../emitUtils';
|
||||
import path from 'path';
|
||||
import fs from 'fs-extra';
|
||||
import {readOutputHTMLFile, generate} from '../emitUtils';
|
||||
|
||||
describe('readOutputHTMLFile', () => {
|
||||
it('reads both files with trailing slash undefined', async () => {
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import {FileNotTrackedError, getFileCommitDate} from '../gitUtils';
|
||||
import fs from 'fs-extra';
|
||||
import path from 'path';
|
||||
import {createTempRepo} from '@testing-utils/git';
|
||||
import {FileNotTrackedError, getFileCommitDate} from '../gitUtils';
|
||||
|
||||
/* eslint-disable no-restricted-properties */
|
||||
function initializeTempRepo() {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
import {jest} from '@jest/globals';
|
||||
import _ from 'lodash';
|
||||
import {
|
||||
removeSuffix,
|
||||
removePrefix,
|
||||
|
@ -13,7 +14,6 @@ import {
|
|||
findAsyncSequential,
|
||||
reportMessage,
|
||||
} from '../jsUtils';
|
||||
import _ from 'lodash';
|
||||
|
||||
describe('removeSuffix', () => {
|
||||
it("is no-op when suffix doesn't exist", () => {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import dedent from 'dedent';
|
||||
import {
|
||||
createExcerpt,
|
||||
parseMarkdownContentTitle,
|
||||
|
@ -12,7 +13,6 @@ import {
|
|||
parseMarkdownHeadingId,
|
||||
writeMarkdownHeadingId,
|
||||
} from '../markdownUtils';
|
||||
import dedent from 'dedent';
|
||||
|
||||
describe('createExcerpt', () => {
|
||||
it('creates excerpt for text-only content', () => {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
import {jest} from '@jest/globals';
|
||||
import path from 'path';
|
||||
import {
|
||||
isNameTooLong,
|
||||
shortName,
|
||||
|
@ -15,7 +16,6 @@ import {
|
|||
toMessageRelativeFilePath,
|
||||
addTrailingPathSeparator,
|
||||
} from '../pathUtils';
|
||||
import path from 'path';
|
||||
|
||||
describe('isNameTooLong', () => {
|
||||
it('works', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue