Reduce ambiguity in *.js file extension in addon-root files by explicitly mentioning cjs or mjs #103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is partially w/r/t to linters being able to correctly match based on package.json settings, but partially because we currently rely on
type
to not be set at all in package.json, which implies that.js
is common-js, but that's not always true.For tooling sanity, this PR makes the cjs files .cjs, and the rollup file .mjs
This work came out of CrowdStrike/ember-toucan-core#9
Which, I'd normally say it isn't fair to change things just because of one person's lint configs, but the ambiguity in v2 addons right now is def troublesome