import/imports-first
eslint-plugin-import
import importPlugin from "eslint-plugin-import";
export default [
{
plugins: { import: importPlugin },
rules: {
"import/imports-first": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
No code example for this rule
The linters' documentation does not include one we could extract.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
import/imports-first
eslint-plugin-import
import importPlugin from "eslint-plugin-import";
export default [
{
plugins: { import: importPlugin },
rules: {
"import/imports-first": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce a leading comment with the webpackChunkName for dynamic imports.
Enforce which files can be imported in a given folder.
Forbid modules without exports, or exports without matching import in another module.
Forbid imported names marked with @deprecated documentation tag.
Enforce either using, or omitting, the node: protocol when importing Node.js builtin modules.