eslint-plugin-react-jsx 5.10.4 → 5.11.2
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 -3
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as core from "@eslint-react/core";
|
|
|
4
4
|
import "@eslint-react/eslint";
|
|
5
5
|
import { collapseMultilineText, findAttribute, getChildren, getElementFullType, hasAnyAttribute, hasChildren, isFragmentElement, isHostElement, isWhitespaceText } from "@eslint-react/jsx";
|
|
6
6
|
import { AST_NODE_TYPES } from "@typescript-eslint/types";
|
|
7
|
-
import { Check, Extract
|
|
7
|
+
import { Check, Extract } from "@eslint-react/ast";
|
|
8
8
|
import ts from "typescript";
|
|
9
9
|
|
|
10
10
|
//#region \0rolldown/runtime.js
|
|
@@ -26,7 +26,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region package.json
|
|
28
28
|
var name$2 = "eslint-plugin-react-jsx";
|
|
29
|
-
var version = "5.
|
|
29
|
+
var version = "5.11.2";
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/utils/create-rule.ts
|
|
@@ -292,7 +292,7 @@ var no_comment_textnodes_default = createRule({
|
|
|
292
292
|
});
|
|
293
293
|
function create$5(context) {
|
|
294
294
|
function hasCommentLike(node) {
|
|
295
|
-
if (isOneOf([AST_NODE_TYPES.JSXAttribute, AST_NODE_TYPES.JSXExpressionContainer])(node.parent)) return false;
|
|
295
|
+
if (Check.isOneOf([AST_NODE_TYPES.JSXAttribute, AST_NODE_TYPES.JSXExpressionContainer])(node.parent)) return false;
|
|
296
296
|
return /^\s*\/(?:\/|\*)/mu.test(context.sourceCode.getText(node));
|
|
297
297
|
}
|
|
298
298
|
const visit = (node) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-jsx",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.2",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React Flavored JSX rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@typescript-eslint/types": "^8.62.1",
|
|
41
41
|
"@typescript-eslint/utils": "^8.62.1",
|
|
42
|
-
"@eslint-react/
|
|
43
|
-
"@eslint-react/
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/shared": "5.
|
|
46
|
-
"@eslint-react/
|
|
42
|
+
"@eslint-react/eslint": "5.11.2",
|
|
43
|
+
"@eslint-react/ast": "5.11.2",
|
|
44
|
+
"@eslint-react/core": "5.11.2",
|
|
45
|
+
"@eslint-react/shared": "5.11.2",
|
|
46
|
+
"@eslint-react/jsx": "5.11.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/react": "^19.2.17",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"eslint": "^10.6.0",
|
|
53
53
|
"tsdown": "^0.22.3",
|
|
54
54
|
"typescript": "6.0.3",
|
|
55
|
-
"@local/
|
|
56
|
-
"@local/
|
|
55
|
+
"@local/eff": "0.0.0",
|
|
56
|
+
"@local/configs": "0.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"eslint": "*",
|