slorber / docusaurus-mdx-checker

Report potential MDX v2 parsing errors found in your content
MIT License
13 stars 7 forks source link

fix: default value of globals option to align with conditional logic #2

Open reubenmiller opened 9 months ago

reubenmiller commented 9 months ago

Fix a bug where the globals check would always be run by default without the user specifying the -g / --globals option due to a misalignment between the default value and the check.

e.g. the main.js expects the globals option to be null, and the cli.js uses undefined as the default value.

In addition, the reference to the globals cli option was also broken as it was referencing to the incorrect property name (introduced in a9c8df65f6925c446ae3cb61ce8b68d39655244b).