refactor: enforce type import specifiers (#6230)

* refactor: enforce type import specifiers

* fix

* Upgrade esbuild

* Fix (haha)
This commit is contained in:
Joshua Chen 2021-12-31 21:17:09 +08:00 committed by GitHub
parent 24d65d9bdd
commit cb1aa30286
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
192 changed files with 484 additions and 337 deletions

View file

@ -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', () => {

View file

@ -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.

View file

@ -11,7 +11,7 @@ import logger from '@docusaurus/logger';
import glob from 'glob';
import Color from 'color';
import {
import type {
ClassicPresetEntries,
SidebarEntry,
SidebarEntries,

View file

@ -6,11 +6,11 @@
*/
import jscodeshift, {
ArrowFunctionExpression,
type ArrowFunctionExpression,
AssignmentExpression,
ASTPath,
Collection,
TemplateElement,
type ASTPath,
type Collection,
type TemplateElement,
VariableDeclarator,
} from 'jscodeshift';