For AI agents: the complete documentation index is available at https://gabrielcsapo.github.io/lintrs/llms.txt, the full documentation bundle is available at https://gabrielcsapo.github.io/lintrs/llms-full.txt, and this page is available as Markdown at https://gabrielcsapo.github.io/lintrs/reference/env.md.

Environment variables

Locations

VariableEffect
LINTRS_BINARYlintrs binary the host uses for subprocess work. Set by the binary itself.
LINTRS_HOST_DIRDirectory with cli.mjs and the other host/*.mjs modules.
LINTRS_TSRS_SDKtsrs npm/tsrs SDK directory (with package.json and src/). Skips auto-detection and Cargo.
LINTRS_NATIVE_HOMENative layout directory (lib/ with liblintrs.* and liblintrs.node).
LINTRS_IN_PROCESS_BINDINGAbsolute path to a .node copy of liblintrs. Uses the in-process binding, not the pipe.
LINTRS_SDK_DIRRule-crate SDK directory (sdk/deps), instead of <prefix>/sdk.
LINTRS_CACHE_DIRCache for source-built rule crates and Node's module compile cache (node-compile/). Default: ~/.cache/lintrs.

Execution

VariableEffect
LINTRS_OXLINT_THREADSParser threads per worker under --concurrency.
TIMING1, all or a count: per-rule timing table on stderr, as ESLint's TIMING. See Profiling rules.
LINTRS_TYPE_PROFILEPath to write type-service timings and the per-rule summary (JSON).
LINTRS_NATIVE_DEBUG1 logs native-rule dispatch to stderr.
NODE_COMPILE_CACHENode's own: directory for the module compile cache lintrs enables. Default: node-compile under LINTRS_CACHE_DIR. See Module compilation cache.
NODE_DISABLE_COMPILE_CACHENode's own: 1 turns the module compile cache off, for example to measure cold starts.

Typed native session

VariableEffect
LINTRS_TYPED_NATIVE1 enables the native typed session for the in-process binding.
LINTRS_LAZY_OBJECTS1 defers native object materialization. Needs LINTRS_TYPED_NATIVE.
LINTRS_LAZY_PREFETCH1 prefetches lazy object facts.
LINTRS_ADAPTIVE_FACTS1 fuses fact fetches by learned access plans. Needs lazy objects.
LINTRS_COMPACT_DECLARATIONS1 uses compact declaration handles. Needs the eager typed binding; not with lazy objects.
LINTRS_FUSED_SYMBOLS1 fuses symbol queries. Same requirements as compact declarations.
LINTRS_TRUE_BULK1 enables the bulk native query path.
LINTRS_CONTEXTUAL_BATCH1 batches contextual type queries. Needs LINTRS_TYPED_NATIVE and LINTRS_TRUE_BULK.
LINTRS_ADAPTIVE_TYPE_QUERIES1 delays eager type-query prefetch until more than 16 distinct requests for a node kind in a file. No effect with lazy objects.

Internal

VariableEffect
LINTRS_SHARED_SESSIONToken --concurrency workers use to attach to the shared session.
LINTRS_CONFIG_EXPORTNamed config export to read. Set by workers.
LINTRS_TEST_BINARYBinary the host tests drive. Default: target/debug/lintrs.