fix: downgrade ESLint to v7 for Node.js 12.0.0 compatibility
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.