Skip to content

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
Copy link
Member Author

@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
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