-
Notifications
You must be signed in to change notification settings - Fork 0
IBX-10066: Change lint config to 2.0 #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the lint configuration and refines the frontend CI workflow to trigger only on relevant file changes, while also bumping the Node version.
- Introduces a new
eslint.config.mjsthat loads the Ibexa ESLint config. - Limits CI runs on push and pull requests to JS/TS(X) and SCSS files.
- Upgrades the CI Node version from 18 to 20.
Reviewed Changes
Copilot reviewed 3 out of 7 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| eslint.config.mjs | Adds default export that spreads the Ibexa ESLint config |
| .github/workflows/frontend-ci.yaml | Narrows workflow triggers based on file globs and updates Node version |
Files not reviewed (4)
- .eslintrc.json: Language not supported
- ibexa.tsconfig.json: Language not supported
- package.json: Language not supported
- tsconfig.eslint.json: Language not supported
.github/workflows/frontend-ci.yaml
Outdated
| - "**.[cm]?[jt]sx?" | ||
| - "**.scss" | ||
| branches: | ||
| - main | ||
| - '[0-9]+.[0-9]+' | ||
| pull_request: ~ | ||
| pull_request: | ||
| paths: | ||
| - "**.[cm]?[jt]sx?" |
Copilot
AI
May 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The glob pattern is missing a wildcard before the filename; it should be **/*.[cm]?[jt]sx? to match JS/TS(X) files in any directory.
| - "**.scss" | ||
| branches: | ||
| - main | ||
| - '[0-9]+.[0-9]+' | ||
| pull_request: ~ | ||
| pull_request: | ||
| paths: | ||
| - "**.[cm]?[jt]sx?" | ||
| - "**.scss" |
Copilot
AI
May 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The glob pattern is missing a wildcard before the filename; it should be **/*.scss to correctly match SCSS files in subdirectories.
.github/workflows/frontend-ci.yaml
Outdated
| pull_request: ~ | ||
| pull_request: | ||
| paths: | ||
| - "**.[cm]?[jt]sx?" |
Copilot
AI
May 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The glob pattern under pull_request is missing a wildcard before the filename; use **/*.[cm]?[jt]sx? for consistency.
| - "**.[cm]?[jt]sx?" | |
| - "**/*.[cm]?[jt]sx?" |
| - "**.scss" | ||
| branches: | ||
| - main | ||
| - '[0-9]+.[0-9]+' | ||
| pull_request: ~ | ||
| pull_request: | ||
| paths: | ||
| - "**.[cm]?[jt]sx?" | ||
| - "**.scss" |
Copilot
AI
May 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The glob pattern under pull_request is missing a wildcard before the filename; it should be **/*.scss.
|



Description:
For QA:
Documentation: