no-duplicate-imports
Disallow duplicate imports.
Deprecated
This rule has been deprecated in favour of the import/no-duplicates
rule.
Options
.eslintrc.cjs
module.exports = {
"rules": {
// Note: you must disable the base rule as it can report incorrect errors
"no-duplicate-imports": "off",
"@typescript-eslint/no-duplicate-imports": "error"
}
};
See eslint/no-duplicate-imports
options.
How to Use
Resources
Taken with ❤️ from ESLint core