Volt.JS.Lint.Config (Volt v0.18.0)

Copy Markdown View Source

Resolves lint options for a source file without reading the filesystem.

Override globs are relative to the lint discovery root. Every matching override is applied in declaration order; later entries replace individual rules, environments and globals, not their entire maps. Environment lists enable names; environment maps can also disable inherited names.

Summary

Functions

Compiles a lint configuration, using the build root unless lint sets its own root.

Returns effective OXC syntax-lint options for the original source path.

Types

t()

@type t() :: %Volt.JS.Lint.Config{
  options: keyword(),
  overrides: [{[GlobEx.t()], keyword()}],
  root: String.t()
}

Functions

new(config, root)

@spec new(
  keyword(),
  String.t()
) :: t()

Compiles a lint configuration, using the build root unless lint sets its own root.

options(config, file)

@spec options(t(), String.t()) :: keyword()

Returns effective OXC syntax-lint options for the original source path.