eslint-plugin-react-x 1.18.1-next.0 → 1.18.1-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -44,6 +44,7 @@ export default [
44
44
  "react-x/no-component-will-mount": "error",
45
45
  "react-x/no-component-will-receive-props": "error",
46
46
  "react-x/no-component-will-update": "error",
47
+ "react-x/no-context-provider": "warn",
47
48
  "react-x/no-create-ref": "error",
48
49
  "react-x/no-default-props": "error",
49
50
  "react-x/no-direct-mutation-state": "error",
@@ -94,6 +95,7 @@ export default [
94
95
  | `no-component-will-mount` | Prevents using `componentWillMount`. | ⛔ | | |
95
96
  | `no-component-will-receive-props` | Prevents using `componentWillReceiveProps`. | ⛔ | | |
96
97
  | `no-component-will-update` | Prevents using `componentWillUpdate`. | ⛔ | | |
98
+ | `no-context-provider` | Prevents using `Context.Provider`. | ⛔ | | |
97
99
  | `no-create-ref` | Prevents using `createRef`. | ⛔ | | |
98
100
  | `no-default-props` | Prevents using `defaultProps` property in favor of ES6 default parameters. | ✔️ | | |
99
101
  | `no-direct-mutation-state` | Prevents direct mutation of `this.state`. | ✔️ | | |
package/dist/index.d.mts CHANGED
@@ -34,6 +34,7 @@ declare const _default: {
34
34
  "no-component-will-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noComponentWillMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
35
35
  "no-component-will-receive-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noComponentWillReceiveProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
36
36
  "no-component-will-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noComponentWillUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
37
+ "no-context-provider": _typescript_eslint_utils_ts_eslint.RuleModule<"noContextProvider", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
37
38
  "no-create-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noCreateRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
38
39
  "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
39
40
  "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
package/dist/index.d.ts CHANGED
@@ -34,6 +34,7 @@ declare const _default: {
34
34
  "no-component-will-mount": _typescript_eslint_utils_ts_eslint.RuleModule<"noComponentWillMount", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
35
35
  "no-component-will-receive-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noComponentWillReceiveProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
36
36
  "no-component-will-update": _typescript_eslint_utils_ts_eslint.RuleModule<"noComponentWillUpdate", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
37
+ "no-context-provider": _typescript_eslint_utils_ts_eslint.RuleModule<"noContextProvider", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
37
38
  "no-create-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noCreateRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
38
39
  "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
39
40
  "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;