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({
5656:+1 : Examples of ** correct** code for this rule:
5757
5858locale messages:
59- // ✓ GOOD
6059``` js
60+ // ✓ GOOD
6161{
6262 " hello" : " Hello! DIO!" ,
6363 " hi" : " Hi! DIO!" ,
@@ -111,3 +111,12 @@ new Vue({
111111 // ...
112112}).$mount (' #app' )
113113```
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')
4343:+1 : Examples of ** correct** code for this rule:
4444
4545locale messages:
46- // ✓ GOOD
4746``` js
47+ // ✓ GOOD
4848{
4949 " hello" : " Hello! DIO!" ,
5050 " hi" : " Hi! DIO!"
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ localization codes:
6060
6161## :mute : When Not To Use It
6262
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.
6464
6565## :books : Further reading
6666
You can’t perform that action at this time.
0 commit comments