Skip to content

fix: missing file extension with ESM configuration #443

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

Merged
merged 1 commit into from
Feb 2, 2022
Merged

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Feb 2, 2022

Omitting the file extension when using require() only works for .js, not .cjs. Therefore, the new ESM-specific ESLint configuration currently crashes.
This PR fixes this.

Checklist

Please add a x inside each checkbox:

  • I have read the contribution guidelines.
  • The status checks are successful (continuous integration). Those can be seen below.

@ehmicky ehmicky added the type: bug code to address defects in shipped code label Feb 2, 2022
@ehmicky ehmicky self-assigned this Feb 2, 2022
@ehmicky ehmicky merged commit c245636 into main Feb 2, 2022
@ehmicky ehmicky deleted the fix/esm-config branch February 2, 2022 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants