Skip to content

Commit 399123e

Browse files
committed
docs: use 🧐 for suspicious in rule categories
1 parent a8c82bd commit 399123e

File tree

4 files changed

+91
-91
lines changed

4 files changed

+91
-91
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default [
7777
| `avoid-shorthand-fragment` | Enforces the use of shorthand syntax for fragments. | 🎨 | | |
7878
| `ensure-forward-ref-using-ref` | Requires that components wrapped with `forwardRef` must have a `ref` parameter. | ✔️ | | |
7979
| `no-access-state-in-setstate` | Prevents accessing `this.state` inside `setState` calls. | ✔️ | | |
80-
| `no-array-index-key` | Warns when an array `index` is used as a `key` prop. | 👀 | | |
80+
| `no-array-index-key` | Warns when an array `index` is used as a `key` prop. | 🧐 | | |
8181
| `no-children-count` | Prevents usage of `Children.count`. || | |
8282
| `no-children-for-each` | Prevents usage of `Children.forEach`. || | |
8383
| `no-children-map` | Prevents usage of `Children.map`. || | |
@@ -86,27 +86,27 @@ export default [
8686
| `no-children-to-array` | Prevents usage of `Children.toArray`. || | |
8787
| `no-class-component` | Prevents usage of class component. || | |
8888
| `no-clone-element` | Prevents usage of `cloneElement`. || | |
89-
| `no-comment-textnodes` | Prevents comments from being inserted as text nodes. | 👀 | | |
89+
| `no-comment-textnodes` | Prevents comments from being inserted as text nodes. | 🧐 | | |
9090
| `no-component-will-mount` | Prevents usage of `componentWillMount`. || | |
9191
| `no-component-will-receive-props` | Prevents usage of `componentWillReceiveProps`. || | |
9292
| `no-component-will-update` | Prevents usage of `componentWillUpdate`. || | |
9393
| `no-create-ref` | Prevents usage of `createRef`. || | |
9494
| `no-default-props` | Prevents usage of `defaultProps`. || | |
9595
| `no-direct-mutation-state` | Prevents direct mutation of `this.state`. | ✔️ | | |
9696
| `no-duplicate-key` | Prevents duplicate `key` props on elements in the same array or a list of `children`. | ✔️ | | |
97-
| `no-leaked-conditional-rendering` | Prevents problematic leaked values from being rendered. | 👀 | 💭 | |
97+
| `no-leaked-conditional-rendering` | Prevents problematic leaked values from being rendered. | 🧐 | 💭 | |
9898
| `no-missing-component-display-name` | Enforces that all components have a `displayName` which can be used in devtools. | 🐞 | | |
9999
| `no-missing-key` | Prevents missing `key` prop on items in list rendering. | ✔️ | | |
100100
| `no-nested-components` | Prevents nesting component definitions inside other components. | ✔️ | | |
101101
| `no-prop-types` | Prevents usage of `propTypes`. || | |
102102
| `no-redundant-should-component-update` | Prevents usage of `shouldComponentUpdate` when extending `React.PureComponent`. | ✔️ | | |
103-
| `no-set-state-in-component-did-mount` | Disallows calling `this.setState` in `componentDidMount` outside of functions, such as callbacks. | 👀 | | |
104-
| `no-set-state-in-component-did-update` | Disallows calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks. | 👀 | | |
105-
| `no-set-state-in-component-will-update` | Disallows calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks. | 👀 | | |
103+
| `no-set-state-in-component-did-mount` | Disallows calling `this.setState` in `componentDidMount` outside of functions, such as callbacks. | 🧐 | | |
104+
| `no-set-state-in-component-did-update` | Disallows calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks. | 🧐 | | |
105+
| `no-set-state-in-component-will-update` | Disallows calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks. | 🧐 | | |
106106
| `no-string-refs` | Disallows using deprecated string `refs`. || | |
107-
| `no-unsafe-component-will-mount` | Warns usage of `UNSAFE_componentWillMount` in class components. | 👀 | | |
108-
| `no-unsafe-component-will-receive-props` | Warns usage of `UNSAFE_componentWillReceiveProps` in class components. | 👀 | | |
109-
| `no-unsafe-component-will-update` | Warns usage of `UNSAFE_componentWillUpdate` in class components. | 👀 | | |
107+
| `no-unsafe-component-will-mount` | Warns usage of `UNSAFE_componentWillMount` in class components. | 🧐 | | |
108+
| `no-unsafe-component-will-receive-props` | Warns usage of `UNSAFE_componentWillReceiveProps` in class components. | 🧐 | | |
109+
| `no-unsafe-component-will-update` | Warns usage of `UNSAFE_componentWillUpdate` in class components. | 🧐 | | |
110110
| `no-unstable-context-value` | Prevents non-stable values (i.e. object literals) from being used as a value for `Context.Provider`. | 🚀 | | |
111111
| `no-unstable-default-props` | Prevents usage of referential-type values as default props in object destructuring. | 🚀 | | |
112112
| `no-unused-class-component-members` | Warns unused class component methods and properties. | ✔️ | | |

packages/types/docs/type-aliases/RuleCategoryEmoji.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
# Type Alias: RuleCategoryEmoji
88

9-
> **RuleCategoryEmoji**: `"⛔"` \| `"✔️"` \| `"❌"` \| `"🎨"` \| `"🐞"` \| `"👀"` \| `"📖"` \| `"🔒"` \| `"🚀"` \| `"🤔"` \| `"🤯"`
9+
> **RuleCategoryEmoji**: `"⛔"` \| `"✔️"` \| `"❌"` \| `"🎨"` \| `"🐞"` \| `"🧐"` \| `"📖"` \| `"🔒"` \| `"🚀"` \| `"🤔"` \| `"🤯"`

packages/types/src/rule-category.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type RuleCategoryEmoji =
1717
| "❌" // deprecated
1818
| "🎨" // style
1919
| "🐞" // debug
20-
| "👀" // suspicious
20+
| "🧐" // suspicious
2121
| "📖" // convention
2222
| "🔒" // security
2323
| "🚀" // perf

0 commit comments

Comments
 (0)