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 script/cjs in prefer-module-scope-constants #195

Merged
merged 1 commit into from
Oct 30, 2020

Conversation

gmcgibbon
Copy link
Member

Description

Closes #192

Adds commonjs / script source type support for prefer-module-scope-constants. Currently, only esmodules are supported.

Type of change

  • @shopify/eslint-plugin Patch: Bug (non-breaking change which fixes an issue)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above (Documentation fix and Test update does not need a changelog as we do not publish a new version for these changes)

@gmcgibbon gmcgibbon requested a review from a team October 29, 2020 21:54
@gmcgibbon gmcgibbon force-pushed the prefer-module-scope-constants/support_cjs branch from 913f1d0 to b1521b3 Compare October 29, 2020 21:56
@gmcgibbon gmcgibbon merged commit 73e2e1b into main Oct 30, 2020
@gmcgibbon gmcgibbon deleted the prefer-module-scope-constants/support_cjs branch October 30, 2020 22:52
@gmcgibbon gmcgibbon temporarily deployed to production November 4, 2020 00:00 Inactive
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.

prefer-module-scope-constants false positive for commonjs
2 participants