Skip to content

Commit 06ecd80

Browse files
committed
📝 docs(vuepress): updates
1 parent 9d310aa commit 06ecd80

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

docs/rules/no-html-messages.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ new Vue({
5656
:+1: Examples of **correct** code for this rule:
5757

5858
locale 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)

docs/rules/no-unused-keys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ i18n.t('hello')
4343
:+1: Examples of **correct** code for this rule:
4444

4545
locale messages:
46-
// ✓ GOOD
4746
```js
47+
// ✓ GOOD
4848
{
4949
"hello": "Hello! DIO!",
5050
"hi": "Hi! DIO!"

docs/rules/no-v-html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)