I have a project where I am requiring individual files of a self created module.
Example:
Module has following structure:
mymodule/
- package.json
- index.js
- part.js
and my other project only requires part.js:
const part = require("mymodule/part");
What would be the correct steps to not trigger the no-extraneous-require rule?
Or is this considered a bug that the rule doesn't specifically check for this?
I have a project where I am requiring individual files of a self created module.
Example: Module has following structure:
and my other project only requires part.js:
What would be the correct steps to not trigger the no-extraneous-require rule? Or is this considered a bug that the rule doesn't specifically check for this?