mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-08 12:28:02 +02:00
refactor: enforce type import specifiers (#6230)
* refactor: enforce type import specifiers * fix * Upgrade esbuild * Fix (haha)
This commit is contained in:
parent
24d65d9bdd
commit
cb1aa30286
192 changed files with 484 additions and 337 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
import importFresh from 'import-fresh';
|
||||
import {createConfigFile} from '../index';
|
||||
import {VersionOneConfig} from '../types';
|
||||
import type {VersionOneConfig} from '../types';
|
||||
|
||||
describe('create config', () => {
|
||||
test('simple test', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import {RawData, Data} from './types';
|
||||
import type {RawData, Data} from './types';
|
||||
|
||||
function splitHeader(content: string): RawData {
|
||||
// New line characters need to handle all operating systems.
|
||||
|
|
|
@ -11,7 +11,7 @@ import logger from '@docusaurus/logger';
|
|||
import glob from 'glob';
|
||||
import Color from 'color';
|
||||
|
||||
import {
|
||||
import type {
|
||||
ClassicPresetEntries,
|
||||
SidebarEntry,
|
||||
SidebarEntries,
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
*/
|
||||
|
||||
import jscodeshift, {
|
||||
ArrowFunctionExpression,
|
||||
type ArrowFunctionExpression,
|
||||
AssignmentExpression,
|
||||
ASTPath,
|
||||
Collection,
|
||||
TemplateElement,
|
||||
type ASTPath,
|
||||
type Collection,
|
||||
type TemplateElement,
|
||||
VariableDeclarator,
|
||||
} from 'jscodeshift';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue