# imports-first

Rule `import/imports-first`. Replaced by `import/first`.

- Source: import
- Technologies: Imports
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Deprecated: yes
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1888 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `import/imports-first` | no | safe | package `eslint-plugin-import` | [docs](https://github.com/import-js/eslint-plugin-import/blob/7b25c1cb95ee18acc1531002fd343e1e6031f9ed/docs/rules/imports-first.md) |

## Enable it

### ESLint: `eslint.config.js`

```js
import importPlugin from "eslint-plugin-import";

export default [
  {
    plugins: { import: importPlugin },
    rules: {
      "import/imports-first": "error",
    },
  },
];
```

## Related rules

- [import/dynamic-import-chunkname](https://lintradar.dev/rules/import/dynamic-import-chunkname.md): Enforce a leading comment with the webpackChunkName for dynamic imports.
- [import/no-internal-modules](https://lintradar.dev/rules/import/no-internal-modules.md): Forbid importing the submodules of other modules.
- [import/no-restricted-paths](https://lintradar.dev/rules/import/no-restricted-paths.md): Enforce which files can be imported in a given folder.
- [import/no-unused-modules](https://lintradar.dev/rules/import/no-unused-modules.md): Forbid modules without exports, or exports without matching import in another module.
- [import/no-deprecated](https://lintradar.dev/rules/import/no-deprecated.md): Forbid imported names marked with `@deprecated` documentation tag.
- [import/enforce-node-protocol-usage](https://lintradar.dev/rules/import/enforce-node-protocol-usage.md): Enforce either using, or omitting, the `node:` protocol when importing Node.js builtin modules.

---

Web page: https://lintradar.dev/rules/import/imports-first. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
