Skip to content

Extensions

The extensions option enables specialized rule packs that are useful across many project types.

ExtensionEnumUse It WhenAuto-Detected
RegExpExtension.RegexpThe project wants stronger regular-expression linting.No
UnicornExtension.UnicornThe project wants modern JavaScript best-practice rules.No
SonarJSExtension.SonarjsThe project wants maintainability-oriented rules.No
SecurityExtension.SecurityThe project wants additional security-oriented checks.Yes
PerfectionistExtension.PerfectionistThe project wants ordering and consistency rules.No

Example

js
import { eslintConfig, Extension } from '@santi020k/eslint-config-basic'

export default eslintConfig({
  extensions: [Extension.Unicorn, Extension.Security, Extension.Perfectionist]
})

Notes

  • The Security extension is enabled by default through detection.
  • These extensions can be layered with frameworks, formats, and tooling without changing the core composition model.

Repository Examples

Built by Santi020k. Repo and personal site linked throughout the docs.