chore: test file
This commit is contained in:
parent
c4f7422ecb
commit
c51e7181f8
@ -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
3
src/test/import-sort.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export function fun() {
|
||||||
|
console.log('import sort')
|
||||||
|
}
|
1
src/test/index.ts
Normal file
1
src/test/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
import './trailing-comma'
|
6
src/test/trailing-comma.ts
Normal file
6
src/test/trailing-comma.ts
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user