Skip to content
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

Allow "type": "module" in package.json w/out ext #3

Conversation

karlhorky
Copy link
Member

"type": "module" in package.json usually causes webpack to require a
fully-specified import path including .js

- https://webpack.js.org/configuration/module/#resolvefullyspecified

We require "type": "module" in package.json because ESLint we want to use ESM
syntax in our eslint.config.js file and ESLint does not support other ways of
specifying that the config file is ESM such as an .mjs extension:

- eslint/eslint#13440
- eslint/eslint#16580

This is a part of the switch to the ESLint Flat Config being done here:

- upleveled/eslint-config-upleveled#301
@karlhorky karlhorky merged commit 74ff2a9 into main Nov 12, 2023
@karlhorky karlhorky deleted the allow-type-module-in-package-json-without-fully-specified-imports branch November 12, 2023 17:07
karlhorky added a commit to upleveled/preflight-test-project-react-passing that referenced this pull request Nov 12, 2023
gruvector pushed a commit to gruvector/preflight-test-project that referenced this pull request Feb 9, 2024
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.

None yet

1 participant