Skip to content

chore(config): Update development tooling and dependencies#13

Merged
rubenszinho merged 3 commits intodevelopfrom
ci-improvement
May 15, 2025
Merged

chore(config): Update development tooling and dependencies#13
rubenszinho merged 3 commits intodevelopfrom
ci-improvement

Conversation

@rubenszinho
Copy link
Member

This PR updates the project's development configuration, improves build processes, and modernizes dependencies. It includes ESLint improvements, path aliasing, and additional build modes to enhance developer experience.

✨ Changes Introduced

  • [Chore] - Added TypeScript ESLint rule to disable no-undef (already handled by TS)
  • [Chore] - Added path aliases (@, @content) for improved import readability
  • [Chore] - Updated dependencies to latest versions
  • [Feature] - Added new build modes (mocked, debug) and development scripts
  • [Chore] - Added console log cleaning scripts for better production code

Copilot AI review requested due to automatic review settings May 15, 2025 19:35
@rubenszinho rubenszinho enabled auto-merge (squash) May 15, 2025 19:35
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 development configuration by modernizing dependencies, refining build processes, and introducing improvements to ESLint and import aliasing.

  • Adds path alias configuration and ESM __dirname support in vite.config.ts
  • Updates dependencies and scripts in package.json to support new build modes and development tooling
  • Implements a TypeScript-specific override in eslint.config.js to disable no-undef

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
vite.config.ts Introduced path aliasing and ESM __dirname support with HMR improvements
public/mockServiceWorker.js Updated mocked service worker version for consistency
package.json Adjusted version, scripts, and dependencies to modernize dev tooling
eslint.config.js Added an override for TypeScript to disable no-undef as advised by TS ESLint
Comments suppressed due to low confidence (1)

package.json:4

  • Confirm that setting the package version to '0.0.0' is intentional for development purposes, as it may lead to confusion if deployed accidentally.
"version": "0.0.0",

Comment on lines +27 to +28
// This enables HMR for i18n JSON files
usePolling: true,
Copy link

Copilot AI May 15, 2025

Choose a reason for hiding this comment

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

Using file polling for HMR can impact overall performance; consider limiting polling to specific scenarios or validating its necessity in your development setup.

Suggested change
// This enables HMR for i18n JSON files
usePolling: true,
// Enable polling only for i18n JSON files to minimize performance impact
usePolling: true,
ignored: ['**/node_modules/**', '**/dist/**', '**/src/**', '!**/src/i18n/locales/**/*.json'],

Copilot uses AI. Check for mistakes.
@rubenszinho rubenszinho disabled auto-merge May 15, 2025 19:48
@rubenszinho rubenszinho merged commit d9fd1f5 into develop May 15, 2025
1 check passed
@rubenszinho rubenszinho deleted the ci-improvement branch May 15, 2025 19:52
rubenszinho added a commit that referenced this pull request May 29, 2025
* chore: Update development tooling and dependencies

* chore: generate lock

* chore: update react-helmet dependency
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.

2 participants