fix: downgrade ESLint to v7 for Node.js 12.0.0 compatibility #79
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.
ESLint v8.11.0 requires Node.js 12.22.0 or higher, but this project supports Node.js 12.0.0+ (as specified in engines.node). The error "Module.createRequire is not a function" occurred because Module.createRequire was introduced in Node.js 12.20.0.
Changes:
eslint: ^8.11.0 → ^7.32.0
ESLint 7.32.0 supports Node.js 10.12.0+, compatible with 12.0.0
eslint-config-airbnb-base: ^15.0.0 → ^14.2.1
v15 requires ESLint 8.x, v14.2.1 is compatible with ESLint 7.x
eslint-config-prettier: ^8.5.0 → ^8.3.0
Minor version adjustment (v8.x supports both ESLint 7 and 8)
eslint-plugin-import: ^2.26.0 → ^2.25.4
Compatible with ESLint 7.x
All downgraded versions are compatible with each other and maintain the same functionality while supporting the project's minimum Node.js version requirement.
Fixes ESLint compatibility issues on Node.js 12.0.0-12.21.x.