Skip to content

Commit a0ec43e

Browse files
committed
👕 refactor(eslint): fix eslint errors
1 parent df3cf08 commit a0ec43e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs/.vuepress/dist

docs/rules/no-raw-text.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
// ...

0 commit comments

Comments
 (0)