module

Ignorelint::Checks::EslintignoreSemantics

Semantic checks specific to eslintignore files.

Instance methods

check(pat : Pattern) : Array(Issue)

Check a single pattern for eslintignore-specific issues.

Checks:

  • IG-017: Unrooted pattern without path separators — matches at the same directory level only (non-recursive). The user likely expects recursive matching (gitignore behavior) and should use **/pattern.