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
12345678910111213{ "extends": ["./node_modules/systomic/configs/recommended.json"], "settings": { "systomic": { // Import alias prefix → folder relative to the nearest package.json. This is the default. "alias": { "@/": "src/" }, // Only follow these packages for annotations (globs). Default: every installed package. "packages": ["@acme/*"], // Global stylesheets whose classes are used by name (globs, relative to the package root). "stylesheets": ["src/styles/*.css"] } }}| 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:
1234567"rules": { "systomic/animation-duration": ["warn", { "limits": { "dropdown": 200 } }], "systomic/no-hardcoded-values": ["warn", { "ignore": ["src/design-system/**"] }], // relative to the nearest package.json "systomic/required-parts": ["error", { "parts": { "Dialog": [["DialogContent", "DialogPopup"], "DialogTitle"] } }]}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:
12345678910"rules": { // Each list replaces the default, so repeat the defaults you still want next to your own helper (`sx`). "systomic/focus-visible": ["error", { "callees": ["cn", "clsx", "cx", "classnames", "twMerge", "twJoin", "cva", "tv", "sx"] }], "systomic/no-hardcoded-values": ["warn", { "attributes": ["className", "class", "contentClassName"], "callees": ["cn", "clsx", "cx", "classnames", "twMerge", "twJoin", "cva", "tv", "sx"] }]}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:
12345package.json.oxlintrc.jsonpackages/ ui/package.json ← packages/ui/src/tokens.ts is "src/tokens.ts" app/package.json ← packages/app/src/page.tsx is "src/page.tsx"12// Skips packages/ui/src/** AND packages/app/src/**: probably not what you want."systomic/no-hardcoded-values": ["warn", { "ignore": ["src/**"] }]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:
1234567891011// .oxlintrc.json at the monorepo root{ "extends": ["./node_modules/systomic/configs/recommended.json"], "rules": { "systomic/no-hardcoded-values": "warn" }, "overrides": [ { "files": ["packages/ui/**"], "rules": { "systomic/no-hardcoded-values": ["warn", { "ignore": ["src/tokens/**"] }] } } ]}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:
1234"rules": { "systomic/tabular-nums": "error", "systomic/prefer-temporal": "off"}Stylelint
Stylelint rules take the same options:
123456export default { extends: ["systomic/configs/stylelint.mjs"], rules: { "systomic/animation-duration": [true, { limits: { default: 250 } }], },};