close

jestPlugin

jestPlugin contains Rslint's bundled Jest presets.

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

export default defineConfig([
  {
    ...jestPlugin.configs.recommended,
    files: ['**/*.{test,spec}.{js,mjs,jsx,ts,tsx,mts}'],
  },
]);

jestPlugin.configs.recommended does not declare files; the example scopes it to test and spec files.

Presets

PresetDescriptionView rules
jestPlugin.configs.recommendedJest rulesView rules →
jestPlugin.configs.styleJest style rulesView rules →

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