For AI agents: the complete documentation index is available at https://rslint.rs/llms.txt, the full documentation bundle is available at https://rslint.rs/llms-full.txt, and this page is available as Markdown at https://rslint.rs/api/presets/import-plugin.md.
close

importPlugin

importPlugin exposes Rslint's built-in implementation of supported rules from eslint-plugin-import 2.x. Its preset follows the upstream flat recommended configuration for the rules Rslint currently supports.

import { defineConfig, importPlugin } from '@rslint/core';

export default defineConfig([importPlugin.configs.recommended]);

Presets

PresetDescriptionView rulesSource
importPlugin.configs.recommendedImport/export rulesView rules →eslint-plugin-import flatConfigs.recommended

See Rules & Presets for guidance on choosing and layering presets.