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