Upgrade linting and formatting configuration with new npm scripts #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR modernizes the project's linting and formatting setup by upgrading to the latest versions of
@electerious/eslint-configand adding@electerious/prettier-configfor consistent code formatting.Changes Made
Dependencies
@electerious/eslint-configfrom4.1.0to5.1.0@electerious/[email protected]for code formatting[email protected]as a dev dependencyConfiguration
eslint.config.jsto support the new ESLint v9 flat configuration formatpackage.jsonpackage.jsonNPM 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 runnerTesting
assertmoduleCode Formatting
All code has been automatically formatted using the new Prettier configuration, ensuring consistent code style throughout the project including:
String→string,Object→object)globalThis.windowinstead ofwindow)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.