File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change
1
+ docs /.vuepress /dist
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ This rule encourage i18n in about the application needs to be localized.
12
12
13
13
` template ` option:
14
14
``` js
15
- const MyComponent = {
15
+ export default {
16
16
// ✗ BAD
17
- template: ' <p>hello</p>' ,
17
+ template: ' <p>hello</p>'
18
18
// ...
19
19
}
20
20
```
@@ -29,7 +29,7 @@ const MyComponent = {
29
29
30
30
` JSX ` :
31
31
``` js
32
- const MyComponent = {
32
+ export default {
33
33
// ✗ BAD
34
34
render : h => (< p> hello< / p> )
35
35
// ...
@@ -40,9 +40,9 @@ const MyComponent = {
40
40
41
41
` template ` option:
42
42
``` js
43
- const MyComponent = {
43
+ export default {
44
44
// ✓ GOOD
45
- template: ' <p>{{ $(' hello' ) }}</p>' ,
45
+ template: ` <p>{{ $('hello') }}</p>`
46
46
// ...
47
47
}
48
48
```
@@ -57,7 +57,7 @@ const MyComponent = {
57
57
58
58
` JSX ` :
59
59
``` js
60
- const MyComponent = {
60
+ export default {
61
61
// ✓ GOOD
62
62
render : h => (< p> this .$t (' hello' )< / p> )
63
63
// ...
You can’t perform that action at this time.
0 commit comments