The staticimport
statement is used toimport
read only live bindings which are exported by another module.
(c) MDN
🐊Putout plugin adds ability to find and merge duplicate imports.
Install
npm i @putout/plugin-merge-duplicate-imports
Rule
{
"rules": {
"merge-duplicate-imports": "on"
}
}
❌ Example of incorrect code
import test from 'supertape';
import {stub} from 'supertape';
✅ Example of correct code
import test, {
stub,
} from 'supertape';