struct

Ignorelint::PrettierignoreStyleLinter

Inherits Ignorelint::FormatLinter < Struct < Value < Object

The linter adapter for prettierignore files.

Combines:

  1. CommonGlob.check — shared glob-validity rules
  2. GitignoreSemantics.check — gitignore-specific rules (reused)
  3. PrettierignoreSemantics.check — redundant built-in exclude check
  4. Conflicts.check — cross-pattern conflict detection

Constructors

new

Instance methods

check_pattern(pat : Pattern) : Array(Issue)

Check a single pattern for format-specific issues.

Returns an array of Issue values (empty if the pattern is clean for this format). Called once per active (non-blank, non-comment) pattern.

check_patterns(patterns : Array(Pattern), issues : Array(Issue)) : Nil

Check the full pattern list for cross-pattern issues.

Used for conflict detection (e.g. "build" followed by "!build"). Mutates the issues array in place for efficiency.

initialize