Skip to content

Commit 2f6c6e8

Browse files
committed
update docs
1 parent 569afb7 commit 2f6c6e8

6 files changed

+52
-0
lines changed

docs/rules/no-uint8array-frombase64.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,28 @@ Uint8Array.fromBase64(string)
2424

2525
</eslint-playground>
2626

27+
## 🔧 Options
28+
29+
This rule has an option.
30+
31+
```jsonc
32+
{
33+
"rules": {
34+
"es-x/no-uint8array-frombase64": [
35+
"error",
36+
{
37+
"allowTestedProperty": false
38+
}
39+
]
40+
}
41+
}
42+
```
43+
44+
### allowTestedProperty: boolean
45+
46+
Configure the allowTestedProperty mode for only this rule.
47+
This is prior to the `settings['es-x'].allowTestedProperty` setting.
48+
2749
## 📚 References
2850

2951
- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-uint8array-frombase64.js)

docs/rules/no-uint8array-fromhex.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,28 @@ Uint8Array.fromHex(string)
2424

2525
</eslint-playground>
2626

27+
## 🔧 Options
28+
29+
This rule has an option.
30+
31+
```jsonc
32+
{
33+
"rules": {
34+
"es-x/no-uint8array-fromhex": [
35+
"error",
36+
{
37+
"allowTestedProperty": false
38+
}
39+
]
40+
}
41+
}
42+
```
43+
44+
### allowTestedProperty: boolean
45+
46+
Configure the allowTestedProperty mode for only this rule.
47+
This is prior to the `settings['es-x'].allowTestedProperty` setting.
48+
2749
## 📚 References
2850

2951
- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-uint8array-fromhex.js)

docs/rules/no-uint8array-prototype-setfrombase64.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ const { read, written } = target.setFromBase64('Zm9vYmFy')
2727

2828
</eslint-playground>
2929

30+
## 🔧 Options
31+
3032
This rule has an option.
3133

3234
```jsonc

docs/rules/no-uint8array-prototype-setfromhex.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ const { read, written } = target.setFromHex('Zm9vYmFy')
2727

2828
</eslint-playground>
2929

30+
## 🔧 Options
31+
3032
This rule has an option.
3133

3234
```jsonc

docs/rules/no-uint8array-prototype-tobase64.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ console.log(arr.toBase64());
2727

2828
</eslint-playground>
2929

30+
## 🔧 Options
31+
3032
This rule has an option.
3133

3234
```jsonc

docs/rules/no-uint8array-prototype-tohex.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ console.log(arr.toHex());
2727

2828
</eslint-playground>
2929

30+
## 🔧 Options
31+
3032
This rule has an option.
3133

3234
```jsonc

0 commit comments

Comments
 (0)