Configuration
Ignore Patterns
Exclude files and directories from Brandlint review.
Use glob patterns to skip files that don't need brand review.
Basic syntax
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
| Pattern | Matches |
|---|---|
* | Any file in the directory |
** | Any file in any subdirectory |
*.tsx | Files ending in .tsx |
src/**/*.ts | All .ts files under src/ |
!pattern | Exclude from previous match |
Debugging patterns
If files aren't being ignored as expected:
- Check that the path is relative to your repository root
- Verify the glob syntax matches your file structure
- Test with a broader pattern first, then narrow down