Path: blob/main/docs/rules/no-import-module-exports.md
829 views
no-import-module-exports
Reports the use of import declarations with CommonJS exports in any module except for the main module.
If you have multiple entry points or are using js:next this rule includes an exceptions option which you can use to exclude those files from the rule.
Options
exceptions
An array of globs. The rule will be omitted from any file that matches a glob in the options array. For example, the following setting will omit the rule in the
some-file.jsfile.
Rule Details
Fail
Pass
Given the following package.json: