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

Support auto-lookup of .mjs and .cjs config files #2970

Merged
merged 1 commit into from Oct 30, 2023

Conversation

bertdeblock
Copy link
Collaborator

@bertdeblock bertdeblock commented Sep 1, 2023

ember-template-lint is written in ESM, which means plugins must be written in ESM as well.
If you want to import a plugin in your ember-template-lint config file, your project must be in ESM or your ember-template-lint config file must be an .mjs file, but it seems ember-template-lint doesn't auto lookup .template-lintrc.mjs config files. You can do --config-path=.template-lintrc.mjs, but that's a little verbose if you have multiple ember-template-lint invocations.

@bertdeblock bertdeblock force-pushed the support-auto-lookup-of-mjs-and-cjs-config-files branch 2 times, most recently from 7ecfb40 to 8ebf46c Compare September 1, 2023 10:14
@bertdeblock
Copy link
Collaborator Author

@bmish If you have some time, would you mind looking at this PR?

test/unit/get-config-test.js Outdated Show resolved Hide resolved
@bmish
Copy link
Member

bmish commented Sep 12, 2023

This looks reasonable pending my one comment.

@bertdeblock bertdeblock force-pushed the support-auto-lookup-of-mjs-and-cjs-config-files branch from 8ebf46c to ffc8576 Compare September 13, 2023 05:45
Copy link
Member

@bmish bmish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@bertdeblock bertdeblock merged commit 6ea78a8 into master Oct 30, 2023
11 checks passed
@bertdeblock bertdeblock deleted the support-auto-lookup-of-mjs-and-cjs-config-files branch October 30, 2023 10:59
@bmish bmish changed the title Support auto lookup of .mjs and .cjs config files Support auto-lookup of .mjs and .cjs config files Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants