Skip to content

Commit

Permalink
fix(taro-cli): 使TS条件下生成的模板,import与export间保持一行空隙,以避免ESLint报错
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored and luckyadam committed Sep 29, 2024
1 parent 4bb4d2b commit 1ccae15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/taro-cli/templates/default/config/dev.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#if typescript }}import type { UserConfigExport } from "@tarojs/cli";
{{/if}}
{{#if typescript }}import type { UserConfigExport } from "@tarojs/cli"{{/if}}

export default {
{{#if (eq compiler "Webpack5") }} logger: {
quiet: false,
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-cli/templates/default/config/prod.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#if typescript }}import type { UserConfigExport } from "@tarojs/cli";
{{/if}}
{{#if typescript }}import type { UserConfigExport } from "@tarojs/cli"{{/if}}

export default {
mini: {},
h5: {
Expand Down

0 comments on commit 1ccae15

Please sign in to comment.