systomic

Configuration

A few settings shared by every rule live under settings.systomic. Everything else, including class attributes and helpers, is a rule option and goes next to each rule.

Shared settings

Setting Used for
alias Resolving @/components/button to a file, to read its annotations and class strings.
packages Which packages are followed into node_modules. Recommended: otherwise every capitalised import from a large library (icon sets) has its declaration file parsed once per run.
conditions exports conditions, in order. Default source, types, import, module, default, require.
stylesheets Global stylesheets. CSS modules and imported stylesheets are found automatically.

Rule options

Every rule page lists its options at the end. Pass them as the second item:

Class and style options

attributes (class attributes, default ["className", "class"]), callees (class helpers, default cn, clsx, cx, classnames, twMerge, twJoin, cva, tv) and styleAttributes (default ["style", "xstyle"]) are rule options, not settings. settings.systomic doesn’t read them, so set them on every rule that should use them:

A list replaces the default, it doesn’t extend it: "callees": ["sx"] alone stops reading cn(…). Each rule validates its options, so a rule that doesn’t accept one fails the Oxlint run with a config error:

Option Accepted by
attributes, callees, styleAttributes animation-duration, component-overrides, concentric-radius, dropdown-scroll-padding, hit-slop, input-font-size, interactive-cursor, interactive-select-none, no-hardcoded-values, origin-aware-scale, tabular-nums, prefer-dvh
attributes, callees only focus-visible, max-blur (these don’t read style props by name)
none animated-icon-swap, animated-text-swap, enforce-skeleton, no-conditional-overlay, prefer-temporal, prefer-temporal-over-libraries, required-parts (they don’t read class strings)

See Styling for how classes and styles are read.

Ignoring files

Rules with an ignore option (animation-duration, concentric-radius, enforce-skeleton, hit-slop, interactive-cursor, interactive-select-none, no-hardcoded-values, prefer-temporal, prefer-temporal-over-libraries, max-blur) skip files matching its globs. The globs are matched against the file’s path relative to the nearest package.json above the file, not relative to .oxlintrc.json or the working directory.

In a monorepo with one .oxlintrc.json at the root, that means a glob matches in every package:

A glob can’t name the package (packages/ui/** never matches, the path it sees starts at the package root). To target one package, scope the option with Oxlint overrides, whose files globs are relative to the config file:

To skip a whole package for a rule, switch the rule off in the override instead. A nested .oxlintrc.json inside the package works too, but it replaces the root config for that package, so start it with "extends": ["../../.oxlintrc.json"] to keep the plugin and the other rules.

Severity

The presets pick a severity per rule. Override it like any Oxlint rule, or switch a rule off:

Stylelint

Stylelint rules take the same options:

Esc