@eslint-react/jsx 0.5.5 → 0.5.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/dist/index.cjs +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +9 -12
package/dist/index.cjs
CHANGED
|
@@ -130,13 +130,13 @@ function isDestructuredFromPragma(variableName, context) {
|
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
|
-
* Checks if the given node is a call expression to `
|
|
133
|
+
* Checks if the given node is a call expression to `createElement`
|
|
134
134
|
* @param node The AST node to check
|
|
135
135
|
* @param context The rule context
|
|
136
136
|
* @returns `true` if the node is a call expression to `createElement`
|
|
137
137
|
*/ const isCreateElementCall = isCallFromPragma("createElement");
|
|
138
138
|
/**
|
|
139
|
-
* Checks if the given node is a call expression to `
|
|
139
|
+
* Checks if the given node is a call expression to `cloneElement`
|
|
140
140
|
* @param node The AST node to check
|
|
141
141
|
* @param context The rule context
|
|
142
142
|
* @returns `true` if the node is a call expression to `cloneElement`
|
package/dist/index.d.mts
CHANGED
|
@@ -27,14 +27,14 @@ declare const isCallFromPragma: (name: string) => (node: TSESTree$1.Node, contex
|
|
|
27
27
|
declare function isDestructuredFromPragma<T extends RuleContext>(variableName: string, context: T): boolean;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Checks if the given node is a call expression to `
|
|
30
|
+
* Checks if the given node is a call expression to `createElement`
|
|
31
31
|
* @param node The AST node to check
|
|
32
32
|
* @param context The rule context
|
|
33
33
|
* @returns `true` if the node is a call expression to `createElement`
|
|
34
34
|
*/
|
|
35
35
|
declare const isCreateElementCall: CallFromPragmaPredicate;
|
|
36
36
|
/**
|
|
37
|
-
* Checks if the given node is a call expression to `
|
|
37
|
+
* Checks if the given node is a call expression to `cloneElement`
|
|
38
38
|
* @param node The AST node to check
|
|
39
39
|
* @param context The rule context
|
|
40
40
|
* @returns `true` if the node is a call expression to `cloneElement`
|
package/dist/index.d.ts
CHANGED
|
@@ -27,14 +27,14 @@ declare const isCallFromPragma: (name: string) => (node: TSESTree$1.Node, contex
|
|
|
27
27
|
declare function isDestructuredFromPragma<T extends RuleContext>(variableName: string, context: T): boolean;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Checks if the given node is a call expression to `
|
|
30
|
+
* Checks if the given node is a call expression to `createElement`
|
|
31
31
|
* @param node The AST node to check
|
|
32
32
|
* @param context The rule context
|
|
33
33
|
* @returns `true` if the node is a call expression to `createElement`
|
|
34
34
|
*/
|
|
35
35
|
declare const isCreateElementCall: CallFromPragmaPredicate;
|
|
36
36
|
/**
|
|
37
|
-
* Checks if the given node is a call expression to `
|
|
37
|
+
* Checks if the given node is a call expression to `cloneElement`
|
|
38
38
|
* @param node The AST node to check
|
|
39
39
|
* @param context The rule context
|
|
40
40
|
* @returns `true` if the node is a call expression to `cloneElement`
|
package/dist/index.js
CHANGED
|
@@ -130,13 +130,13 @@ function isDestructuredFromPragma(variableName, context) {
|
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
|
-
* Checks if the given node is a call expression to `
|
|
133
|
+
* Checks if the given node is a call expression to `createElement`
|
|
134
134
|
* @param node The AST node to check
|
|
135
135
|
* @param context The rule context
|
|
136
136
|
* @returns `true` if the node is a call expression to `createElement`
|
|
137
137
|
*/ const isCreateElementCall = isCallFromPragma("createElement");
|
|
138
138
|
/**
|
|
139
|
-
* Checks if the given node is a call expression to `
|
|
139
|
+
* Checks if the given node is a call expression to `cloneElement`
|
|
140
140
|
* @param node The AST node to check
|
|
141
141
|
* @param context The rule context
|
|
142
142
|
* @returns `true` if the node is a call expression to `cloneElement`
|
package/dist/index.mjs
CHANGED
|
@@ -128,13 +128,13 @@ function isDestructuredFromPragma(variableName, context) {
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* Checks if the given node is a call expression to `
|
|
131
|
+
* Checks if the given node is a call expression to `createElement`
|
|
132
132
|
* @param node The AST node to check
|
|
133
133
|
* @param context The rule context
|
|
134
134
|
* @returns `true` if the node is a call expression to `createElement`
|
|
135
135
|
*/ const isCreateElementCall = isCallFromPragma("createElement");
|
|
136
136
|
/**
|
|
137
|
-
* Checks if the given node is a call expression to `
|
|
137
|
+
* Checks if the given node is a call expression to `cloneElement`
|
|
138
138
|
* @param node The AST node to check
|
|
139
139
|
* @param context The rule context
|
|
140
140
|
* @returns `true` if the node is a call expression to `cloneElement`
|
package/package.json
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/jsx",
|
|
3
|
-
"version": "0.5.
|
|
4
|
-
"description": "",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"eslint-config"
|
|
7
|
-
],
|
|
3
|
+
"version": "0.5.6",
|
|
4
|
+
"description": "AST Utility Module for Static Analysis of JSX",
|
|
8
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
9
6
|
"bugs": {
|
|
10
7
|
"url": "https://github.com/Rel1cx/eslint-react/issues"
|
|
@@ -38,14 +35,14 @@
|
|
|
38
35
|
],
|
|
39
36
|
"dependencies": {
|
|
40
37
|
"@types/eslint": "8.44.6",
|
|
41
|
-
"@typescript-eslint/scope-manager": "6.9.
|
|
42
|
-
"@typescript-eslint/types": "6.9.
|
|
43
|
-
"@typescript-eslint/utils": "6.9.
|
|
38
|
+
"@typescript-eslint/scope-manager": "6.9.1",
|
|
39
|
+
"@typescript-eslint/types": "6.9.1",
|
|
40
|
+
"@typescript-eslint/utils": "6.9.1",
|
|
44
41
|
"micro-memoize": "4.1.2",
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
42
|
+
"@eslint-react/ast": "0.5.6",
|
|
43
|
+
"@eslint-react/shared": "0.5.6",
|
|
44
|
+
"@eslint-react/types": "0.5.6",
|
|
45
|
+
"@eslint-react/tools": "0.5.6"
|
|
49
46
|
},
|
|
50
47
|
"scripts": {
|
|
51
48
|
"build": "rollup -c rollup.config.ts --configPlugin swc3 && cp dist/index.d.ts dist/index.d.mts",
|