Skip to content

Commit 56b0941

Browse files
committed
refactor(website): minor improvements
1 parent e98ef3b commit 56b0941

File tree

12 files changed

+22
-6
lines changed

12 files changed

+22
-6
lines changed

packages/plugins/eslint-plugin-react-x/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,12 @@ export default [
8585
| `no-class-component` | Prevents usage of class component. || | |
8686
| `no-clone-element` | Prevents usage of `cloneElement`. || | |
8787
| `no-comment-textnodes` | Prevents comments from being inserted as text nodes. | 👀 | | |
88-
| `no-complicated-conditional-rendering` | Prevents complicated conditional rendering in JSX. | 🤯 | ||
8988
| `no-component-will-mount` | Prevents usage of `componentWillMount`. || | |
9089
| `no-component-will-receive-props` | Prevents usage of `componentWillReceiveProps`. || | |
9190
| `no-component-will-update` | Prevents usage of `componentWillUpdate`. || | |
9291
| `no-create-ref` | Prevents usage of `createRef`. || | |
9392
| `no-direct-mutation-state` | Prevents direct mutation of `this.state`. | ✔️ | | |
9493
| `no-duplicate-key` | Prevents duplicate `key` props on elements in the same array or a list of `children`. | ✔️ | | |
95-
| `no-implicit-key` | Prevents `key` prop from not being explicitly specified (e.g. spreading `key` prop from objects). | 👀 | ||
9694
| `no-leaked-conditional-rendering` | Prevents problematic leaked values from being rendered. | 👀 | 💭 | |
9795
| `no-missing-component-display-name` | Enforces that all components have a `displayName` which can be used in devtools. | 🐞 | | |
9896
| `no-missing-key` | Prevents missing `key` prop on items in list rendering. | ✔️ | | |

website/next.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ const nextConfig = {
2929
output: "standalone",
3030
redirects() {
3131
return [
32+
{
33+
source: "/docs",
34+
destination: "/docs/installation",
35+
permanent: true,
36+
},
37+
{
38+
source: "/docs/rules",
39+
destination: "/docs/rules/overview",
40+
permanent: true,
41+
},
3242
{
3343
source: "/faq",
3444
destination: "/docs/faq",

website/pages/_meta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ export default {
2323
presets: {
2424
title: "Presets",
2525
type: "page",
26-
href: "/docs/presets/overview",
26+
href: "/docs/presets",
2727
},
2828
} as const;
File renamed without changes.

website/pages/docs/rules/debug-class-component.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# debug/class-component
1+
# class-component
22

33
## Rule category
44

website/pages/docs/rules/debug-function-component.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# debug/function-component
1+
# function-component
22

33
## Rule category
44

website/pages/docs/rules/debug-react-hooks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# debug/react-hooks
1+
# react-hooks
22

33
## Rule category
44

Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)