File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 16
16
| Rule ID | Description | |
17
17
| :--------| :------------| :---|
18
18
| [ vue-i18n/<wbr >no-dynamic-keys] ( ./no-dynamic-keys.html ) | disallow localization dynamic keys at localization methods | |
19
- | [ vue-i18n/<wbr >no-raw-text] ( ./no-raw-text.html ) | disallow to string literal in template or JSX | |
19
+ | [ vue-i18n/<wbr >no-raw-text] ( ./no-raw-text.html ) | disallow to string literal in template or JSX | : star : |
20
20
| [ vue-i18n/<wbr >no-unused-keys] ( ./no-unused-keys.html ) | disallow unused localization keys | |
21
21
Original file line number Diff line number Diff line change 2
2
3
3
> disallow to string literal in template or JSX
4
4
5
+ - :star : The ` "extends": "plugin:vue-i18n/recommended" ` property in a configuration file enables this rule.
6
+
5
7
This rule warns the usage of string literal.
6
8
7
9
This rule encourage i18n in about the application needs to be localized.
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ module.exports = {
18
18
rules : {
19
19
'vue-i18n/no-html-messages' : 'warn' ,
20
20
'vue-i18n/no-missing-keys' : 'warn' ,
21
+ 'vue-i18n/no-raw-text' : 'warn' ,
21
22
'vue-i18n/no-v-html' : 'warn'
22
23
}
23
24
}
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ module.exports = {
81
81
docs : {
82
82
description : 'disallow to string literal in template or JSX' ,
83
83
category : 'Best Practices' ,
84
- recommended : false
84
+ recommended : true
85
85
} ,
86
86
fixable : null ,
87
87
schema : [ ]
You can’t perform that action at this time.
0 commit comments