Skip to content

Conversation

@GrabowskiM
Copy link
Contributor

🎫 Issue IBX-10066

Description:

For QA:

Documentation:

@GrabowskiM GrabowskiM requested review from a team and Copilot May 26, 2025 10:17
Copy link

Copilot AI left a 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 project’s linting and CI configuration to align with version 2.0.

  • Introduces a top‐level eslint.config.mjs that spreads in the new Ibexa ESLint rules.
  • Refines the GitHub Actions workflow to trigger only on relevant front‐end file changes and bumps Node.js from v18 to v20.

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 Ibexa ESLint configuration via getIbexaConfig()
.github/workflows/frontend-ci.yaml Restricts workflows to JS/TS/SCSS paths and updates Node.js to v20
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

Comment on lines 6 to 13
- "**.[cm]?[jt]sx?"
- "**.scss"
branches:
- main
- '[0-9]+.[0-9]+'
pull_request: ~
pull_request:
paths:
- "**.[cm]?[jt]sx?"
Copy link

Copilot AI May 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The glob pattern ".[cm]?[jt]sx?" will not reliably match your JS/TS files. Consider using a brace expansion like "/*.{js,jsx,ts,tsx,cjs,mjs}" to cover all extensions.

Copilot uses AI. Check for mistakes.
Comment on lines 7 to 14
- "**.scss"
branches:
- main
- '[0-9]+.[0-9]+'
pull_request: ~
pull_request:
paths:
- "**.[cm]?[jt]sx?"
- "**.scss"
Copy link

Copilot AI May 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pattern ".scss" won’t match SCSS files in subdirectories. Use "/*.scss" to include all .scss files recursively.

Copilot uses AI. Check for mistakes.
pull_request: ~
pull_request:
paths:
- "**.[cm]?[jt]sx?"
Copy link

Copilot AI May 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above: update this pull_request trigger to use "**/*.{js,jsx,ts,tsx,cjs,mjs}" to ensure JS/TS changes are captured.

Suggested change
- "**.[cm]?[jt]sx?"
- "**/*.{js,jsx,ts,tsx,cjs,mjs}"

Copilot uses AI. Check for mistakes.
pull_request:
paths:
- "**.[cm]?[jt]sx?"
- "**.scss"
Copy link

Copilot AI May 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above: change to "**/*.scss" under pull_request so SCSS files in subfolders trigger the workflow.

Suggested change
- "**.scss"
- "**/*.scss"

Copilot uses AI. Check for mistakes.
@sonarqubecloud
Copy link

@dew326 dew326 merged commit b1f2da6 into main May 28, 2025
14 of 16 checks passed
@dew326 dew326 deleted the IBX-10066 branch May 28, 2025 14:08
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.

4 participants