Given the following code:
export const [foobar] = foobarFactory();
import/no-unused-modules with the unusedExports: true option will report:
error exported declaration 'undefined' not used within other modules import/no-unused-modules
This is true whether or not foobar is being imported anywhere else.
Given the following code:
import/no-unused-moduleswith theunusedExports: trueoption will report:This is true whether or not
foobaris being imported anywhere else.