chore: test file

This commit is contained in:
Burt 2023-12-21 16:08:47 +08:00
parent c4f7422ecb
commit c51e7181f8
6 changed files with 12 additions and 0 deletions

View File

@ -9,7 +9,9 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue' import { ref } from 'vue'
import { fun } from '../../test/import-sort'
const title = ref('Hello') const title = ref('Hello')
fun()
</script> </script>
<style> <style>

3
src/test/import-sort.ts Normal file
View File

@ -0,0 +1,3 @@
export function fun() {
console.log('import sort')
}

1
src/test/index.ts Normal file
View File

@ -0,0 +1 @@
import './trailing-comma'

View File

@ -0,0 +1,6 @@
// 发现配置了 trailingcomma: "all" 也不会有函数的尾逗号,
// 与prettier官网描述的不一致。 @see https://prettier.io/docs/en/options#trailing-commas
export function fn(a: number, b: number) {
console.log(a, b)
}
fn(12, 2)