Skip to content

Commit e66b8a0

Browse files
committed
Add See Also sections to related rules docs
1 parent 821bd63 commit e66b8a0

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

packages/plugins/eslint-plugin-react-x/src/rules/jsx-dollar.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,10 @@ function MyComponent({ price }) {
9898

9999
- [Rule Source](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x/src/rules/jsx-dollar.ts)
100100
- [Test Source](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x/src/rules/jsx-dollar.spec.ts)
101+
102+
---
103+
104+
## See Also
105+
106+
- [`jsx-no-comment-textnodes`](./jsx-no-comment-textnodes)\
107+
Prevents comment strings (e.g. beginning with `//` or `/*`) from being accidentally inserted into the JSX element's textnodes.

packages/plugins/eslint-plugin-react-x/src/rules/jsx-no-comment-textnodes.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,10 @@ function MyComponent() {
7777

7878
- [Rule Source](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x/src/rules/jsx-no-comment-textnodes.ts)
7979
- [Test Source](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x/src/rules/jsx-no-comment-textnodes.spec.ts)
80+
81+
---
82+
83+
## See Also
84+
85+
- [`jsx-dollar`](./jsx-dollar)\
86+
Prevents unnecessary dollar signs (`$`) from being inserted before an expression in JSX.

0 commit comments

Comments
 (0)