no-duplicate-imports
eslint
No autofix
eslint.config.js
export default [
{
rules: {
"no-duplicate-imports": "error",
},
},
];import { merge } from 'module';
import something from 'another-module';
import { find } from 'module';import { merge, find } from 'module';
import something from 'another-module';// not mergeable
import { merge } from 'module';
import * as something from 'module';Examples from the ESLint documentation.
no-duplicate-imports
eslint
export default [
{
rules: {
"no-duplicate-imports": "error",
},
},
];no-duplicate-imports
eslint plugin · style
{
"rules": {
"no-duplicate-imports": "error"
}
}Biome does not have this rule.
Require identifiers to match a specified regular expression
Require variables within the same declaration block to be sorted
Enforce the consistent use of either function declarations or expressions assigned to variables
Disallow async functions which have no await expression