Skip to content

Commit 1ccae15

Browse files
skyclouds2001luckyadam
authored andcommitted
fix(taro-cli): 使TS条件下生成的模板,import与export间保持一行空隙,以避免ESLint报错
1 parent 4bb4d2b commit 1ccae15

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/taro-cli/templates/default/config/dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{{#if typescript }}import type { UserConfigExport } from "@tarojs/cli";
2-
{{/if}}
1+
{{#if typescript }}import type { UserConfigExport } from "@tarojs/cli"{{/if}}
2+
33
export default {
44
{{#if (eq compiler "Webpack5") }} logger: {
55
quiet: false,

packages/taro-cli/templates/default/config/prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{{#if typescript }}import type { UserConfigExport } from "@tarojs/cli";
2-
{{/if}}
1+
{{#if typescript }}import type { UserConfigExport } from "@tarojs/cli"{{/if}}
2+
33
export default {
44
mini: {},
55
h5: {

0 commit comments

Comments
 (0)