Ignorelint::EslintignoreStyleLinter
Inherits Ignorelint::FormatLinter < Struct < Value < Object
The linter adapter for eslintignore files.
Combines:
CommonGlob.check— shared glob-validity rulesGitignoreSemantics.check— gitignore-specific rules (reused because eslintignore shares most gitignore semantics)EslintignoreSemantics.check— non-recursive matching warningConflicts.check— cross-pattern conflict detection
Overrides build_glob because unrooted patterns are non-recursive — no
**/ prefix should be used in dead-rule detection.
Constructors
Instance methods
Override glob building for eslintignore semantics.
In eslintignore, unrooted patterns match same-directory only — they are
NOT recursive. For dead-rule detection, this means we should NOT add a
**/ prefix (which would search subdirectories). Both rooted and
unrooted patterns resolve to the same direct path.
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 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.