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.
1212
1313` template ` option:
1414``` js
15- const MyComponent = {
15+ export default {
1616 // ✗ BAD
17- template: ' <p>hello</p>' ,
17+ template: ' <p>hello</p>'
1818 // ...
1919}
2020```
@@ -29,7 +29,7 @@ const MyComponent = {
2929
3030` JSX ` :
3131``` js
32- const MyComponent = {
32+ export default {
3333 // ✗ BAD
3434 render : h => (< p> hello< / p> )
3535 // ...
@@ -40,9 +40,9 @@ const MyComponent = {
4040
4141` template ` option:
4242``` js
43- const MyComponent = {
43+ export default {
4444 // ✓ GOOD
45- template: ' <p>{{ $(' hello' ) }}</p>' ,
45+ template: ` <p>{{ $('hello') }}</p>`
4646 // ...
4747}
4848```
@@ -57,7 +57,7 @@ const MyComponent = {
5757
5858` JSX ` :
5959``` js
60- const MyComponent = {
60+ export default {
6161 // ✓ GOOD
6262 render : h => (< p> this .$t (' hello' )< / p> )
6363 // ...
You can’t perform that action at this time.
0 commit comments