@eslint-react/jsx 1.25.1-next.0 → 1.26.0-beta.4
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 +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var AST3__namespace = /*#__PURE__*/_interopNamespace(AST3);
|
|
|
28
28
|
var VAR__namespace = /*#__PURE__*/_interopNamespace(VAR);
|
|
29
29
|
|
|
30
30
|
// src/find-parent-attribute.ts
|
|
31
|
-
function findParentAttribute(node, test = eff.
|
|
31
|
+
function findParentAttribute(node, test = eff.constTrue) {
|
|
32
32
|
const guard = (node2) => {
|
|
33
33
|
return node2.type === types.AST_NODE_TYPES.JSXAttribute && test(node2);
|
|
34
34
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as AST3 from '@eslint-react/ast';
|
|
2
|
-
import {
|
|
2
|
+
import { constTrue } from '@eslint-react/eff';
|
|
3
3
|
import { AST_NODE_TYPES } from '@typescript-eslint/types';
|
|
4
4
|
import * as VAR from '@eslint-react/var';
|
|
5
5
|
import { match, P } from 'ts-pattern';
|
|
6
6
|
|
|
7
7
|
// src/find-parent-attribute.ts
|
|
8
|
-
function findParentAttribute(node, test =
|
|
8
|
+
function findParentAttribute(node, test = constTrue) {
|
|
9
9
|
const guard = (node2) => {
|
|
10
10
|
return node2.type === AST_NODE_TYPES.JSXAttribute && test(node2);
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/jsx",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0-beta.4",
|
|
4
4
|
"description": "ESLint React's TSESTree AST utility module for static analysis of JSX.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"./package.json"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
37
|
-
"@typescript-eslint/types": "^8.
|
|
38
|
-
"@typescript-eslint/utils": "^8.
|
|
36
|
+
"@typescript-eslint/scope-manager": "^8.22.0",
|
|
37
|
+
"@typescript-eslint/types": "^8.22.0",
|
|
38
|
+
"@typescript-eslint/utils": "^8.22.0",
|
|
39
39
|
"ts-pattern": "^5.6.2",
|
|
40
|
-
"@eslint-react/ast": "1.
|
|
41
|
-
"@eslint-react/
|
|
42
|
-
"@eslint-react/
|
|
40
|
+
"@eslint-react/ast": "1.26.0-beta.4",
|
|
41
|
+
"@eslint-react/var": "1.26.0-beta.4",
|
|
42
|
+
"@eslint-react/eff": "1.26.0-beta.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"tsup": "^8.3.6",
|