It seems that the rule no-unused-module is returning false positive result with export { default } from '...' syntax (which is a valid syntax given MDN documentation).
Example:
Given I have 3 files:
_./myModule1/data.js_
const getData = () => {
// awesome things
}
export default getData;
_./myModule1/index.js_
export { default } from './data';
_./myModule2.js_
import getData from './myModule1';
Then I get this error:
/home/myName/myAwesomeProject/myModule1/index.js
1:1 error exported declaration 'default' not used within other modules import/no-unused-modules
Expect behaviour is there should be no error.
This seems to have been fixed by @richardxia in #1640 which was released in v2.20.2.
Hopefully that helps and this issue can be closed! 馃槃
Most helpful comment
This seems to have been fixed by @richardxia in #1640 which was released in v2.20.2.
Hopefully that helps and this issue can be closed! 馃槃