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

feat: Add sourceType:commonjs support #81

Merged
merged 2 commits into from Nov 21, 2021
Merged

feat: Add sourceType:commonjs support #81

merged 2 commits into from Nov 21, 2021

Conversation

nzakas
Copy link
Member

@nzakas nzakas commented Nov 16, 2021

Adds sourceType:commonjs support so that passing this option is equivalent to setting nodejsScope: true.

Related: eslint/espree#520

Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Just a couple of comments that would be nice to update with the new value:

sourceType: "script", // one of ['script', 'module']

* @param {string} [providedOptions.sourceType='script'] the source type of the script. one of 'script' and 'module'

@nzakas
Copy link
Member Author

nzakas commented Nov 19, 2021

Oops, looked like I made the changes and forgot to add to the PR. Added now. Nice catch.

@btmills btmills merged commit d756f1e into main Nov 21, 2021
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

3 participants