You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rule default in the eslint-plugin-import-x is designed to enforce certain import/export conventions. If you are using CommonJS modules and want to ignore the import statement for them, you might need to adjust your ESLint configuration or use a different approach to handle CommonJS imports.
In CommonJS, the equivalent of the ES6 import statement would typically be:
constbaz=require('./baz');
If you want to continue using import statements while working with CommonJS modules, you might need to use a transpiler like Babel to convert ES6 modules to CommonJS, or configure your ESLint to allow such usage.
If you are looking for a specific configuration or workaround within eslint-plugin-import-x, please let me know, and I can help you further explore the documentation or configuration options.
Uh oh!
There was an error while loading. Please reload this page.
https://github.com/un-ts/eslint-plugin-import-x/blob/v4.12.2/docs/rules/default.md#rule-details
Otherwise, what's the replacement?
cc @SukkaW
The text was updated successfully, but these errors were encountered: