You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was created programmatically via GitHub CLI.
Problem
ESLint configuration was not applied to files outside the root `src/` directory, causing those files to be linted without a proper parser. Additionally, JSX parsing was not enabled for JavaScript files.
Root Cause
File Pattern Issue: The original `files` pattern `src/**/*.{js,jsx,ts,tsx}` only matched files in the root-level `src/` directory. Files in other directories (e.g., `Hyperswitch-React-Demo-App/src/`) were not covered.
Missing JSX Parser: JSX parsing was not explicitly enabled. ESLint's default Espree parser does not understand JSX syntax unless `ecmaFeatures.jsx: true` is configured.
Proposed Solution
Broaden file pattern to `**/*.{js,jsx,ts,tsx}` to cover all JS/TS files in the project
Enable JSX parsing via `ecmaFeatures: { jsx: true }`
Note
This issue was created programmatically via GitHub CLI.
Problem
ESLint configuration was not applied to files outside the root `src/` directory, causing those files to be linted without a proper parser. Additionally, JSX parsing was not enabled for JavaScript files.
Root Cause
File Pattern Issue: The original `files` pattern `src/**/*.{js,jsx,ts,tsx}` only matched files in the root-level `src/` directory. Files in other directories (e.g., `Hyperswitch-React-Demo-App/src/`) were not covered.
Missing JSX Parser: JSX parsing was not explicitly enabled. ESLint's default Espree parser does not understand JSX syntax unless `ecmaFeatures.jsx: true` is configured.
Proposed Solution
Acceptance Criteria