@eslint-react/jsx 0.8.6-beta.5 → 0.8.6-beta.6
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/node_modules/@eslint-react/ast/dist/index.cjs +13 -5
- package/node_modules/@eslint-react/ast/dist/index.js +13 -5
- package/node_modules/@eslint-react/ast/dist/index.mjs +13 -5
- package/node_modules/@eslint-react/ast/package.json +1 -1
- package/node_modules/@eslint-react/tools/package.json +1 -1
- package/node_modules/@eslint-react/types/package.json +1 -1
- package/package.json +4 -4
|
@@ -27,6 +27,15 @@ function _interopNamespaceDefault(e) {
|
|
|
27
27
|
|
|
28
28
|
var eslintUtils__namespace = /*#__PURE__*/_interopNamespaceDefault(eslintUtils);
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* @since 2.0.0
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @category type lambdas
|
|
36
|
+
* @since 2.0.0
|
|
37
|
+
*/
|
|
38
|
+
|
|
30
39
|
/**
|
|
31
40
|
* Tests if a value is a `function`.
|
|
32
41
|
*
|
|
@@ -43,9 +52,6 @@ var eslintUtils__namespace = /*#__PURE__*/_interopNamespaceDefault(eslintUtils);
|
|
|
43
52
|
*/
|
|
44
53
|
const isFunction$2 = input => typeof input === "function";
|
|
45
54
|
|
|
46
|
-
/**
|
|
47
|
-
* @since 2.0.0
|
|
48
|
-
*/
|
|
49
55
|
/**
|
|
50
56
|
* Tests if a value is a `string`.
|
|
51
57
|
*
|
|
@@ -62,6 +68,7 @@ const isFunction$2 = input => typeof input === "function";
|
|
|
62
68
|
* @since 2.0.0
|
|
63
69
|
*/
|
|
64
70
|
const isString = input => typeof input === "string";
|
|
71
|
+
|
|
65
72
|
/**
|
|
66
73
|
* Tests if a value is a `function`.
|
|
67
74
|
*
|
|
@@ -78,7 +85,7 @@ const isString = input => typeof input === "string";
|
|
|
78
85
|
* @since 2.0.0
|
|
79
86
|
*/
|
|
80
87
|
const isFunction$1 = isFunction$2;
|
|
81
|
-
|
|
88
|
+
|
|
82
89
|
/**
|
|
83
90
|
* Tests if a value is an `object`.
|
|
84
91
|
*
|
|
@@ -96,7 +103,8 @@ const isRecordOrArray = input => typeof input === "object" && input !== null;
|
|
|
96
103
|
* @category guards
|
|
97
104
|
* @since 2.0.0
|
|
98
105
|
*/
|
|
99
|
-
const isObject = input =>
|
|
106
|
+
const isObject = input => typeof input === "object" && input !== null || isFunction$1(input);
|
|
107
|
+
|
|
100
108
|
/**
|
|
101
109
|
* A guard that succeeds when the input is `null` or `undefined`.
|
|
102
110
|
*
|
|
@@ -27,6 +27,15 @@ function _interopNamespaceDefault(e) {
|
|
|
27
27
|
|
|
28
28
|
var eslintUtils__namespace = /*#__PURE__*/_interopNamespaceDefault(eslintUtils);
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* @since 2.0.0
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @category type lambdas
|
|
36
|
+
* @since 2.0.0
|
|
37
|
+
*/
|
|
38
|
+
|
|
30
39
|
/**
|
|
31
40
|
* Tests if a value is a `function`.
|
|
32
41
|
*
|
|
@@ -43,9 +52,6 @@ var eslintUtils__namespace = /*#__PURE__*/_interopNamespaceDefault(eslintUtils);
|
|
|
43
52
|
*/
|
|
44
53
|
const isFunction$2 = input => typeof input === "function";
|
|
45
54
|
|
|
46
|
-
/**
|
|
47
|
-
* @since 2.0.0
|
|
48
|
-
*/
|
|
49
55
|
/**
|
|
50
56
|
* Tests if a value is a `string`.
|
|
51
57
|
*
|
|
@@ -62,6 +68,7 @@ const isFunction$2 = input => typeof input === "function";
|
|
|
62
68
|
* @since 2.0.0
|
|
63
69
|
*/
|
|
64
70
|
const isString = input => typeof input === "string";
|
|
71
|
+
|
|
65
72
|
/**
|
|
66
73
|
* Tests if a value is a `function`.
|
|
67
74
|
*
|
|
@@ -78,7 +85,7 @@ const isString = input => typeof input === "string";
|
|
|
78
85
|
* @since 2.0.0
|
|
79
86
|
*/
|
|
80
87
|
const isFunction$1 = isFunction$2;
|
|
81
|
-
|
|
88
|
+
|
|
82
89
|
/**
|
|
83
90
|
* Tests if a value is an `object`.
|
|
84
91
|
*
|
|
@@ -96,7 +103,8 @@ const isRecordOrArray = input => typeof input === "object" && input !== null;
|
|
|
96
103
|
* @category guards
|
|
97
104
|
* @since 2.0.0
|
|
98
105
|
*/
|
|
99
|
-
const isObject = input =>
|
|
106
|
+
const isObject = input => typeof input === "object" && input !== null || isFunction$1(input);
|
|
107
|
+
|
|
100
108
|
/**
|
|
101
109
|
* A guard that succeeds when the input is `null` or `undefined`.
|
|
102
110
|
*
|
|
@@ -6,6 +6,15 @@ import { ASTUtils } from '@typescript-eslint/utils';
|
|
|
6
6
|
import * as eslintUtils from '@eslint-community/eslint-utils';
|
|
7
7
|
import { toLowerCase, delimiterCase, replace } from 'string-ts';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* @since 2.0.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @category type lambdas
|
|
15
|
+
* @since 2.0.0
|
|
16
|
+
*/
|
|
17
|
+
|
|
9
18
|
/**
|
|
10
19
|
* Tests if a value is a `function`.
|
|
11
20
|
*
|
|
@@ -22,9 +31,6 @@ import { toLowerCase, delimiterCase, replace } from 'string-ts';
|
|
|
22
31
|
*/
|
|
23
32
|
const isFunction$2 = input => typeof input === "function";
|
|
24
33
|
|
|
25
|
-
/**
|
|
26
|
-
* @since 2.0.0
|
|
27
|
-
*/
|
|
28
34
|
/**
|
|
29
35
|
* Tests if a value is a `string`.
|
|
30
36
|
*
|
|
@@ -41,6 +47,7 @@ const isFunction$2 = input => typeof input === "function";
|
|
|
41
47
|
* @since 2.0.0
|
|
42
48
|
*/
|
|
43
49
|
const isString = input => typeof input === "string";
|
|
50
|
+
|
|
44
51
|
/**
|
|
45
52
|
* Tests if a value is a `function`.
|
|
46
53
|
*
|
|
@@ -57,7 +64,7 @@ const isString = input => typeof input === "string";
|
|
|
57
64
|
* @since 2.0.0
|
|
58
65
|
*/
|
|
59
66
|
const isFunction$1 = isFunction$2;
|
|
60
|
-
|
|
67
|
+
|
|
61
68
|
/**
|
|
62
69
|
* Tests if a value is an `object`.
|
|
63
70
|
*
|
|
@@ -75,7 +82,8 @@ const isRecordOrArray = input => typeof input === "object" && input !== null;
|
|
|
75
82
|
* @category guards
|
|
76
83
|
* @since 2.0.0
|
|
77
84
|
*/
|
|
78
|
-
const isObject = input =>
|
|
85
|
+
const isObject = input => typeof input === "object" && input !== null || isFunction$1(input);
|
|
86
|
+
|
|
79
87
|
/**
|
|
80
88
|
* A guard that succeeds when the input is `null` or `undefined`.
|
|
81
89
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/jsx",
|
|
3
|
-
"version": "0.8.6-beta.
|
|
3
|
+
"version": "0.8.6-beta.6",
|
|
4
4
|
"description": "TSESTree AST utility module for static analysis of JSX.",
|
|
5
5
|
"homepage": "https://github.com/rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"micro-memoize": "4.1.2",
|
|
43
|
-
"@eslint-react/ast": "0.8.6-beta.
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
43
|
+
"@eslint-react/ast": "0.8.6-beta.6",
|
|
44
|
+
"@eslint-react/tools": "0.8.6-beta.6",
|
|
45
|
+
"@eslint-react/types": "0.8.6-beta.6"
|
|
46
46
|
},
|
|
47
47
|
"bundleDependencies": [
|
|
48
48
|
"@eslint-react/ast",
|