eslint-plugin-react-x 2.0.0-beta.35 → 2.0.0-beta.37
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 +4 -4
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as AST13 from '@eslint-react/ast';
|
|
|
5
5
|
import * as VAR5 from '@eslint-react/var';
|
|
6
6
|
import { match, isMatching, P } from 'ts-pattern';
|
|
7
7
|
import * as ER27 from '@eslint-react/core';
|
|
8
|
-
import { JsxConfig, Reporter, RegExp, Selector, LanguagePreference } from '@eslint-react/kit';
|
|
8
|
+
import { JsxConfig, Reporter, RegExp, Selector, LanguagePreference, ContextDetection } from '@eslint-react/kit';
|
|
9
9
|
import { flow, identity, getOrElseUpdate, constTrue, constFalse, unit } from '@eslint-react/eff';
|
|
10
10
|
import { compare } from 'compare-versions';
|
|
11
11
|
import { camelCase } from 'string-ts';
|
|
@@ -134,7 +134,7 @@ var settings3 = {
|
|
|
134
134
|
|
|
135
135
|
// package.json
|
|
136
136
|
var name4 = "eslint-plugin-react-x";
|
|
137
|
-
var version = "2.0.0-beta.
|
|
137
|
+
var version = "2.0.0-beta.37";
|
|
138
138
|
var createRule = ESLintUtils.RuleCreator(getDocsUrl("x"));
|
|
139
139
|
|
|
140
140
|
// src/rules/jsx-key-before-spread.ts
|
|
@@ -2152,7 +2152,7 @@ function create35(context) {
|
|
|
2152
2152
|
}
|
|
2153
2153
|
function isDevelopmentOnlyCheck(node) {
|
|
2154
2154
|
if (node.type !== AST_NODE_TYPES.IfStatement) return false;
|
|
2155
|
-
if (
|
|
2155
|
+
if (ContextDetection.isProcessEnvNodeEnvCompare(node.test, "!==", "production")) return true;
|
|
2156
2156
|
return false;
|
|
2157
2157
|
}
|
|
2158
2158
|
var RULE_NAME36 = "no-nested-component-definitions";
|
|
@@ -2824,7 +2824,7 @@ function create46(context) {
|
|
|
2824
2824
|
if (containsUseComments(context, node)) {
|
|
2825
2825
|
continue;
|
|
2826
2826
|
}
|
|
2827
|
-
if (
|
|
2827
|
+
if (AST13.findParentNode(node, ContextDetection.isViMockCallback) != null) {
|
|
2828
2828
|
continue;
|
|
2829
2829
|
}
|
|
2830
2830
|
context.report({
|
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.37",
|
|
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",
|
|
@@ -42,12 +42,12 @@
|
|
|
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.37",
|
|
46
|
+
"@eslint-react/eff": "2.0.0-beta.37",
|
|
47
|
+
"@eslint-react/core": "2.0.0-beta.37",
|
|
48
|
+
"@eslint-react/kit": "2.0.0-beta.37",
|
|
49
|
+
"@eslint-react/shared": "2.0.0-beta.37",
|
|
50
|
+
"@eslint-react/var": "2.0.0-beta.37"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/react": "^19.1.10",
|