@eslint-react/jsx 5.28.3 → 5.28.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.d.ts CHANGED
@@ -239,7 +239,7 @@ export declare function isElement(node: TSESTree.Node | null | undefined, test?:
239
239
  * `<Fragment>` matches `"Fragment"`.
240
240
  *
241
241
  * The factory is a required parameter (no implicit `"React.Fragment"` default) so
242
- * that callers always pass the project-configured pragma — see `getJsxConfig` in
242
+ * that callers always pass the project-configured pragma — see `getJSXConfig` in
243
243
  * `@eslint-react/core` — and cannot silently use the wrong factory under a custom
244
244
  * JSX runtime (ex: Preact). Note the self-name comparison is a heuristic: any
245
245
  * `<*.Fragment>` member expression matches, regardless of the qualifier.
package/dist/index.js CHANGED
@@ -162,8 +162,8 @@ function hasEveryAttribute(context, element, names) {
162
162
  //#endregion
163
163
  //#region src/attribute-value.ts
164
164
  function resolveAttributeValue(context, attribute, name) {
165
- if (attribute.type === AST_NODE_TYPES.JSXAttribute) return resolveJsxAttribute(context, attribute);
166
- return resolveJsxSpreadAttribute(context, attribute, name);
165
+ if (attribute.type === AST_NODE_TYPES.JSXAttribute) return resolveJSXAttribute(context, attribute);
166
+ return resolveJSXSpreadAttribute(context, attribute, name);
167
167
  }
168
168
  function getAttributeValue(context, element, name) {
169
169
  const attr = findAttribute(context, element, name);
@@ -173,7 +173,7 @@ function getAttributeValue(context, element, name) {
173
173
  function getAttributeStaticValue(context, element, name) {
174
174
  return getAttributeValue(context, element, name)?.toStatic();
175
175
  }
176
- function resolveJsxAttribute(context, node) {
176
+ function resolveJSXAttribute(context, node) {
177
177
  const scope = context.sourceCode.getScope(node);
178
178
  if (node.value == null) return {
179
179
  kind: "boolean",
@@ -225,7 +225,7 @@ function resolveJsxAttribute(context, node) {
225
225
  };
226
226
  }
227
227
  }
228
- function resolveJsxSpreadAttribute(context, node, name) {
228
+ function resolveJSXSpreadAttribute(context, node, name) {
229
229
  const getProperty = (propertyName) => {
230
230
  const property = findSpreadProperty(context, node.argument, propertyName);
231
231
  if (property == null) return void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/jsx",
3
- "version": "5.28.3",
3
+ "version": "5.28.4",
4
4
  "description": "ESLint React's TSESTree JSX utility module for static analysis of JSX patterns.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -29,9 +29,9 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@eslint-react/ast": "5.28.3",
33
- "@eslint-react/eslint": "5.28.3",
34
- "@eslint-react/var": "5.28.3",
32
+ "@eslint-react/ast": "5.28.4",
33
+ "@eslint-react/eslint": "5.28.4",
34
+ "@eslint-react/var": "5.28.4",
35
35
  "@typescript-eslint/types": "^8.72.0",
36
36
  "@typescript-eslint/utils": "^8.72.0",
37
37
  "ts-pattern": "^5.9.2"