eslint-plugin-react-x 2.0.0-beta.33 → 2.0.0-beta.35
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 +6 -2
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -124,7 +124,8 @@ var settings2 = {
|
|
|
124
124
|
var name3 = "react-x/recommended-type-checked";
|
|
125
125
|
var rules3 = {
|
|
126
126
|
...rules2,
|
|
127
|
-
"react-x/no-leaked-conditional-rendering": "warn"
|
|
127
|
+
"react-x/no-leaked-conditional-rendering": "warn",
|
|
128
|
+
"react-x/no-unused-props": "warn"
|
|
128
129
|
// "react-x/prefer-read-only-props": "warn",
|
|
129
130
|
};
|
|
130
131
|
var settings3 = {
|
|
@@ -133,7 +134,7 @@ var settings3 = {
|
|
|
133
134
|
|
|
134
135
|
// package.json
|
|
135
136
|
var name4 = "eslint-plugin-react-x";
|
|
136
|
-
var version = "2.0.0-beta.
|
|
137
|
+
var version = "2.0.0-beta.35";
|
|
137
138
|
var createRule = ESLintUtils.RuleCreator(getDocsUrl("x"));
|
|
138
139
|
|
|
139
140
|
// src/rules/jsx-key-before-spread.ts
|
|
@@ -2823,6 +2824,9 @@ function create46(context) {
|
|
|
2823
2824
|
if (containsUseComments(context, node)) {
|
|
2824
2825
|
continue;
|
|
2825
2826
|
}
|
|
2827
|
+
if (ER27.isInViMockCallback(context, node)) {
|
|
2828
|
+
continue;
|
|
2829
|
+
}
|
|
2826
2830
|
context.report({
|
|
2827
2831
|
messageId: "noUnnecessaryUsePrefix",
|
|
2828
2832
|
node: id ?? node,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.35",
|
|
4
4
|
"description": "A set of composable ESLint rules for for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
"./package.json"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
38
|
-
"@typescript-eslint/type-utils": "^8.
|
|
39
|
-
"@typescript-eslint/types": "^8.
|
|
40
|
-
"@typescript-eslint/utils": "^8.
|
|
37
|
+
"@typescript-eslint/scope-manager": "^8.40.0",
|
|
38
|
+
"@typescript-eslint/type-utils": "^8.40.0",
|
|
39
|
+
"@typescript-eslint/types": "^8.40.0",
|
|
40
|
+
"@typescript-eslint/utils": "^8.40.0",
|
|
41
41
|
"compare-versions": "^6.1.1",
|
|
42
42
|
"is-immutable-type": "^5.0.1",
|
|
43
43
|
"string-ts": "^2.2.1",
|
|
44
44
|
"ts-pattern": "^5.8.0",
|
|
45
|
-
"@eslint-react/ast": "2.0.0-beta.
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/kit": "2.0.0-beta.
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
45
|
+
"@eslint-react/ast": "2.0.0-beta.35",
|
|
46
|
+
"@eslint-react/core": "2.0.0-beta.35",
|
|
47
|
+
"@eslint-react/eff": "2.0.0-beta.35",
|
|
48
|
+
"@eslint-react/kit": "2.0.0-beta.35",
|
|
49
|
+
"@eslint-react/var": "2.0.0-beta.35",
|
|
50
|
+
"@eslint-react/shared": "2.0.0-beta.35"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/react": "^19.1.10",
|