> 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.

# nodePlugin

`nodePlugin` exposes Rslint's built-in implementation of supported rules from [`eslint-plugin-n` 18.x](https://github.com/eslint-community/eslint-plugin-n/tree/v18.3.0). Rules use Rslint's native `node/*` prefix instead of upstream's `n/*`.

```ts
import { defineConfig, nodePlugin } from '@rslint/core';

export default defineConfig([nodePlugin.configs.recommended]);
```

## Presets

The camelCase keys below map to upstream's preset names:

| Preset                                 | Description                                     | View rules                                                                                   | Source                                                                                                                                                  |
| -------------------------------------- | ----------------------------------------------- | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `nodePlugin.configs.recommended`       | Node.js rules for mixed CommonJS and ES modules | [View rules →](https://rslint.rs/rules/index.md?preset=nodePlugin.configs.recommended)       | [`eslint-plugin-n` `configs.recommended`](https://github.com/eslint-community/eslint-plugin-n/blob/v18.3.0/lib/configs/recommended.js)                  |
| `nodePlugin.configs.recommendedModule` | Node.js rules for ES modules                    | [View rules →](https://rslint.rs/rules/index.md?preset=nodePlugin.configs.recommendedModule) | [`eslint-plugin-n` `configs['recommended-module']`](https://github.com/eslint-community/eslint-plugin-n/blob/v18.3.0/lib/configs/recommended-module.js) |
| `nodePlugin.configs.recommendedScript` | Node.js rules for CommonJS                      | [View rules →](https://rslint.rs/rules/index.md?preset=nodePlugin.configs.recommendedScript) | [`eslint-plugin-n` `configs['recommended-script']`](https://github.com/eslint-community/eslint-plugin-n/blob/v18.3.0/lib/configs/recommended-script.js) |

`recommended` selects the nearest valid `package.json` from `process.cwd()` and applies `.mjs`/`.cjs` overrides. The API's `cwd` does not change this lookup; use an explicit preset when the process directory differs from the lint project.

See [Rules & Presets](https://rslint.rs/config/rules-and-presets.md) for guidance on choosing and layering presets.
