eslint-plugin-react-x 5.2.5-next.0 → 5.2.5-next.1
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/dist/index.js +2 -2
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -142,7 +142,7 @@ const rules$7 = {
|
|
|
142
142
|
//#endregion
|
|
143
143
|
//#region package.json
|
|
144
144
|
var name$6 = "eslint-plugin-react-x";
|
|
145
|
-
var version = "5.2.5-next.
|
|
145
|
+
var version = "5.2.5-next.1";
|
|
146
146
|
|
|
147
147
|
//#endregion
|
|
148
148
|
//#region src/rules/component-hook-factories/lib.ts
|
|
@@ -2123,7 +2123,7 @@ function create$32(context) {
|
|
|
2123
2123
|
//#region src/rules/no-direct-mutation-state/no-direct-mutation-state.ts
|
|
2124
2124
|
const RULE_NAME$31 = "no-direct-mutation-state";
|
|
2125
2125
|
function isConstructorFunction(node) {
|
|
2126
|
-
return isOneOf([AST_NODE_TYPES.FunctionDeclaration, AST_NODE_TYPES.FunctionExpression])(node) && Check.
|
|
2126
|
+
return isOneOf([AST_NODE_TYPES.FunctionDeclaration, AST_NODE_TYPES.FunctionExpression])(node) && Check.isPropertyOrMethod(node.parent) && node.parent.key.type === AST_NODE_TYPES.Identifier && node.parent.key.name === "constructor";
|
|
2127
2127
|
}
|
|
2128
2128
|
var no_direct_mutation_state_default = createRule({
|
|
2129
2129
|
meta: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "5.2.5-next.
|
|
3
|
+
"version": "5.2.5-next.1",
|
|
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",
|
|
@@ -46,19 +46,19 @@
|
|
|
46
46
|
"string-ts": "^2.3.1",
|
|
47
47
|
"ts-api-utils": "^2.5.0",
|
|
48
48
|
"ts-pattern": "^5.9.0",
|
|
49
|
-
"@eslint-react/ast": "5.2.5-next.
|
|
50
|
-
"@eslint-react/eslint": "5.2.5-next.
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/var": "5.2.5-next.
|
|
49
|
+
"@eslint-react/ast": "5.2.5-next.1",
|
|
50
|
+
"@eslint-react/eslint": "5.2.5-next.1",
|
|
51
|
+
"@eslint-react/jsx": "5.2.5-next.1",
|
|
52
|
+
"@eslint-react/shared": "5.2.5-next.1",
|
|
53
|
+
"@eslint-react/core": "5.2.5-next.1",
|
|
54
|
+
"@eslint-react/var": "5.2.5-next.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/react": "^19.2.14",
|
|
58
58
|
"@types/react-dom": "^19.2.3",
|
|
59
59
|
"eslint": "^10.2.0",
|
|
60
60
|
"tsdown": "^0.21.9",
|
|
61
|
-
"tsl-dx": "^0.
|
|
61
|
+
"tsl-dx": "^0.11.0",
|
|
62
62
|
"@local/configs": "0.0.0",
|
|
63
63
|
"@local/eff": "3.0.0-beta.72"
|
|
64
64
|
},
|