Skip to content

fix: eslint configuration for all directories and JSX parsing#1449

Open
AbhishekChorotiya wants to merge 1 commit intomainfrom
fix/eslint_configg
Open

fix: eslint configuration for all directories and JSX parsing#1449
AbhishekChorotiya wants to merge 1 commit intomainfrom
fix/eslint_configg

Conversation

@AbhishekChorotiya
Copy link
Copy Markdown
Contributor

@AbhishekChorotiya AbhishekChorotiya commented Mar 26, 2026

Note

This PR was created programmatically via GitHub CLI and is linked to issue #1448.

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Fixed ESLint configuration to properly apply to all directories in the project and enabled JSX parsing for JavaScript files.

Changes Made:

  1. Broadened File Pattern: Changed files: ["src/**/*.{js,jsx,ts,tsx}"] to files: ["**/*.{js,jsx,ts,tsx}"] to match all JS/TS files in any directory within the project.

  2. Enabled JSX Parsing: Added ecmaFeatures: { jsx: true } to parser options so ESLint's default Espree parser can understand JSX syntax.

Root Cause:

  • The original file pattern only matched files in the root-level src/ directory
  • Files in other directories (e.g., Hyperswitch-React-Demo-App/src/) had no ESLint configuration applied
  • JSX parsing was not explicitly enabled

Fixes #1448

How did you test it?

Ran ESLint on the project and verified it correctly parses JSX files in all directories without errors.

Checklist

  • I ran npm run re:build
  • I reviewed submitted code
  • I added unit tests for my changes where possible

@semanticdiff-com
Copy link
Copy Markdown

semanticdiff-com bot commented Mar 26, 2026

Review changes with  SemanticDiff

Changed Files
File Status
  eslint.config.cjs  50% smaller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ESLint configuration not applied to files outside root src/ directory

2 participants