Skip to content

Conversation

@Ayoub-Mabrouk
Copy link
Contributor

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.

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.
@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedeslint-config-airbnb-base@​15.0.0 ⏵ 14.2.1100 +110010084100
Updatedeslint@​8.11.0 ⏵ 7.32.09710010095 -1100

View full report

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.

1 participant