File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ new Vue({
56
56
:+1 : Examples of ** correct** code for this rule:
57
57
58
58
locale messages:
59
- // ✓ GOOD
60
59
``` js
60
+ // ✓ GOOD
61
61
{
62
62
" hello" : " Hello! DIO!" ,
63
63
" hi" : " Hi! DIO!" ,
@@ -111,3 +111,12 @@ new Vue({
111
111
// ...
112
112
}).$mount (' #app' )
113
113
```
114
+
115
+ ## :mute : When Not To Use It
116
+
117
+ If you are certain the localization message is trusted, you can disable this rule.
118
+
119
+ ## :books : Further reading
120
+
121
+ - [ XSS in Vue.js] ( https://blog.sqreen.io/xss-in-vue-js/ )
122
+ - [ Analysis of a Supply Chain Attack] ( https://medium.com/@hkparker/analysis-of-a-supply-chain-attack-2bd8fa8286ac )
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ i18n.t('hello')
43
43
:+1 : Examples of ** correct** code for this rule:
44
44
45
45
locale messages:
46
- // ✓ GOOD
47
46
``` js
47
+ // ✓ GOOD
48
48
{
49
49
" hello" : " Hello! DIO!" ,
50
50
" hi" : " Hi! DIO!"
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ localization codes:
60
60
61
61
## :mute : When Not To Use It
62
62
63
- If you are certain the content passed to ` v-html ` is sanitized HTML you can disable this rule.
63
+ If you are certain the content passed to ` v-html ` is trusted HTML you can disable this rule.
64
64
65
65
## :books : Further reading
66
66
You can’t perform that action at this time.
0 commit comments