Skip to content

Commit b7b5f16

Browse files
authored
Support suggestion to no-raw-text rule (#232)
1 parent 7cd9ab3 commit b7b5f16

File tree

5 files changed

+1231
-169
lines changed

5 files changed

+1231
-169
lines changed

docs/rules/no-raw-text.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ This rule encourage i18n in about the application needs to be localized.
2929

3030
```js
3131
/* eslint @intlify/vue-i18n/no-raw-text: 'error' */
32-
export default {
32+
export default Vue.extend({
3333
// ✗ BAD
3434
template: '<p>hello</p>'
3535
// ...
36-
}
36+
})
3737
```
3838

3939
</eslint-code-block>
@@ -83,11 +83,11 @@ export default {
8383

8484
```js
8585
/* eslint @intlify/vue-i18n/no-raw-text: 'error' */
86-
export default {
86+
export default Vue.extend({
8787
// ✓ GOOD
8888
template: `<p>{{ \$t('hello') }}</p>`
8989
// ...
90-
}
90+
})
9191
```
9292

9393
</eslint-code-block>

0 commit comments

Comments
 (0)