Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <span >{{ foo }}</span >
3
+ </template >
4
+
5
+ <script setup lang="ts">
6
+ const foo = ' bar' ;
7
+
8
+ defineProps <{
9
+ count: number ;
10
+ }>();
11
+
12
+ defineEmits <{
13
+ (e : ' close' ): void ;
14
+ }>();
15
+ </script >
Original file line number Diff line number Diff line change
1
+ error : ' count' of property found , but never used (vue / no - unused - properties ) at ScriptSetup .vue :9 :3 :
2
+ 7 |
3
+ 8 | defineProps < {
4
+ > 9 | count : number ;
5
+ | ^
6
+ 10 | }> ();
7
+ 11 |
8
+ 12 | defineEmits < {
9
+
10
+
1
11
error : raw text ' test' is used (@intlify / vue - i18n / no - raw - text ) at Test .vue :3 :9 :
2
12
1 | <template >
3
13
2 | <span >{ { foo }} </span >
@@ -42,5 +52,5 @@ warning: Unexpected console statement (no-console) at index.ts:3:1:
42
52
4 |
43
53
44
54
45
- 3 errors and 2 warnings found .
55
+ 4 errors and 2 warnings found .
46
56
1 warning potentially fixable with the ` --fix` option .
Original file line number Diff line number Diff line change 3
3
const eslintConfig = {
4
4
env : {
5
5
browser : true ,
6
+ 'vue/setup-compiler-macros' : true ,
6
7
} ,
7
8
8
9
parser : 'vue-eslint-parser' ,
0 commit comments