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 1616| Rule ID | Description | |
1717| :--------| :------------| :---|
1818| [ 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 : |
2020| [ vue-i18n/<wbr >no-unused-keys] ( ./no-unused-keys.html ) | disallow unused localization keys | |
2121
Original file line number Diff line number Diff line change 22
33> disallow to string literal in template or JSX
44
5+ - :star : The ` "extends": "plugin:vue-i18n/recommended" ` property in a configuration file enables this rule.
6+
57This rule warns the usage of string literal.
68
79This 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 = {
1818 rules : {
1919 'vue-i18n/no-html-messages' : 'warn' ,
2020 'vue-i18n/no-missing-keys' : 'warn' ,
21+ 'vue-i18n/no-raw-text' : 'warn' ,
2122 'vue-i18n/no-v-html' : 'warn'
2223 }
2324}
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ module.exports = {
8181 docs : {
8282 description : 'disallow to string literal in template or JSX' ,
8383 category : 'Best Practices' ,
84- recommended : false
84+ recommended : true
8585 } ,
8686 fixable : null ,
8787 schema : [ ]
You can’t perform that action at this time.
0 commit comments