eslint-plugin-react-x 1.51.1 → 1.51.2-beta.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 +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -142,7 +142,7 @@ var settings3 = {
|
|
|
142
142
|
|
|
143
143
|
// package.json
|
|
144
144
|
var name4 = "eslint-plugin-react-x";
|
|
145
|
-
var version = "1.51.1";
|
|
145
|
+
var version = "1.51.2-beta.1";
|
|
146
146
|
var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("x"));
|
|
147
147
|
|
|
148
148
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -3586,6 +3586,8 @@ function create56(context) {
|
|
|
3586
3586
|
"Program:exit"(program) {
|
|
3587
3587
|
const components = ctx.getAllComponents(program);
|
|
3588
3588
|
for (const [, component] of components) {
|
|
3589
|
+
if (component.id == null) continue;
|
|
3590
|
+
if (component.name == null) continue;
|
|
3589
3591
|
const [props] = component.node.params;
|
|
3590
3592
|
if (props == null) {
|
|
3591
3593
|
continue;
|
package/dist/index.mjs
CHANGED
|
@@ -115,7 +115,7 @@ var settings3 = {
|
|
|
115
115
|
|
|
116
116
|
// package.json
|
|
117
117
|
var name4 = "eslint-plugin-react-x";
|
|
118
|
-
var version = "1.51.1";
|
|
118
|
+
var version = "1.51.2-beta.1";
|
|
119
119
|
var createRule = ESLintUtils.RuleCreator(getDocsUrl("x"));
|
|
120
120
|
|
|
121
121
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -3559,6 +3559,8 @@ function create56(context) {
|
|
|
3559
3559
|
"Program:exit"(program) {
|
|
3560
3560
|
const components = ctx.getAllComponents(program);
|
|
3561
3561
|
for (const [, component] of components) {
|
|
3562
|
+
if (component.id == null) continue;
|
|
3563
|
+
if (component.name == null) continue;
|
|
3562
3564
|
const [props] = component.node.params;
|
|
3563
3565
|
if (props == null) {
|
|
3564
3566
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "1.51.1",
|
|
3
|
+
"version": "1.51.2-beta.1",
|
|
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",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"is-immutable-type": "^5.0.1",
|
|
51
51
|
"string-ts": "^2.2.1",
|
|
52
52
|
"ts-pattern": "^5.7.1",
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/shared": "1.51.1",
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/
|
|
58
|
-
"@eslint-react/
|
|
53
|
+
"@eslint-react/core": "1.51.2-beta.1",
|
|
54
|
+
"@eslint-react/ast": "1.51.2-beta.1",
|
|
55
|
+
"@eslint-react/shared": "1.51.2-beta.1",
|
|
56
|
+
"@eslint-react/var": "1.51.2-beta.1",
|
|
57
|
+
"@eslint-react/kit": "1.51.2-beta.1",
|
|
58
|
+
"@eslint-react/eff": "1.51.2-beta.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/react": "^19.1.6",
|