Skip to content

Configure ESLint with flat config and StandardJS #4347

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abhisek7154
Copy link

@abhisek7154 abhisek7154 commented Jul 19, 2025

Fix for issue #4288

Migrated the project to ESLint's new flat config system (eslint.config.cjs), required as of ESLint v9. StandardJS was used as the base style guide, with a few adjustments to match Less.js's existing code style and avoid widespread formatting changes. Also added a lint script to package.json.

The project previously had no working ESLint configuration compatible with ESLint v9. This update brings the codebase into alignment with the latest ESLint standards and enables consistent, enforceable linting going forward.

Checklist:

  • Documentation (N/A)
  • Added/updated unit tests (N/A)
  • [ x ] Code complete

This PR is designed to introduce linting with minimal disruption to the existing codebase. Further cleanup can be incremental once the config is in place.

@matthew-dean
Copy link
Member

Thanks for taking a look. Note that there should not be both an NPM lock file and a PNPM lock file. PNPM should be the manager IIRC.

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