Skip to content

Commit 47ded5a

Browse files
fix lint 'consistent-type-imports' rules (#1453)
* fix lint 'consistent-type-imports' rules * fix for review comment #1453 (comment)
1 parent 98d5718 commit 47ded5a

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

packages/toolkit/scripts/build.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ async function bundle(options: BuildOptions & EntryPointOptions) {
177177
return
178178
}
179179
const source = await fs.readFile(args.path, 'utf-8')
180-
const defaultPattern = /\/\* PROD_START_REMOVE_UMD[\s\S]*?\/\* PROD_STOP_REMOVE_UMD \*\//g
180+
const defaultPattern =
181+
/\/\* PROD_START_REMOVE_UMD[\s\S]*?\/\* PROD_STOP_REMOVE_UMD \*\//g
181182
const code = source.replace(defaultPattern, '')
182183
return {
183184
contents: code,
@@ -332,9 +333,8 @@ async function main({ skipExtraction = false, local = false }: BuildArgs) {
332333
for (let entryPoint of entryPoints) {
333334
try {
334335
// Load and parse the api-extractor.json file
335-
const extractorConfig: ExtractorConfig = ExtractorConfig.loadFileAndPrepare(
336-
entryPoint.extractionConfig
337-
)
336+
const extractorConfig: ExtractorConfig =
337+
ExtractorConfig.loadFileAndPrepare(entryPoint.extractionConfig)
338338

339339
console.log('Extracting API types for entry point: ', entryPoint.prefix)
340340
// Invoke API Extractor

packages/toolkit/scripts/moduld.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare module 'merge-source-map' {
2-
import { RawSourceMap } from 'source-map'
2+
import type { RawSourceMap } from 'source-map'
33
export default function merge(
44
map1: string | RawSourceMap,
55
map2: string | RawSourceMap

packages/toolkit/src/tests/mapBuilders.typetest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { createAsyncThunk, SerializedError } from '@internal/createAsyncThunk'
1+
import type { SerializedError } from '@internal/createAsyncThunk';
2+
import { createAsyncThunk } from '@internal/createAsyncThunk'
23
import { executeReducerBuilderCallback } from '@internal/mapBuilders'
34
import type { AnyAction } from '@reduxjs/toolkit'
45
import { createAction } from '@reduxjs/toolkit'

0 commit comments

Comments
 (0)