eslint-plugin-react-x
Advanced tools
Comparing version 1.5.21 to 1.5.22-next.0
@@ -16,46 +16,47 @@ import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint'; | ||
declare const rules: { | ||
readonly "avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"AVOID_SHORTHAND_BOOLEAN", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"AVOID_SHORTHAND_FRAGMENT", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_FORWARD_REF_USING_REF", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_ACCESS_STATE_IN_SETSTATE", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_ARRAY_INDEX_KEY", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CHILDREN_COUNT", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-children-for-each": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CHILDREN_FOR_EACH", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-children-map": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CHILDREN_MAP", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-children-only": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CHILDREN_ONLY", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-children-prop": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CHILDREN_PROP", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-children-to-array": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CHILDREN_TO_ARRAY", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-class-component": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CLASS_COMPONENT", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-clone-element": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CLONE_ELEMENT", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-comment-textnodes": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_COMMENT_TEXTNODES", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_COMPLICATED_CONDITIONAL_RENDERING", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-component-will-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_COMPONENT_WILL_MOUNT", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-component-will-receive-props": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_COMPONENT_WILL_RECEIVE_PROPS", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-component-will-update": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_COMPONENT_WILL_UPDATE", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-create-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CREATE_REF", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_DIRECT_MUTATION_STATE", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_DUPLICATE_KEY", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_IMPLICIT_KEY", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_LEAKED_CONDITIONAL_RENDERING", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_MISSING_COMPONENT_DISPLAY_NAME", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_REDUNDANT_SHOULD_COMPONENT_UPDATE", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_SET_STATE_IN_COMPONENT_DID_MOUNT", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-set-state-in-component-did-update": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_SET_STATE_IN_COMPONENT_DID_UPDATE", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-set-state-in-component-will-update": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_SET_STATE_IN_COMPONENT_WILL_UPDATE", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-string-refs": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_STRING_REFS", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-unsafe-component-will-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_UNSAFE_COMPONENT_WILL_MOUNT", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-unsafe-component-will-receive-props": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_UNSAFE_COMPONENT_WILL_RECEIVE_PROPS", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-unsafe-component-will-update": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_UNSAFE_COMPONENT_WILL_UPDATE", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$2, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_UNSTABLE_DEFAULT_PROPS", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_UNUSED_CLASS_COMPONENT_MEMBERS", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_UNUSED_STATE", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-useless-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$3, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "prefer-destructuring-assignment": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_DESTRUCTURING_ASSIGNMENT", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "prefer-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_SHORTHAND_BOOLEAN", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "prefer-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_SHORTHAND_FRAGMENT", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "avoid-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"AVOID_SHORTHAND_BOOLEAN", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "avoid-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"AVOID_SHORTHAND_FRAGMENT", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "ensure-forward-ref-using-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"ENSURE_FORWARD_REF_USING_REF", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-access-state-in-setstate": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_ACCESS_STATE_IN_SETSTATE", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-array-index-key": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_ARRAY_INDEX_KEY", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-children-count": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CHILDREN_COUNT", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-children-for-each": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CHILDREN_FOR_EACH", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-children-map": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CHILDREN_MAP", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-children-only": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CHILDREN_ONLY", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-children-prop": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CHILDREN_PROP", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-children-to-array": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CHILDREN_TO_ARRAY", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-class-component": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CLASS_COMPONENT", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-clone-element": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CLONE_ELEMENT", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-comment-textnodes": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_COMMENT_TEXTNODES", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_COMPLICATED_CONDITIONAL_RENDERING", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-component-will-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_COMPONENT_WILL_MOUNT", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-component-will-receive-props": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_COMPONENT_WILL_RECEIVE_PROPS", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-component-will-update": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_COMPONENT_WILL_UPDATE", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-create-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_CREATE_REF", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_DIRECT_MUTATION_STATE", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_DUPLICATE_KEY", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_IMPLICIT_KEY", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_LEAKED_CONDITIONAL_RENDERING", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-missing-component-display-name": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_MISSING_COMPONENT_DISPLAY_NAME", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-missing-key": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-nested-components": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-redundant-should-component-update": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_REDUNDANT_SHOULD_COMPONENT_UPDATE", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-set-state-in-component-did-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_SET_STATE_IN_COMPONENT_DID_MOUNT", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-set-state-in-component-did-update": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_SET_STATE_IN_COMPONENT_DID_UPDATE", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-set-state-in-component-will-update": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_SET_STATE_IN_COMPONENT_WILL_UPDATE", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-string-refs": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_STRING_REFS", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-unsafe-component-will-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_UNSAFE_COMPONENT_WILL_MOUNT", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-unsafe-component-will-receive-props": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_UNSAFE_COMPONENT_WILL_RECEIVE_PROPS", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-unsafe-component-will-update": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_UNSAFE_COMPONENT_WILL_UPDATE", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$2, [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_UNSTABLE_DEFAULT_PROPS", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_UNUSED_CLASS_COMPONENT_MEMBERS", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"NO_UNUSED_STATE", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "no-useless-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$3, [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "prefer-destructuring-assignment": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_DESTRUCTURING_ASSIGNMENT", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "prefer-read-only-props": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_READ_ONLY_PROPS", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "prefer-shorthand-boolean": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_SHORTHAND_BOOLEAN", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
readonly "prefer-shorthand-fragment": _typescript_eslint_utils_ts_eslint.RuleModule<"PREFER_SHORTHAND_FRAGMENT", [], _typescript_eslint_utils_ts_eslint.RuleListener>; | ||
}; | ||
export { meta, rules }; |
{ | ||
"name": "eslint-plugin-react-x", | ||
"version": "1.5.21", | ||
"version": "1.5.22-next.0", | ||
"description": "ESLint React's ESLint plugin for React related rules.", | ||
@@ -38,19 +38,20 @@ "homepage": "https://github.com/rel1cx/eslint-react", | ||
"dependencies": { | ||
"@typescript-eslint/scope-manager": "8.0.0-alpha.40", | ||
"@typescript-eslint/type-utils": "8.0.0-alpha.40", | ||
"@typescript-eslint/types": "8.0.0-alpha.40", | ||
"@typescript-eslint/utils": "8.0.0-alpha.40", | ||
"@eslint-react/ast": "1.5.21", | ||
"@eslint-react/core": "1.5.21", | ||
"@eslint-react/jsx": "1.5.21", | ||
"@eslint-react/tools": "1.5.21", | ||
"@eslint-react/types": "1.5.21", | ||
"@eslint-react/var": "1.5.21", | ||
"@eslint-react/shared": "1.5.21" | ||
"@typescript-eslint/scope-manager": "7.15.0", | ||
"@typescript-eslint/type-utils": "7.15.0", | ||
"@typescript-eslint/types": "7.15.0", | ||
"@typescript-eslint/utils": "7.15.0", | ||
"is-immutable-type": "4.0.0", | ||
"@eslint-react/ast": "1.5.22-next.0", | ||
"@eslint-react/core": "1.5.22-next.0", | ||
"@eslint-react/jsx": "1.5.22-next.0", | ||
"@eslint-react/shared": "1.5.22-next.0", | ||
"@eslint-react/tools": "1.5.22-next.0", | ||
"@eslint-react/types": "1.5.22-next.0", | ||
"@eslint-react/var": "1.5.22-next.0" | ||
}, | ||
"devDependencies": { | ||
"dedent": "1.5.3", | ||
"effect": "3.4.6", | ||
"effect": "3.4.7", | ||
"string-ts": "2.2.0", | ||
"ts-api-utils": "1.3.0", | ||
"ts-api-utils": "^1.3.0", | ||
"tsup": "8.1.0" | ||
@@ -57,0 +58,0 @@ }, |
@@ -72,45 +72,46 @@ # eslint-plugin-react-x | ||
| Rule | Description | 💼 | 💭 | ❌ | | ||
| :--------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------- | :-: | :-: | :-: | | ||
| [`avoid-shorthand-boolean`](avoid-shorthand-boolean) | Enforces the use of shorthand syntax for boolean attributes. | 🎨 | | | | ||
| [`avoid-shorthand-fragment`](avoid-shorthand-fragment) | Enforces the use of shorthand syntax for fragments. | 🎨 | | | | ||
| [`ensure-forward-ref-using-ref`](ensure-forward-ref-using-ref) | Requires that components wrapped with `forwardRef` must have a `ref` parameter. | ✔️ | | | | ||
| [`no-access-state-in-setstate`](no-access-state-in-setstate) | Prevents accessing `this.state` inside `setState` calls. | ✔️ | | | | ||
| [`no-array-index-key`](no-array-index-key) | Warns when an array `index` is used as a `key` prop. | 👀 | | | | ||
| [`no-children-count`](no-children-count) | Prevents usage of `Children.count`. | ⛔ | | | | ||
| [`no-children-for-each`](no-children-for-each) | Prevents usage of `Children.forEach`. | ⛔ | | | | ||
| [`no-children-map`](no-children-map) | Prevents usage of `Children.map`. | ⛔ | | | | ||
| [`no-children-only`](no-children-only) | Prevents usage of `Children.only`. | ⛔ | | | | ||
| [`no-children-prop`](no-children-prop) | Prevents usage of `children` as a prop. | ⛔ | | | | ||
| [`no-children-to-array`](no-children-to-array) | Prevents usage of `Children.toArray`. | ⛔ | | | | ||
| [`no-class-component`](no-class-component) | Prevents usage of class component. | ⛔ | | | | ||
| [`no-clone-element`](no-clone-element) | Prevents usage of `cloneElement`. | ⛔ | | | | ||
| [`no-comment-textnodes`](no-comment-textnodes) | Prevents comments from being inserted as text nodes. | 👀 | | | | ||
| [`no-complicated-conditional-rendering`](no-complicated-conditional-rendering) | Prevents complicated conditional rendering in JSX. | 🤯 | | ❌ | | ||
| [`no-component-will-mount`](no-component-will-mount) | Prevents usage of `componentWillMount`. | ⛔ | | | | ||
| [`no-component-will-receive-props`](no-component-will-receive-props) | Prevents usage of `componentWillReceiveProps`. | ⛔ | | | | ||
| [`no-component-will-update`](no-component-will-update) | Prevents usage of `componentWillUpdate`. | ⛔ | | | | ||
| [`no-create-ref`](no-create-ref) | Prevents usage of `createRef`. | ⛔ | | | | ||
| [`no-direct-mutation-state`](no-direct-mutation-state) | Prevents direct mutation of `this.state`. | ✔️ | | | | ||
| [`no-duplicate-key`](no-duplicate-key) | Prevents duplicate `key` props on elements in the same array or a list of `children`. | ✔️ | | | | ||
| [`no-implicit-key`](no-implicit-key) | Prevents `key` prop from not being explicitly specified (e.g. spreading `key` prop from objects). | 👀 | | ❌ | | ||
| [`no-leaked-conditional-rendering`](no-leaked-conditional-rendering) | Prevents problematic leaked values from being rendered. | 👀 | 💭 | | | ||
| [`no-missing-component-display-name`](no-missing-component-display-name) | Enforces that all components have a `displayName` which can be used in devtools. | 🐞 | | | | ||
| [`no-missing-key`](no-missing-key) | Prevents missing `key` prop on items in list rendering. | ✔️ | | | | ||
| [`no-nested-components`](no-nested-components) | Prevents nesting component definitions inside other components. | ✔️ | | | | ||
| [`no-redundant-should-component-update`](no-redundant-should-component-update) | Prevents usage of `shouldComponentUpdate` when extending `React.PureComponent`. | ✔️ | | | | ||
| [`no-set-state-in-component-did-mount`](no-set-state-in-component-did-mount) | Disallows calling `this.setState` in `componentDidMount` outside of functions, such as callbacks. | 👀 | | | | ||
| [`no-set-state-in-component-did-update`](no-set-state-in-component-did-update) | Disallows calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks. | 👀 | | | | ||
| [`no-set-state-in-component-will-update`](no-set-state-in-component-will-update) | Disallows calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks. | 👀 | | | | ||
| [`no-string-refs`](no-string-refs) | Disallows using deprecated string `refs`. | ⛔ | | | | ||
| [`no-unsafe-component-will-mount`](no-unsafe-component-will-mount) | Warns usage of `UNSAFE_componentWillMount` in class components. | 👀 | | | | ||
| [`no-unsafe-component-will-receive-props`](no-unsafe-component-will-receive-props) | Warns usage of `UNSAFE_componentWillReceiveProps` in class components. | 👀 | | | | ||
| [`no-unsafe-component-will-update`](no-unsafe-component-will-update) | Warns usage of `UNSAFE_componentWillUpdate` in class components. | 👀 | | | | ||
| [`no-unstable-context-value`](no-unstable-context-value) | Prevents non-stable values (i.e. object literals) from being used as a value for `Context.Provider`. | 🚀 | | | | ||
| [`no-unstable-default-props`](no-unstable-default-props) | Prevents usage of referential-type values as default props in object destructuring. | 🚀 | | | | ||
| [`no-unused-class-component-members`](no-unused-class-component-members) | Warns unused class component methods and properties. | ✔️ | | | | ||
| [`no-unused-state`](no-unused-state) | Warns unused class component state. | ✔️ | | | | ||
| [`no-useless-fragment`](no-useless-fragment) | Prevents the use of useless `fragment` components or `<>` syntax. | ✔️ | | | | ||
| [`prefer-destructuring-assignment`](prefer-destructuring-assignment) | Enforces the use of destructuring assignment over property assignment. | 🎨 | | | | ||
| [`prefer-shorthand-boolean`](prefer-shorthand-boolean) | Enforces the use of shorthand syntax for boolean attributes. | 🎨 | | | | ||
| [`prefer-shorthand-fragment`](prefer-shorthand-fragment) | Enforces the use of shorthand syntax for fragments. | 🎨 | | | | ||
| Rule | Description | 💼 | 💭 | ❌ | | ||
| :------------------------------------- | :--------------------------------------------------------------------------------------------------- | :-: | :-: | :-: | | ||
| avoid-shorthand-boolean | Enforces the use of shorthand syntax for boolean attributes. | 🎨 | | | | ||
| avoid-shorthand-fragment | Enforces the use of shorthand syntax for fragments. | 🎨 | | | | ||
| ensure-forward-ref-using-ref | Requires that components wrapped with `forwardRef` must have a `ref` parameter. | ✔️ | | | | ||
| no-access-state-in-setstate | Prevents accessing `this.state` inside `setState` calls. | ✔️ | | | | ||
| no-array-index-key | Warns when an array `index` is used as a `key` prop. | 👀 | | | | ||
| no-children-count | Prevents usage of `Children.count`. | ⛔ | | | | ||
| no-children-for-each | Prevents usage of `Children.forEach`. | ⛔ | | | | ||
| no-children-map | Prevents usage of `Children.map`. | ⛔ | | | | ||
| no-children-only | Prevents usage of `Children.only`. | ⛔ | | | | ||
| no-children-prop | Prevents usage of `children` as a prop. | ⛔ | | | | ||
| no-children-to-array | Prevents usage of `Children.toArray`. | ⛔ | | | | ||
| no-class-component | Prevents usage of class component. | ⛔ | | | | ||
| no-clone-element | Prevents usage of `cloneElement`. | ⛔ | | | | ||
| no-comment-textnodes | Prevents comments from being inserted as text nodes. | 👀 | | | | ||
| no-complicated-conditional-rendering | Prevents complicated conditional rendering in JSX. | 🤯 | | ❌ | | ||
| no-component-will-mount | Prevents usage of `componentWillMount`. | ⛔ | | | | ||
| no-component-will-receive-props | Prevents usage of `componentWillReceiveProps`. | ⛔ | | | | ||
| no-component-will-update | Prevents usage of `componentWillUpdate`. | ⛔ | | | | ||
| no-create-ref | Prevents usage of `createRef`. | ⛔ | | | | ||
| no-direct-mutation-state | Prevents direct mutation of `this.state`. | ✔️ | | | | ||
| no-duplicate-key | Prevents duplicate `key` props on elements in the same array or a list of `children`. | ✔️ | | | | ||
| no-implicit-key | Prevents `key` prop from not being explicitly specified (e.g. spreading `key` prop from objects). | 👀 | | ❌ | | ||
| no-leaked-conditional-rendering | Prevents problematic leaked values from being rendered. | 👀 | 💭 | | | ||
| no-missing-component-display-name | Enforces that all components have a `displayName` which can be used in devtools. | 🐞 | | | | ||
| no-missing-key | Prevents missing `key` prop on items in list rendering. | ✔️ | | | | ||
| no-nested-components | Prevents nesting component definitions inside other components. | ✔️ | | | | ||
| no-redundant-should-component-update | Prevents usage of `shouldComponentUpdate` when extending `React.PureComponent`. | ✔️ | | | | ||
| no-set-state-in-component-did-mount | Disallows calling `this.setState` in `componentDidMount` outside of functions, such as callbacks. | 👀 | | | | ||
| no-set-state-in-component-did-update | Disallows calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks. | 👀 | | | | ||
| no-set-state-in-component-will-update | Disallows calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks. | 👀 | | | | ||
| no-string-refs | Disallows using deprecated string `refs`. | ⛔ | | | | ||
| no-unsafe-component-will-mount | Warns usage of `UNSAFE_componentWillMount` in class components. | 👀 | | | | ||
| no-unsafe-component-will-receive-props | Warns usage of `UNSAFE_componentWillReceiveProps` in class components. | 👀 | | | | ||
| no-unsafe-component-will-update | Warns usage of `UNSAFE_componentWillUpdate` in class components. | 👀 | | | | ||
| no-unstable-context-value | Prevents non-stable values (i.e. object literals) from being used as a value for `Context.Provider`. | 🚀 | | | | ||
| no-unstable-default-props | Prevents usage of referential-type values as default props in object destructuring. | 🚀 | | | | ||
| no-unused-class-component-members | Warns unused class component methods and properties. | ✔️ | | | | ||
| no-unused-state | Warns unused class component state. | ✔️ | | | | ||
| no-useless-fragment | Prevents the use of useless `fragment` components or `<>` syntax. | ✔️ | | | | ||
| prefer-read-only-props | Enforces that function components props are readonly. | ✔️ | 💭 | | | ||
| prefer-destructuring-assignment | Enforces the use of destructuring assignment over property assignment. | 🎨 | | | | ||
| prefer-shorthand-boolean | Enforces the use of shorthand syntax for boolean attributes. | 🎨 | | | | ||
| prefer-shorthand-fragment | Enforces the use of shorthand syntax for fragments. | 🎨 | | | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
326131
8694
117
14
1
+ Addedis-immutable-type@4.0.0
+ Added@eslint-react/ast@1.5.22-next.0(transitive)
+ Added@eslint-react/core@1.5.22-next.0(transitive)
+ Added@eslint-react/jsx@1.5.22-next.0(transitive)
+ Added@eslint-react/shared@1.5.22-next.0(transitive)
+ Added@eslint-react/tools@1.5.22-next.0(transitive)
+ Added@eslint-react/types@1.5.22-next.0(transitive)
+ Added@eslint-react/var@1.5.22-next.0(transitive)
+ Added@eslint/eslintrc@2.1.4(transitive)
+ Added@eslint/js@8.57.1(transitive)
+ Added@humanwhocodes/config-array@0.13.0(transitive)
+ Added@humanwhocodes/object-schema@2.0.3(transitive)
+ Added@typescript-eslint/scope-manager@7.15.0(transitive)
+ Added@typescript-eslint/type-utils@7.15.0(transitive)
+ Added@typescript-eslint/types@7.15.0(transitive)
+ Added@typescript-eslint/typescript-estree@7.15.0(transitive)
+ Added@typescript-eslint/utils@7.15.0(transitive)
+ Added@typescript-eslint/visitor-keys@7.15.0(transitive)
+ Added@ungap/structured-clone@1.3.0(transitive)
+ Addedansi-regex@5.0.1(transitive)
+ Addeddoctrine@3.0.0(transitive)
+ Addedeslint@8.57.1(transitive)
+ Addedeslint-scope@7.2.2(transitive)
+ Addedespree@9.6.1(transitive)
+ Addedfile-entry-cache@6.0.1(transitive)
+ Addedflat-cache@3.2.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedglobals@13.24.0(transitive)
+ Addedgraphemer@1.4.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-immutable-type@4.0.0(transitive)
+ Addedis-path-inside@3.0.3(transitive)
+ Addedminimatch@10.0.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedtext-table@0.2.0(transitive)
+ Addedts-declaration-location@1.0.5(transitive)
+ Addedtype-fest@0.20.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removed@eslint-react/ast@1.5.21(transitive)
- Removed@eslint-react/core@1.5.21(transitive)
- Removed@eslint-react/jsx@1.5.21(transitive)
- Removed@eslint-react/shared@1.5.21(transitive)
- Removed@eslint-react/tools@1.5.21(transitive)
- Removed@eslint-react/types@1.5.21(transitive)
- Removed@eslint-react/var@1.5.21(transitive)
- Removed@typescript-eslint/scope-manager@8.0.0-alpha.40(transitive)
- Removed@typescript-eslint/type-utils@8.0.0-alpha.40(transitive)
- Removed@typescript-eslint/types@8.0.0-alpha.40(transitive)
- Removed@typescript-eslint/typescript-estree@8.0.0-alpha.40(transitive)
- Removed@typescript-eslint/utils@8.0.0-alpha.40(transitive)
- Removed@typescript-eslint/visitor-keys@8.0.0-alpha.40(transitive)