eslint-plugin-react-x 1.20.0-next.7 → 1.20.0-next.9

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
@@ -52,7 +52,7 @@ export default [
52
52
  "react-x/no-forward-ref": "warn",
53
53
  "react-x/no-implicit-key": "warn",
54
54
  "react-x/no-missing-key": "error",
55
- "react-x/no-nested-components": "warn",
55
+ "react-x/no-nested-components": "error",
56
56
  "react-x/no-prop-types": "error",
57
57
  "react-x/no-redundant-should-component-update": "error",
58
58
  "react-x/no-set-state-in-component-did-mount": "warn",
@@ -62,8 +62,8 @@ export default [
62
62
  "react-x/no-unsafe-component-will-mount": "warn",
63
63
  "react-x/no-unsafe-component-will-receive-props": "warn",
64
64
  "react-x/no-unsafe-component-will-update": "warn",
65
- "react-x/no-unstable-context-value": "error",
66
- "react-x/no-unstable-default-props": "error",
65
+ "react-x/no-unstable-context-value": "warn",
66
+ "react-x/no-unstable-default-props": "warn",
67
67
  "react-x/no-unused-class-component-members": "warn",
68
68
  "react-x/no-unused-state": "warn",
69
69
  },
package/dist/index.d.mts CHANGED
@@ -69,14 +69,6 @@ declare const _default: {
69
69
  /** @deprecated Use `no-complex-conditional-rendering` instead. */
70
70
  "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
71
71
  };
72
- DEFAULT_ESLINT_REACT_SETTINGS: {
73
- readonly additionalHooks: {
74
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
75
- };
76
- readonly polymorphicPropName: "as";
77
- readonly strictImportCheck: true;
78
- readonly version: "detect";
79
- };
80
72
  };
81
73
 
82
74
  export { _default as default };
package/dist/index.d.ts CHANGED
@@ -69,14 +69,6 @@ declare const _default: {
69
69
  /** @deprecated Use `no-complex-conditional-rendering` instead. */
70
70
  "no-complicated-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noComplexConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
71
71
  };
72
- DEFAULT_ESLINT_REACT_SETTINGS: {
73
- readonly additionalHooks: {
74
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
75
- };
76
- readonly polymorphicPropName: "as";
77
- readonly strictImportCheck: true;
78
- readonly version: "detect";
79
- };
80
72
  };
81
73
 
82
74
  export { _default as default };
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ var ts__default = /*#__PURE__*/_interopDefault(ts);
41
41
 
42
42
  // package.json
43
43
  var name = "eslint-plugin-react-x";
44
- var version = "1.20.0-next.7";
44
+ var version = "1.20.0-next.9";
45
45
  var createRule = shared.createRuleForPlugin("x");
46
46
 
47
47
  // src/rules/avoid-shorthand-boolean.ts
@@ -186,9 +186,7 @@ var jsx_no_duplicate_props_default = createRule({
186
186
  defaultOptions: []
187
187
  });
188
188
  var RULE_NAME5 = "jsx-uses-vars";
189
- var RULE_FEATURES5 = [
190
- "LNT"
191
- ];
189
+ var RULE_FEATURES5 = [];
192
190
  var jsx_uses_vars_default = createRule({
193
191
  meta: {
194
192
  type: "problem",
@@ -2968,14 +2966,6 @@ var prefer_shorthand_fragment_default = createRule({
2968
2966
  });
2969
2967
 
2970
2968
  // src/index.ts
2971
- var DEFAULT_ESLINT_REACT_SETTINGS = {
2972
- additionalHooks: {
2973
- useLayoutEffect: ["useIsomorphicLayoutEffect"]
2974
- },
2975
- polymorphicPropName: "as",
2976
- strictImportCheck: true,
2977
- version: "detect"
2978
- };
2979
2969
  var src_default = {
2980
2970
  meta: {
2981
2971
  name,
@@ -3035,8 +3025,7 @@ var src_default = {
3035
3025
  // Deprecated Rules
3036
3026
  /** @deprecated Use `no-complex-conditional-rendering` instead. */
3037
3027
  "no-complicated-conditional-rendering": no_complex_conditional_rendering_default
3038
- },
3039
- DEFAULT_ESLINT_REACT_SETTINGS
3028
+ }
3040
3029
  };
3041
3030
 
3042
3031
  module.exports = src_default;
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ import { getTypeImmutability, isUnknown, isImmutable, isReadonlyShallow, isReado
14
14
 
15
15
  // package.json
16
16
  var name = "eslint-plugin-react-x";
17
- var version = "1.20.0-next.7";
17
+ var version = "1.20.0-next.9";
18
18
  var createRule = createRuleForPlugin("x");
19
19
 
20
20
  // src/rules/avoid-shorthand-boolean.ts
@@ -159,9 +159,7 @@ var jsx_no_duplicate_props_default = createRule({
159
159
  defaultOptions: []
160
160
  });
161
161
  var RULE_NAME5 = "jsx-uses-vars";
162
- var RULE_FEATURES5 = [
163
- "LNT"
164
- ];
162
+ var RULE_FEATURES5 = [];
165
163
  var jsx_uses_vars_default = createRule({
166
164
  meta: {
167
165
  type: "problem",
@@ -2941,14 +2939,6 @@ var prefer_shorthand_fragment_default = createRule({
2941
2939
  });
2942
2940
 
2943
2941
  // src/index.ts
2944
- var DEFAULT_ESLINT_REACT_SETTINGS = {
2945
- additionalHooks: {
2946
- useLayoutEffect: ["useIsomorphicLayoutEffect"]
2947
- },
2948
- polymorphicPropName: "as",
2949
- strictImportCheck: true,
2950
- version: "detect"
2951
- };
2952
2942
  var src_default = {
2953
2943
  meta: {
2954
2944
  name,
@@ -3008,8 +2998,7 @@ var src_default = {
3008
2998
  // Deprecated Rules
3009
2999
  /** @deprecated Use `no-complex-conditional-rendering` instead. */
3010
3000
  "no-complicated-conditional-rendering": no_complex_conditional_rendering_default
3011
- },
3012
- DEFAULT_ESLINT_REACT_SETTINGS
3001
+ }
3013
3002
  };
3014
3003
 
3015
3004
  export { src_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.20.0-next.7",
3
+ "version": "1.20.0-next.9",
4
4
  "description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -49,13 +49,13 @@
49
49
  "compare-versions": "^6.1.1",
50
50
  "is-immutable-type": "^5.0.0",
51
51
  "ts-pattern": "^5.5.0",
52
- "@eslint-react/ast": "1.20.0-next.7",
53
- "@eslint-react/core": "1.20.0-next.7",
54
- "@eslint-react/jsx": "1.20.0-next.7",
55
- "@eslint-react/tools": "1.20.0-next.7",
56
- "@eslint-react/shared": "1.20.0-next.7",
57
- "@eslint-react/types": "1.20.0-next.7",
58
- "@eslint-react/var": "1.20.0-next.7"
52
+ "@eslint-react/ast": "1.20.0-next.9",
53
+ "@eslint-react/core": "1.20.0-next.9",
54
+ "@eslint-react/jsx": "1.20.0-next.9",
55
+ "@eslint-react/tools": "1.20.0-next.9",
56
+ "@eslint-react/shared": "1.20.0-next.9",
57
+ "@eslint-react/types": "1.20.0-next.9",
58
+ "@eslint-react/var": "1.20.0-next.9"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/react": "^19.0.1",