Skip to content
You are viewing the v1 archive. For current setup guidance, use the v3 docs; the v2 release is preserved at /v2/.

Integrations Overview

The main package can compose integrations from five categories:

  • Libraries
  • Testing
  • Formats
  • Tools
  • Extensions
import { eslintConfig, Extension, Format, Library, Testing, Tool } from '@santi020k/eslint-config-basic'
export default eslintConfig({
extensions: [Extension.Unicorn, Extension.Security],
formats: [Format.Markdown],
libraries: [Library.Tailwind, Library.Storybook],
testing: [Testing.Vitest],
tools: [Tool.Prettier]
})
  • Use Libraries for framework-adjacent integrations such as Tailwind or Storybook.
  • Use Testing for Vitest, Playwright, Jest, Cypress, and Testing Library.
  • Use Formats for Markdown, MDX, JSONC, YAML, TOML, and GraphQL.
  • Use Tools for Prettier, CSpell, JSDoc, and Swagger.
  • Use Extensions for rule packs such as Unicorn or SonarJS.

Some integrations can be inferred from package.json, but the final configuration still stays explicit in the source you write or the file the CLI scaffolds for you.

Did this page help?

One click helps us spot documentation that needs another pass. No personal data is sent.