@eslint-react/jsx 0.8.4 → 0.8.5-beta.0
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -144,7 +144,7 @@ declare function findPropInAttributes(attributes: (TSESTree.JSXAttribute | TSEST
|
|
|
144
144
|
*/
|
|
145
145
|
declare function findPropInProperties(properties: (TSESTree.Property | TSESTree.RestElement | TSESTree.SpreadElement)[] | TSESTree.ObjectLiteralElement[], context: RuleContext, seenProps?: string[]): (propName: string) => O.Option<(typeof properties)[number]>;
|
|
146
146
|
|
|
147
|
-
declare function getProp(props: TSESTree.JSXAttribute[], propName: string, context: RuleContext): O.Option<TSESTree.JSXAttribute | TSESTree.JSXSpreadAttribute>;
|
|
147
|
+
declare function getProp(props: (TSESTree.JSXAttribute | TSESTree.JSXSpreadAttribute)[], propName: string, context: RuleContext): O.Option<TSESTree.JSXAttribute | TSESTree.JSXSpreadAttribute>;
|
|
148
148
|
/**
|
|
149
149
|
* Gets and resolves the static value of a JSX attribute
|
|
150
150
|
* @param attribute The JSX attribute to get the value of
|
package/dist/index.d.ts
CHANGED
|
@@ -144,7 +144,7 @@ declare function findPropInAttributes(attributes: (TSESTree.JSXAttribute | TSEST
|
|
|
144
144
|
*/
|
|
145
145
|
declare function findPropInProperties(properties: (TSESTree.Property | TSESTree.RestElement | TSESTree.SpreadElement)[] | TSESTree.ObjectLiteralElement[], context: RuleContext, seenProps?: string[]): (propName: string) => O.Option<(typeof properties)[number]>;
|
|
146
146
|
|
|
147
|
-
declare function getProp(props: TSESTree.JSXAttribute[], propName: string, context: RuleContext): O.Option<TSESTree.JSXAttribute | TSESTree.JSXSpreadAttribute>;
|
|
147
|
+
declare function getProp(props: (TSESTree.JSXAttribute | TSESTree.JSXSpreadAttribute)[], propName: string, context: RuleContext): O.Option<TSESTree.JSXAttribute | TSESTree.JSXSpreadAttribute>;
|
|
148
148
|
/**
|
|
149
149
|
* Gets and resolves the static value of a JSX attribute
|
|
150
150
|
* @param attribute The JSX attribute to get the value of
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/jsx",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5-beta.0",
|
|
4
4
|
"description": "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.
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
43
|
+
"@eslint-react/ast": "0.8.5-beta.0",
|
|
44
|
+
"@eslint-react/types": "0.8.5-beta.0",
|
|
45
|
+
"@eslint-react/tools": "0.8.5-beta.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "rollup -c rollup.config.ts --configPlugin swc3 && cp dist/index.d.ts dist/index.d.mts",
|