Brandlint Docs
Configuration

Ignore Patterns

Exclude files and directories from Brandlint review.

Use glob patterns to skip files that don't need brand review.

Basic syntax

brandlint.yml
ignore:
  - "src/test/**"
  - "**/*.test.tsx"
  - "scripts/*"

Common patterns

Test files

ignore:
  - "**/*.test.ts"
  - "**/*.test.tsx"
  - "**/*.spec.ts"
  - "**/__tests__/**"

Generated code

ignore:
  - "src/generated/**"
  - "**/*.generated.ts"
  - "**/graphql/types.ts"

Internal tools

ignore:
  - "src/admin/**"
  - "scripts/**"
  - "tools/**"

Third-party code

ignore:
  - "vendor/**"
  - "node_modules/**"

Glob pattern reference

PatternMatches
*Any file in the directory
**Any file in any subdirectory
*.tsxFiles ending in .tsx
src/**/*.tsAll .ts files under src/
!patternExclude from previous match

Debugging patterns

If files aren't being ignored as expected:

  1. Check that the path is relative to your repository root
  2. Verify the glob syntax matches your file structure
  3. Test with a broader pattern first, then narrow down
Ignore Patterns - Brandlint