close

API overview

@rslint/core provides configuration helpers and presets for authoring flat configs, plus the Rslint class for programmatic linting:

import { Rslint, defineConfig, globalIgnores, js, ts } from '@rslint/core';

Configuration API

Use the configuration exports to compose flat configs without constructing internal loader objects.

APIDescription
defineConfigType-safe identity helper for a flat config
globalIgnoresCreates a global ignore entry
globalsLazily loaded runtime-global catalog

Presets

APIPresets
jsJavaScript
tsTypeScript baseline, strict, and stylistic variants
reactPluginReact
reactHooksPluginReact Hooks
importPluginImports
promisePluginPromises
jestPluginJest
rstestPluginRstest
unicornPluginUnicorn
jsxA11yPluginJSX accessibility

JavaScript API

Use the JavaScript API when a Node.js-compatible host needs to invoke Rslint directly. The JavaScript API guide covers common workflows; the reference below documents the complete class surface.

APIDescription
RslintESLint-style class for linting files or in-memory source