Skip to content

Conversation

Copy link

Copilot AI commented Aug 29, 2025

This PR modernizes the project's linting and formatting setup by upgrading to the latest versions of @electerious/eslint-config and adding @electerious/prettier-config for consistent code formatting.

Changes Made

Dependencies

Configuration

  • Created eslint.config.js to support the new ESLint v9 flat configuration format
  • Added prettier configuration to package.json
  • Removed legacy ESLint configuration from package.json

NPM Scripts

Updated the npm scripts to match modern development workflows:

  • "eslint": "eslint \"**/*.js\"" - Run ESLint on all JavaScript files
  • "format": "npm run eslint -- --fix && npm run prettier -- --write" - Auto-fix linting issues and format code
  • "lint": "npm run eslint && npm run prettier -- --check" - Check both linting and formatting
  • "prettier": "prettier --ignore-path .gitignore \"**/*.{js,json,md,yml}\"" - Format multiple file types
  • "test": "npm run lint && node --test" - Run linting and tests using Node.js built-in test runner

Testing

  • Migrated from Mocha/Chai to Node.js built-in test runner
  • Updated test assertions to use Node.js assert module
  • Maintained existing test functionality while modernizing the testing approach

Code Formatting

All code has been automatically formatted using the new Prettier configuration, ensuring consistent code style throughout the project including:

  • Updated JSDoc type annotations (Stringstring, Objectobject)
  • Consistent spacing and indentation
  • Modern JavaScript patterns (globalThis.window instead of window)

The changes maintain backward compatibility while providing a more modern development experience with better tooling integration.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Upgrade ESLint and Prettier Configs, Update NPM Tasks for Validation and Formatting Upgrade linting and formatting configuration with new npm scripts Aug 29, 2025
Copilot AI requested a review from electerious August 29, 2025 13:43
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